Skip to main content

Climux

GitHub Workflow Status PyPI PyPI - Python Version GitHub

Library for writing command-line interfaces

Installation

pip install climux

Usage

from climux import Cli, Command

def hello(name="stranger"):
    """Say hello."""
    return f"Hello, {name}!"

cli = Cli("hello", description="Hello world app.")
cli.add(Command(hello))
cli.run()

See examples.

Features

  • Subcommands
  • Generate CLI help and options from function signature and docstring
  • Automatic dispatch to command handling functions

License

MIT.

Metadata

Release files for climux 0.1.1

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

Source distribution (sdist)

Source distribution for climux 0.1.1
File Size Uploaded
climux-0.1.1.tar.gz 10.2 kB Details

Built distribution (wheel)

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

Total release size: 26.1 kB

Release files / climux-0.1.1.tar.gz

Download URL climux-0.1.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2ada620866055c2c92c183d7ccd4541a3aed30fb1196e3d40d433b49016401af
BLAKE2b-256 checksum
How to use checksums
1c20655aa43507b22e4e0d97e53083a876f857198337782dfee69a1bb1ba7704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release files / climux-0.1.1-py3-none-any.whl

Download URL climux-0.1.1-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe0ea551f721195e9486c156cdf5753cfeb75fff42e922614decb248747fe150
BLAKE2b-256 checksum
How to use checksums
bf169c1daf83dcf6cde015c92b6febaba2b7e2af01acca65f6bb2900e5031808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.5

2 release files

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