Metadata-Version: 2.4
Name: everynow
Version: 0.4.0
Summary: Modern everyday Python utilities — config, retry (sync+async), terminal, cache, HTTP, rate limiting, timing, validation, logging & files. Lightweight and zero hard dependencies.
Author: Vikas Patel
Maintainer: Vikas Patel
License: MIT
Project-URL: Homepage, https://github.com/VikasPatel22/everynow
Project-URL: Documentation, https://github.com/VikasPatel22/everynow#readme
Project-URL: Repository, https://github.com/VikasPatel22/everynow
Project-URL: Issues, https://github.com/VikasPatel22/everynow/issues
Project-URL: Changelog, https://github.com/VikasPatel22/everynow/blob/main/CHANGELOG.md
Keywords: utils,utilities,config,retry,async,cache,http,terminal,cli,rate-limit,timing,logging,validation,toolkit,helpers,productivity
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Classifier: Framework :: AsyncIO
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: yaml
Requires-Dist: pyyaml>=6.0; extra == "yaml"
Provides-Extra: toml
Requires-Dist: tomli>=2.0; python_version < "3.11" and extra == "toml"
Provides-Extra: all
Requires-Dist: pyyaml>=6.0; extra == "all"
Requires-Dist: tomli>=2.0; python_version < "3.11" and extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

# everynow

**Modern everyday Python utilities**

[![PyPI version](https://img.shields.io/pypi/v/everynow.svg)](https://pypi.org/project/everynow/)
[![Python versions](https://img.shields.io/pypi/pyversions/everynow.svg)](https://pypi.org/project/everynow/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Lightweight • Fully typed • Async capable • **Zero hard dependencies**

Built for real CLI tools, automation, Termux, scripts, APIs, and small services.

---

## Features

| Module | Capabilities |
|--------|--------------|
| **config** | `.env` + YAML/TOML/JSON, deep merge, nested env overrides |
| **retry** | Sync + **Async** retry (exponential backoff + jitter) |
| **terminal** | Spinner, progress bar, colors, tables, prompts |
| **cache** | TTL cache + **async cache** + disk persistence |
| **http** | Sync + **Async** HTTP client with built-in retry (stdlib only) |
| **rate** | Token-bucket rate limiter (sync + async + decorator) |
| **timing** | Timer, context manager, decorator, benchmark |
| **files** | Atomic writes, hashing, find, JSON helpers, temp dirs |
| **log** | Colored console + optional JSON + file logging |
| **validate** | Email, URL, phone, length, one_of, between, require... |

---

## Installation

```bash
pip install everynow
```

Optional extras:

```bash
pip install everynow[yaml]   # YAML config support
pip install everynow[all]    # YAML + TOML helpers
pip install everynow[dev]    # development tools
```

---

## Quick Start

```python
from everynow import (
    spinner, progress, success, info,
    retry, aretry, cache, acache,
    get, aget, rate_limit, timer, timed,
    load_config, get_logger, require, is_email
)

# Terminal
with spinner("Working..."):
    ...

with progress(100, prefix="Processing") as p:
    for _ in range(100):
        p.update()

# Retry (sync + async)
@retry(tries=5, delay=0.4)
def fetch():
    ...

@aretry(tries=5)
async def afetch():
    ...

# HTTP with automatic retry
resp = get("https://httpbin.org/get")
print(resp.status, resp.json())

# Rate limiting
@rate_limit(rate=2, per=1)   # max 2 calls per second
def call_api():
    ...

# Timing
with timer("process"):
    heavy_work()

# Config + Validation
cfg = load_config(".env", env_prefix="APP_")
email = is_email(cfg.get("user_email", ""))
```

---

## Design Philosophy

- **Zero hard dependencies** — works out of the box
- **First-class async** support
- **Excellent developer experience**
- **Fully typed** (ships with `py.typed`)
- **CLI & automation focused**
- **Small and readable** source

---

## Development

```bash
git clone https://github.com/VikasPatel22/everynow.git
cd everynow
pip install -e ".[dev]"
pytest
```

---

## License

MIT © Vikas Patel
