Metadata-Version: 2.4
Name: argflow
Version: 1.0.3
Summary: The easier and "faster" alternative to argparse.
Home-page: https://github.com/alesisce/argflow
Author: alesisce
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# Argflow

**Argflow** is a fast, lightweight, and modular argument parser for Python.
It is designed as a **simpler alternative to `argparse`**, ideal for small to medium CLI scripts.


## Features

* Minimal and easy-to-use API
* Positional and optional arguments (`key=value`)
* Multiple commands support (`allow_multiple=True`)
* Modular callbacks for each argument
* Extremely fast parsing (\~200 lines of code)

## Argflow vs Argparse

> Note: `argparse` has more features, so its execution time is naturally higher.

Benchmark for a single argument:

| Parser   | Parse Time |
| -------- | ---------- |
| argparse | 0.009876 s |
| argflow  | 0.000215 s |

* **Argflow is \~98% faster** than `argparse` for parsing.
* Demonstrates how a compact library can create **powerful and fast CLIs**.

## Reliability

* Argflow is **relatively new** and still in active development.
* Suitable for personal projects and experiments, but **use with caution in critical production environments**.

## Example Usage

```python
from argflow import argflow

af = argflow()

def hello(name):
    print(f"Hello, {name}!")

af.new_argument("--hello", hello)
af.parse()
```

Command line:

```bash
python script.py --hello Alice
# Output: Hello, Alice!
```


## License

MIT License – free to use, modify, and distribute.

¿Quieres que haga eso?
