Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

PyCLI2

Python library to auto parse command line args from function typing.

Overview

This package simplfies the creation of CLI apps, by analysing the typing of python functions and parsing command line arguments.

Installation

The python package, both wheel and source distribution is available at PyPI pycli2 project. Install using your python package manager of choice. E.g. pip or uv.

uv pip install pycli2

Usage

The package comes with a demo CLI, which the source can be view at src/pycli2/__main__.py. It can be accessed by running

python -m pycli --help

In order to make your own CLI, simply import pycli2 and use the pycli2.run function. Provide it with functions, and it'll automatically create a CLI app from the function typing and function docstring.

import pycli2

if __name__ == "__main__":
    # This will expose firstfunc, secondfunc, and thirdfunc to the CLI.
    pycli2.run(
        firstfunc,
        secondfunc,
        thirdfunc,
    )

Contributing

...

Install locally

Install in edit mode, with dev dependendencies using your python package manager of choice. E.g. pip or uv.

uv pip install -e .[dev]

Build

Build a distribution by setting the PYTHON_PACKAGE environment variable to the version and run

uv build

The documentation can also be built using the Sphinx.

sphinx-build -M html docs/ dist/

License

This project is licensed under the GNU General Public License v3.0 only.

Metadata

Release files for pycli2 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for pycli2 0.1.13
File Size Uploaded Provenance
pycli2-0.1.13.tar.gz 19.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pycli2 0.1.13
File Interpreter ABI Platform
pycli2-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 37.2 kB

Release files / pycli2-0.1.13.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pycli2-0.1.13.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b31b44392431d0be231fcabc62ce5b4c276715196b432b740b46e107f397fcc4
BLAKE2b-256 checksum
How to use checksums
c252f41e70ff832caed8b39eb16d258dac066e3fb1e295b4379996ef2e3d8d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 21, 2025.

Transparency log

Release files / pycli2-0.1.13-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pycli2-0.1.13-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ecb79e573e755ae8e6c9adf93fed3683b6b0b8aee59a3055b933f4c54a74bb4
BLAKE2b-256 checksum
How to use checksums
25fb856a03a485d29fd880f93dfa8b59fe1351d58ece4233a3b18e2c4532eeff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 21, 2025.

Transparency log

Security for pycli2 0.1.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The configuration that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Configuration

  • Removed 0.1.10 python-package.yml
  • Added 0.1.13 python-2-deploy.yml
Select from 2 files

Attestation for pycli2-0.1.13.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 21, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page