Metadata-Version: 2.1
Name: named-env
Version: 1.0.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.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Typing :: Typed
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
```

