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

Utils

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

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-0.3.0.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

sugarpowder-0.3.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

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