Skip to main content

Composable command line interface toolkit,

Project description

$ asyncclick_

Asyncclick is a fork of Click (described below) that works with trio or asyncio.

AsyncClick allows you to seamlessly use async command and subcommand handlers.

$ click_

Click is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary. It's the "Command Line Interface Creation Kit". It's highly configurable but comes with sensible defaults out of the box.

It aims to make the process of writing command line tools quick and fun while also preventing any frustration caused by the inability to implement an intended CLI API.

Click in three points:

  • Arbitrary nesting of commands
  • Automatic help page generation
  • Supports lazy loading of subcommands at runtime

A Simple Example

import click

@click.command()
@click.option("--count", default=1, help="Number of greetings.")
@click.option("--name", prompt="Your name", help="The person to greet.")
def hello(count, name):
    """Simple program that greets NAME for a total of COUNT times."""
    for _ in range(count):
        click.echo(f"Hello, {name}!")

if __name__ == '__main__':
    hello()
$ python hello.py --count=3
Your name: Click
Hello, Click!
Hello, Click!
Hello, Click!

Donate

The Pallets organization develops and supports Click and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

The AsyncClick fork is maintained by Matthias Urlichs matthias@urlichs.de. It's not a lot of work, so if you'd like to motivate me, donate to the charity of your choice and tell me that you've done so. ;-)

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

asyncclick-8.1.8.tar.gz (232.9 kB view details)

Uploaded Source

Built Distributions

asyncclick-8.1.8.0-py3-none-any.whl (99.1 kB view details)

Uploaded Python 3

asyncclick-8.1.8-py3-none-any.whl (99.1 kB view details)

Uploaded Python 3

File details

Details for the file asyncclick-8.1.8.tar.gz.

File metadata

  • Download URL: asyncclick-8.1.8.tar.gz
  • Upload date:
  • Size: 232.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for asyncclick-8.1.8.tar.gz
Algorithm Hash digest
SHA256 0f0eb0f280e04919d67cf71b9fcdfb4db2d9ff7203669c40284485c149578e4c
MD5 e9bab017b26d1310d42b4043742812ce
BLAKE2b-256 cbb5e1e5fdf1c1bb7e6e614987c120a98d9324bf8edfaa5f5cd16a6235c9d91b

See more details on using hashes here.

File details

Details for the file asyncclick-8.1.8.0-py3-none-any.whl.

File metadata

  • Download URL: asyncclick-8.1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 99.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for asyncclick-8.1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be146a2d8075d4fe372ff4e877f23c8b5af269d16705c1948123b9415f6fd678
MD5 28a132232e6dde3fc4a4a8909f0fdc9a
BLAKE2b-256 92c4ae9e9d25522c6dc96ff167903880a0fe94d7bd31ed999198ee5017d977ed

See more details on using hashes here.

File details

Details for the file asyncclick-8.1.8-py3-none-any.whl.

File metadata

  • Download URL: asyncclick-8.1.8-py3-none-any.whl
  • Upload date:
  • Size: 99.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for asyncclick-8.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 eb1ccb44bc767f8f0695d592c7806fdf5bd575605b4ee246ffd5fadbcfdbd7c6
MD5 aa9bbea28df323254a96a1a32f4f14f1
BLAKE2b-256 14cca436f0fc2d04e57a0697e0f87a03b9eaed03ad043d2d5f887f8eebcec95f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page