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

Uploaded Source

Built Distribution

sugarpowder-1.0.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sugarpowder-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4ffc6f3f586bf50bd60a357d2d296dc172d45a21de026edd5138defc734ef96d
MD5 d859bfb5d226dd80a461d6102c61ec6a
BLAKE2b-256 04a953d9b771f08cf70629ce29abecc8e099e4c2c3e779899298f21b28de8d72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sugarpowder-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 466cf98519e824aa904f5f91237934cac888ba2a5192c426d33bc8bcdfdb253d
MD5 a43ba63f09d8cb813a054325402364b0
BLAKE2b-256 ab5a4b8be7d2d52a6935e9476ec1a9e7c69a090f5aee3e62b158ffe945e708c8

See more details on using hashes here.

Supported by

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