Skip to main content

Do CLI applications easily.

Project description

climy

Do CLI applications easily.

Instalation

$ pip install climy

Basic Usage

from climy import Application, Option, Command


def env_handler(comm: Command):
    print('do every thing with env')
    print(comm)
    print(comm.vars)

    
env_command = Command(
    name='env',
    description='Create a perfect environ to application',
    handler=env_handler
)

app = Application(
    name='acme',
    title='ACME App',
    description='A teste application',
    version='0.1.0',
    option_default_separator=Option.Separators.EQUAL
)
app.add_command(env_command)
app.add_option('host', 'The server allow host IP number.', short='t', var_type='str')
app.add_option('port', 'Service port.', short='p', var_type='int')
app.add_option('path', 'Execution code path.', var_type='str', var_name='path')
app.run()
$ acmesrv --help
ACME App (version 0.1.0)

Usage:
  acme <command> [options] [arguments]

Options:
  -h, --help                Print this help.
  -t, --host=[HOST]         The server allow host IP number.
  -p, --port=[PORT]         Service port.
  --path=[PATH]             Execution code path.

Commands:
  env                       Create a perfect environ to application

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

climy-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

climy-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: climy-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-45-generic

File hashes

Hashes for climy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e778ef7240e490c5226fece912f01021229e9b9c71a1ae4f5506b05d0f5aff39
MD5 616aae3dfbba08a45274ec4d8eac81a8
BLAKE2b-256 6dcc6c46cd6a228002f6888f953b772534306dde4e967426421dc047b4a67144

See more details on using hashes here.

File details

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

File metadata

  • Download URL: climy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.19.0-45-generic

File hashes

Hashes for climy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b92d8a6473475759053758a7bcc1676813d1f7dc091bd92a400d62c4c4ebc68c
MD5 f202a8631227ee77d31913bfd10e2857
BLAKE2b-256 356f7ecffdaf03cfdca0380401ad301f5f0338385abd64e63091e007bed5e05a

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