Metadata-Version: 2.1
Name: named-env
Version: 2.4.1
Summary: Class-based environment variables typed specification
Home-page: https://github.com/reartnew/named-env
License: MIT
Author: Artem Novikov
Author-email: artnew@list.ru
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Typing :: Typed
Provides-Extra: tests
Requires-Dist: pylint (>=3.3.3,<4.0.0) ; extra == "tests"
Requires-Dist: pytest (>=8.3.4,<9.0.0) ; extra == "tests"
Requires-Dist: pytest-bandit (>=0.6.1,<0.7.0) ; extra == "tests"
Requires-Dist: pytest-black (>=0.6.0,<0.7.0) ; extra == "tests"
Requires-Dist: pytest-mypy (>=0.10.1,<0.11.0) ; extra == "tests"
Requires-Dist: pytest-pylint (>=0.21.0,<0.22.0) ; extra == "tests"
Project-URL: Repository, https://github.com/reartnew/named-env
Description-Content-Type: text/markdown

# named-env

Class-based environment variables typed specification.

## Installation

```shell
pip install named-env
```

## Usage example

```python
from named_env import EnvironmentNamespace, RequiredInteger
import os


class WebApplicationEnvironmentNamespace(EnvironmentNamespace):
    WEB_SERVER_PORT = RequiredInteger()


env = WebApplicationEnvironmentNamespace()

if __name__ == "__main__":
    os.environ["WEB_SERVER_PORT"] = "80"
    print(env.WEB_SERVER_PORT)  # 80
    print(type(env.WEB_SERVER_PORT))  # int
```

