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 *
>>> Ok(2)
Result::Ok(2)
Now you could use the utilities this library provides. For more information and examples, see the documentation above.
For a better guide, see the documentation's quick start guide.
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.monad_std.Ok: A successful value.monad_std.Err: An error value.
monad_std.std_types: Wrapped api around std types.monad_std.iter: Iterator interface with functors and monads support.monad_std.Either: A structure containing two type of values, but not that specific likemonad_std.Result. (Currently under 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
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 monad_std-0.10.0.tar.gz.
File metadata
- Download URL: monad_std-0.10.0.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a98934c4204e10677a013c9f902e27c51e565ab5b40530cc48a14ac91b4395d
|
|
| MD5 |
97381aaccc7d01c8beafc69bc9ac8f37
|
|
| BLAKE2b-256 |
e3ef6273c154eb76889c4812060459f2108aa7c7bce695fbf483956e8b5f9904
|
File details
Details for the file monad_std-0.10.0-py3-none-any.whl.
File metadata
- Download URL: monad_std-0.10.0-py3-none-any.whl
- Upload date:
- Size: 59.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c17299c17d54e61fb6c8c32c89b436e3312aee1a76efd2858f736de0d9c426c
|
|
| MD5 |
68a686db774f20334c98c4c81e09140d
|
|
| BLAKE2b-256 |
08ca491235bf8c52687457686248fb3b14b5757294ef9b433d1db11924e0c3e1
|