Skip to main content

A small argument parser for dedicated environments with support for env and file based arguments

Project description

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:

params = [
  KwParam.new_simple("hello"),
  KwParam.new_simple("world")
]
config = CliParser().add_params(params).vars()

Roadmap

In the near future, a parsing of a (data)class as a configuration object, which is then collected via all three native collectors.

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pargs_sfe-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pargs_sfe-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pargs_sfe-0.1.1.tar.gz.

File metadata

  • Download URL: pargs_sfe-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pargs_sfe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 446c69f6ed74ee276a64edea64084ee80b5f029bc1ab65ebc40b6e5241135017
MD5 0fe5b90d0d3803898595056dae096916
BLAKE2b-256 f162460e2a0b025e095d575d2376ed906125cfd8ccab0a8a3cf4fdc571f8445f

See more details on using hashes here.

File details

Details for the file pargs_sfe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pargs_sfe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pargs_sfe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c4c86e8de11319c8a352713a2c70a72097b8e94c9a4ed99291d4f0a80646733
MD5 2567e5e199a50008fe6727ecaeeb1b70
BLAKE2b-256 6ad6427e7faeb988962146ddecbfa5c875429a08e766e1a43a11f86be676f81b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page