A library of rust-styled monad utils for python.
Project description
Monad STD
monad_std
is a library that provides some useful Rust-styled utilities for using monads in Python.
Quick Start
To install this library, simply use your favorite package manager, here we use pure pip.
pip install monad-std
Then, import the library:
>>> from monad_std import *
>>> Result.of_ok(2)
Result::Ok(2)
Now you could use the utilities this library provides. For more information and examples, see the documentation above.
Contribution
Any issue and pull request is welcomed, and you can directly make a pr for new features or open an issue for bug reports.
Future Plan
Until now, this library provides the following features:
monad_std.Option
: An optional value.monad_std.Result
: A structure containing a success value or an error.
And the following are being developed:
monad_std.Either
: A structure containing two type of values, but not that specific likemonad_std.Result
- A better entry point for those utilities.
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
monad_std-0.0.0.tar.gz
(49.4 kB
view hashes)
Built Distribution
monad_std-0.0.0-py3-none-any.whl
(52.6 kB
view hashes)
Close
Hashes for monad_std-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ce91eba7d2fbd9867f763b3dfdf91a747133b99eddc5aa047308f99856c051b |
|
MD5 | 6f0c228d4d6dc9eeeced58f7883cc4ca |
|
BLAKE2b-256 | 9f724208185b445a5c96758e9579be48f0d1da20da520b1c0c88d7e9f63b0d4b |