Metadata-Version: 2.4
Name: classmods
Version: 1.2.0
Summary: Simple mods for python classes.
Home-page: https://github.com/hmohammad2520-org/classmods/
Author: hmohammad2520-org
Author-email: hmohammad2520-org <hmohammad2520@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Radin-System
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "classmods"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/hmohammad2520-org/classmods
Project-URL: BugTracker, https://github.com/hmohammad2520-org/classmods/issues
Keywords: python,class,mods,modification,descriptors,methods,methodmod,methodobserve
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: home-page
Dynamic: license-file

# 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***)
* [`ConstantAttrib`](docs/constant_attrib.md): A descriptor that acts like a constant. Once set, the value cannot be changed. Raises `AttributeError` on change detection.
* [`RemoteAttrib`](docs/remote_attrib.md): A descriptor that acts as a remote attribute. You can modify the mapped value on-the-fly.
* [`ENVMod`](docs/env_mod.md): 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.
* [`MethodMonitor`](docs/method_monitor.md): A class to monitor method calls of a target class, triggering a handler function after the method is called.
* [`logwrap`](docs/logwrap.md): A dynamic decorator to log function calls. Uses the `logging` module with your current project configurations.
* [`suppress_errors`](docs/supress_errors.md): A decorator that suppresses exceptions raised by the wrapped function and returns a fallback value instead.

## Installation

1. Easy install with pip

```bash
pip install classmods
```

2. Install with git+pip

```bash
pip install git+https://github.com/hmohammad2520-org/classmods
```

## License

MIT License

---

Made with ❤️ by [hmohammad2520](https://github.com/hmohammad2520-org)
