classmods
classmods is a lightweight Python package designed to enhance class behavior with minimal effort. It provides modular decorators and descriptors to automate and simplify class-related tasks like environment variable management, creating example env files, monitoring, logging, and more.
Documentation
All features are well documented and use a high level of type_hints for easy understanding and usage.
Features
(Click names for more information)
classproperty: A descriptor that lets you define class‑level computed attributes with a simple decorator syntax.ConstantAttrib: A descriptor that acts like a constant. Once set, the value cannot be changed. RaisesAttributeErroron change detection.ENVMod: The main API class for managing.envvariables. Supports manual and decorator-based registration of environment items, type-safe value loading, and.env_examplegeneration.logwrap: A dynamic decorator to log function calls. Uses theloggingmodule with your current project configurations.MethodMonitor: A class to monitor method calls of a target class, triggering a handler function after the method is called.RemoteAttrib: A descriptor that acts as a remote attribute. You can modify the mapped value on-the-fly.SuperWith: A powerful context manager utility that allows you to combine multiple context managers into a singlewithorasync withstatement.suppress_errors: A decorator that suppresses exceptions raised by the wrapped function and returns a fallback value instead.
Installation
- Easy install with pip
pip install classmods
- Install with git+pip
pip install git+https://github.com/devixa-tech/classmods
License
MIT License
Made with ❤️ by devixa
Metadata
Release files for classmods 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| classmods-1.4.0.tar.gz | 22.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| classmods-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.0 kB
Release files / classmods-1.4.0.tar.gz
| Download URL | classmods-1.4.0.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c800d44b6981e8248cfdb98e24ad45c02fbbca1e75fb2583d3d028d9857aa53f
|
|
BLAKE2b-256 checksum How to use checksums |
91e475fd9bda5d0b6c9baee13bef27e83d4f805d572b4079a78b7dee139824bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logRelease files / classmods-1.4.0-py3-none-any.whl
| Download URL | classmods-1.4.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
191d61347ea44f85749eb54cfdcc72b703744148a12cd839be0bbac0f209cd5c
|
|
BLAKE2b-256 checksum How to use checksums |
8a100873e240fa14ac081d17cf70b4bdf9fc7c85bd42575d8edcbc83d13418c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency log