Purely 💧
A lightweight elixir for cleaner, safer, and more fluent Python.
Purely is a zero-dependency library designed to bring the best parts of functional programming—safety, pipelines, and immutability—into Python without the academic overhead or complex types. It allows you to write code that reads from top to bottom, rather than inside out.
📦 Installation
Purely leverages modern Python features (generics) and requires Python 3.12+.
pip install purely
✨ Features
- Functional Containers:
Optionfor null-safety andResultfor explicit error handling. - Safe Navigation: Access deeply nested attributes without worrying about
AttributeError. - Fluent Pipelines: Chain operations and vectorize list transformations with
Chainandpipe. - Architectural Decoupling: Interface-aware Dependency Injection and Multiple Dispatch.
- Ergonomic Currying: Partial application with full type-hint support for IDEs.
📚 User Guide
The guide is at https://uhgia.org/purely/, built from docs/chapters/. It follows the backend of a small online bookshop: each chapter starts from a job the shop needs done, solves it in plain Python, and then shows the one or two ideas from purely that make it simpler, ending with a checkout that uses all of them. Every code block in it runs against the package when it is built (make docs), and the task chapters write the programs in docs/examples/.
🛠 Contribution
We use uv for dependency management and a makefile for orchestration.
- Setup: Clone the repository and run
make. - Formatting: Ensure code adheres to
blackformatting usingmake format. - Testing: Run the full test suite with
make test-all. - Docs: Edit the chapters, never
docs/examples/, and runmake docs-checkbefore a release.
📝 License
Distributed under the MIT License.
Metadata
Release files for purely 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| purely-1.2.1.tar.gz | 59.2 kB | Without provenance | Details for purely-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| purely-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for purely-1.2.1-py3-none-any.whl |
Total release size: 69.1 kB
Release files / purely-1.2.1.tar.gz
| Download URL | purely-1.2.1.tar.gz |
|---|---|
| Size | 59.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94f01d5ce99a7c0c02fbddfeee3c54700993d3bfaeffe8b80cea41ef3cb903e9
|
|
BLAKE2b-256 checksum How to use checksums |
46f9b7c776b84e50b91e21e1d9a8a625a850df096d8fe04e0c6efa242bdb23b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / purely-1.2.1-py3-none-any.whl
| Download URL | purely-1.2.1-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a100aa9028ebf26d876eb9a4b6deeb8d235f091c2bf2ad6f95b1d9e1ca922799
|
|
BLAKE2b-256 checksum How to use checksums |
65c161b01b712703e78e46b280822f7b3f0b84378cb5079c91a6fbae2a3c1024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for purely 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.