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.
- Modular callbacks for each argument-
- Extremely fast parsing (~70 lines of code).
- Built-in helper.
- Super flexible.
Argflow vs Argparse
Note:
argparsehas 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
argparsefor 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
from argflow import argflow
ag = argflow()
@ag.new_argument(flag="--hello", helper="Just, welcoming...", example="--hello=Jack") # Adding new argument
def hello(name):
print("Hello, " name + "!")
ag.parse() # Parsing
Command line:
python script.py --hello=Alice
# Output: Hello, Alice!
License
MIT License – free to use, modify, and distribute.
Metadata
Release files for argflow 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| argflow-2.0.0.tar.gz | 3.6 kB | With provenance | Details for argflow-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| argflow-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for argflow-2.0.0-py3-none-any.whl |
Total release size: 7.8 kB
Release files / argflow-2.0.0.tar.gz
| Download URL | argflow-2.0.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e8ccb511e512a2ae154a7e77b8edf612291390a25f0fdaba26603d92d736c43
|
|
BLAKE2b-256 checksum How to use checksums |
485b06dcd094b6d6db1fd983736263b9ec3c4200e5b54dc9365445f1c6d45cbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2025.
Transparency logRelease files / argflow-2.0.0-py3-none-any.whl
| Download URL | argflow-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e134f2f10f5ed9ba95d66af25149c683808227d6858696fc7a754700145a723
|
|
BLAKE2b-256 checksum How to use checksums |
64af97616306e88ce298915136a775c3c6290d82c8071486fdd4d25ddc712246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2025.
Transparency logSecurity for argflow 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for argflow-2.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.