A simple typed argument parser using dataclasses and type hints. This project is largely generated by ChatGPT.
Project description
SimpleArgParser
Installation
Introduction
This is a simple command line argument parser encapsulated based on Python dataclasses and type hints, supporting:
- Defining arguments using classes (required, optional, and arguments with default values)
- Nested dataclasses, with argument names separated by dots
- JSON configuration file loading (priority: command line > code input > JSON config > default value)
- List type arguments (supports comma separation)
- Enum types (pass in the name of the enum member, and display options in the help)
- Custom post-processing (post_process method)
Detailed introduction is coming soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simpleargparser-0.1.0.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simpleargparser-0.1.0.tar.gz.
File metadata
- Download URL: simpleargparser-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4547e91c04e8c390cff7ca57a77aaaad2c6d30425ae2bfbd82b8cfdf623c5494
|
|
| MD5 |
9fc72c3f21e04ddcc177e2e4e53f2333
|
|
| BLAKE2b-256 |
5e48098b166f0dc766daac75e8c70ce40b6755595ded84aad29f604926c34dba
|
File details
Details for the file simpleargparser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: simpleargparser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2c09951e1daacc0e74c9d9635d124e9423985945a928ad644319399efa7bd9e
|
|
| MD5 |
82492aedba92c0ffd1d0f35b5634c819
|
|
| BLAKE2b-256 |
d5df40dc04aa641f794ffd621c83243ccb5cadf74f2e83b1f7970e241fd1a3ec
|