Skip to main content

A humble collection of Python utilities for data processing, serialization, and everyday patterns

Project description

sugarpowder

Package of Python syntactic sugars and utils inspired by Elixir, Go, Rust, Julia, and other languages

Install

pip install sugarpowder

Test

tox

Serialization: Compressed Pickle, Parquet, etc.

blose_pickle, blose_unpickle: Convert any Python objects to pickle that compressed with blosc

df_to_parquetstream, parquetstream_to_df: Convert pandas Dataframe <--> parquetfile bytes stream

Utils

deduplist

WithErr

Go lang Style error handling

@witherr
def div1(x: float, y: float) -> float:
    """
    test function - divide
    """
    return x / y


val, err = div1(1, 1)
# val == 1, err is None

val, err = div1(1, 0)
# val is None, err == ZeroDivisionError

Pipe (Depreacted)

Forked from Pipe Package

It works on '|' and '>>' both.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sugarpowder-2.0.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sugarpowder-2.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file sugarpowder-2.0.0.tar.gz.

File metadata

  • Download URL: sugarpowder-2.0.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sugarpowder-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ab06c4e5dda7a10dc99661edcefb0e41a27ab8eb9fdb54d6c87ca28508660594
MD5 251149471d842532eb323da031c9d2a5
BLAKE2b-256 b2d6cc72c977789000a4e72e4cd4fcc465447517e0404593d7599d07fb9ba7e9

See more details on using hashes here.

File details

Details for the file sugarpowder-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sugarpowder-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sugarpowder-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cac807ee10eeea689d6c31d8271676de710e37898ba7daeb2206a8d7649916de
MD5 27c1b8655a98c840879a7137306e8e9c
BLAKE2b-256 394de8cf8d61690d2d6d69e1ec5d798d87374d771e3ce86840b46714e30338a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page