Skip to main content

A simple CLI hello example using argparse.

Project description

hello-cli

A tiny example CLI built with Python’s argparse. It exposes a hello command that greets one or more names with a couple of optional flags.

Install (development)

poetry install

Usage

Run via Poetry:

poetry run hello Alice Bob
poetry run hello -s -f Alice

Options:

  • -s, --shout: Upper‑case the greeting
  • -f, --flirty: Add a friendly compliment

Install with pipx (optional)

pipx install .
hello --help

Reinstall after changes:

pipx reinstall .

Project details

  • Entry point: hello (configured in pyproject.toml under [tool.poetry.scripts])
  • Source: src/hello/main.py

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

asher_hello_cli-0.1.1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

asher_hello_cli-0.1.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file asher_hello_cli-0.1.1.tar.gz.

File metadata

  • Download URL: asher_hello_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Darwin/24.6.0

File hashes

Hashes for asher_hello_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b30fb6e0bffa31c1526d52ca36ad6ae8c1c56c290228fd4c921c407447673b4b
MD5 352e5e159d0eaf95fcb4b0592e81214a
BLAKE2b-256 89321873fae0595e6f16f97078bd9c9785ebe5ac45b80e512b5f8c30a4e3409d

See more details on using hashes here.

File details

Details for the file asher_hello_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: asher_hello_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.3 Darwin/24.6.0

File hashes

Hashes for asher_hello_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb61a3b958baa8f07b53256d9e021b7bce7c0ddcbeac9a1a25655db0c5536e22
MD5 404af985fe868920937dfe97cc6d8272
BLAKE2b-256 cb7e0d6dbf9a027f4152db4ab1bbaf83e71755f3b57618daab907d143746bc3f

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