Skip to main content

A simple typed argument parser using dataclasses and type hints. This project is largely generated by ChatGPT.

Project description

SimpleArgParser

Installation

pip install simpleArgParser

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


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.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

simpleargparser-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleargparser-0.1.1.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

Hashes for simpleargparser-0.1.1.tar.gz
Algorithm Hash digest
SHA256 071cbd6e79249a4ea278e8f53b45ac4d62416e3ada0f1865dca61194976c5b5d
MD5 b60840c286ec8efd712e6d878e33ba66
BLAKE2b-256 4dc35cf27e7ddfb6306e85ea3aeeed7f2ba5ac3f2ff86fb1e0df77c3a0b1d352

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simpleargparser-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae01c30bf1b32a651ffbb10be3325d38dcd4a18025cf1994ae88ef3ebd84bd8c
MD5 54ed5471f81db6085065aff793938e8d
BLAKE2b-256 c0bc4af2da4d851e4a031dc792ef211fcd68ad41369e348a2769e00e96667698

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