TSArP - Type-Safe Argument Parser
Copyright 2026 Ian Pilcher <arequipeno@gmail.com>
Overview
TSArP (pronounced like "zarp") is a wrapper around Python's argparse
module that supports static type-safety.
Limitations
TSArP is very much alpha software.
-
It currently supports only a fraction of the full functionality of
argparse. -
Python 3.14 or later is required.
-
Inheritance of schema attributes (types, groups, arguments, etc.) is not possible.
-
The API is very much in flux.
-
Lots of edge cases remain to be worked out.
Despite this, it is still useful.
Use
The basic usage pattern is:
-
Create any custom types (instances of
tsarp.Type). -
Create a schema (a subclass of
tsarp.Schema) for any subcommands and the top-level command-line interface. -
Call
tsarp.parse(), passing the top-level schema class as the first argument. -
tsarp.parse()returns an instance of the top-level schema class (containing instances of any subcommand schemas that were invoked).
See also
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 tsarp-0.0.1.tar.gz.
File metadata
- Download URL: tsarp-0.0.1.tar.gz
- Upload date:
- Size: 37.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbfd9cdff4b938940baf54e6208b9a006721201187b0176257ef7e1671c04305
|
|
| MD5 |
cea1e9af5b2347c02ea6d280ae28fdf4
|
|
| BLAKE2b-256 |
fc0b35f815ff1391c01b9f9638296802b03c1c0fd161b26336a38589ca0979f5
|
Provenance
The following attestation bundles were made for tsarp-0.0.1.tar.gz:
Publisher:
python-publish.yml on ipilcher/tsarp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsarp-0.0.1.tar.gz -
Subject digest:
bbfd9cdff4b938940baf54e6208b9a006721201187b0176257ef7e1671c04305 - Sigstore transparency entry: 2668524351
- Sigstore integration time:
-
Permalink:
ipilcher/tsarp@9fd9227c745edbb3288e35184f336468ddfc3878 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ipilcher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9fd9227c745edbb3288e35184f336468ddfc3878 -
Trigger Event:
release
-
Statement type:
File details
Details for the file tsarp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tsarp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5ba374cc934693f34448c9c5bc849393ab1edfea78cab5c36b4cff4370ea154
|
|
| MD5 |
3ed22f4705b30fe00b2288e8d5377348
|
|
| BLAKE2b-256 |
6889de1736cf7ac139ac894aaba049c2cdb976d329aa8f4ae257b20edd617604
|
Provenance
The following attestation bundles were made for tsarp-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on ipilcher/tsarp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tsarp-0.0.1-py3-none-any.whl -
Subject digest:
a5ba374cc934693f34448c9c5bc849393ab1edfea78cab5c36b4cff4370ea154 - Sigstore transparency entry: 2668524370
- Sigstore integration time:
-
Permalink:
ipilcher/tsarp@9fd9227c745edbb3288e35184f336468ddfc3878 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ipilcher
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9fd9227c745edbb3288e35184f336468ddfc3878 -
Trigger Event:
release
-
Statement type: