Skip to main content

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. Raises AttributeError on change detection.
  • ENVMod: The main API class for managing .env variables. Supports manual and decorator-based registration of environment items, type-safe value loading, and .env_example generation.
  • logwrap: A dynamic decorator to log function calls. Uses the logging module 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 single with or async with statement.
  • suppress_errors: A decorator that suppresses exceptions raised by the wrapped function and returns a fallback value instead.

Installation

  1. Easy install with pip
pip install classmods
  1. 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)

Source distribution for classmods 1.4.0
File Size Uploaded
classmods-1.4.0.tar.gz 22.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for classmods 1.4.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page