Skip to main content

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

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

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-1.2.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

sugarpowder-1.2.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sugarpowder-1.2.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for sugarpowder-1.2.2.tar.gz
Algorithm Hash digest
SHA256 e2214896cfb4b0ae7e00884d014899c25992d06a79a4ed7a17de3b5091f6ae9c
MD5 bc9e31219ca6091f927e5189e87ed246
BLAKE2b-256 5de6fcc8792c14f4f84dc093d94e003294acafff3bd116e581d1a9ec3baf2efd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sugarpowder-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for sugarpowder-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a4755ff62af52c2653a4a4c150f67aa5d28c01c392e0fa6e0658fc2b649749
MD5 f5ce48e3109904e672c02d06ee560cb7
BLAKE2b-256 359d1f41cc002acef2753669f05a14c83f4f45f28bec095c8960e260f9c400bd

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