Skip to main content

A tool for easily create command-line interfaces.

Project description

atsuko

A tool for easily create command-line interfaces in Python.

Installation

Install atsuko using pip:

pip install atsuko

Usage

Here's a simple example of how to use atsuko to create a command-line interface:

import sys
from atsuko import CLI

# Create a new CLI application
app = CLI(
    name="my-app",
    description="A simple example application.",
    version="0.1.0"
)

@app.command
def greet(name: str):
    """Greets the given name."""
    app.log(f"Hello, {name}!")

if __name__ == "__main__":
    app.run(sys.argv[1:])

You can then run the application from the command line:

python my_app.py greet World
# Output: Hello, World!

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

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

atsuko-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

atsuko-0.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file atsuko-0.1.0.tar.gz.

File metadata

  • Download URL: atsuko-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for atsuko-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c46195935038b27ce0a6909c57ea5cbbbf23f6fe70b01a8ac2ac47c1d311eb4
MD5 f8bc4178cdc3c27a58d32af65cff5ca3
BLAKE2b-256 9c7c4a34a3a3ae6f9fca3eadd7d347bfd6b0e67d5f8922687ea2c166f7730f10

See more details on using hashes here.

File details

Details for the file atsuko-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: atsuko-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for atsuko-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96a6810e519408402e502b191a9a33097f42cf0351b2201e5739359f150bed2a
MD5 4f1bce0c18d370c89a8b8663391868a7
BLAKE2b-256 8728d2b6347dd0d97bfd7d72f7e4d1341b3d4aabd0128b945510cc5e4beb4104

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