Metadata-Version: 2.4
Name: telepop_env
Version: 0.1.2
Summary: Tiny zero-dependency environment variable loader with type casting and .env.example generation
Author-email: Ivan Goncharov <telepop.iv@gmail.com>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

## telepop_env [tinyenv]

**Tinyenv zero-dependency environment variable loader** for Python.  
Reads `.env` + `os.environ`, supports type casting, validation, and `.env.example` generation.

---

## Features:

Zero dependencies

Automatic type casting (bool, int, float, str)

Required variable check

.env.example generation from used variables



#### Install
```bash
pip install telepop_env
```



---

#### usage

```python
from telepop_env import env

DEBUG = env.bool("DEBUG", default=False)
DB_PORT = env.int("DB_PORT", required=True)
DB_URL = env.str("DB_URL", default="sqlite:///:memory:")

print(DEBUG, DB_PORT, DB_URL)
```

#### generate .env with 

```python
from telepop_env import env
# call function
env.generate_example()

```
#### result will be like

```bash
DEBUG=true
DB_PORT=5432

```

---

#### Pypi page: 

https://pypi.org/project/telepop-env/





