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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sugarpowder-1.2.1.tar.gz.
File metadata
- Download URL: sugarpowder-1.2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f293db09e245157bd6c5bb4e1a795ff6cda9f03079a0b89d9954dbafe440cbea
|
|
| MD5 |
dac43c5d2274fc2a32c65b9fff97b71a
|
|
| BLAKE2b-256 |
fcb336aa242e4f83c26c229f6dc2e28aed22794fea4869dc082b35db6d753eb9
|
File details
Details for the file sugarpowder-1.2.1-py3-none-any.whl.
File metadata
- Download URL: sugarpowder-1.2.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1627a9e2add5aeed06f58acf21b067e86dc1a43790214fec8db8f71d36643091
|
|
| MD5 |
cddfc2e3b05bb3327e3a7fad6cbb5cca
|
|
| BLAKE2b-256 |
3cf8daee65982633f118e2f4082c9da1fb9406596477426930857a521599aab2
|