Metadata-Version: 2.4
Name: pargs_sfe
Version: 0.1.2
Summary: A small argument parser for dedicated environments with support for env and file based arguments
Author: superfrogemperor
Author-email: superfrogemperor <timo@ney3r.com>
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.13
Project-URL: Homepage, https://codeberg.org/sfe/pargs
Project-URL: Repository, https://codeberg.org/sfe/pargs
Description-Content-Type: text/markdown

# Pargs

> [!WARNING]
> This is not yet production ready, please wait for the 1.0.0 release

A small python extensible argument system.

## Supported sources

Native supported sources are command arguments, file (json and toml) and
environment variables.
You can glue them together with the `MultiParser` and give them priorities,
to control which arguments may overwrite each other.

## Syntax

Simple example:

```python
from pargs import configure

@dataclass
class Config:
    url: str
    secret: str
    use_tls: bool = True
    log_level: int = 2
...
def main():
    config = configure(Config)
```

## Comparison

Compared to the `argparse` module provided in the standard library,
this provides much fewer features.
This allows for a very small runtime-footprint (>10x faster).
