Package of Python syntactic sugars inspired by Elixir, Go, Rust, Julia, and other languages
Project description
sugarpowder
Package of Python syntactic sugars inspired by Elixir, Go, Rust, Julia, and other languages
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.
Pipes for pandas DataFrame are in development.
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
sugarpowder-0.0.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for sugarpowder-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dd6a4ec4166406c2525c7a234fc6b130609321292dfb516dc504d1be847d157 |
|
MD5 | 2272aaa785f92089b126d1bdb178dd90 |
|
BLAKE2b-256 | 79a5ef5a438639b8cf30ea923c4794c9feecceb000d3888a48f095b8e04a8afd |