Skip to main content

A standardized collection of CLI utilities written in Python to handle commands, I/O and files.

Project description

CLIbrary

A standardized collection of CLI utilities written in Python to handle commands, I/O and files.
Make sure to take a look at the documentation

Usage

Installing CLIbrary

CLIbrary can be installed from PyPI by:

python3 -m pip install --upgrade CLIbrary

Verify installation

The installation of CLIbrary can be verified by:

python3 -m CLIbrary

which would return something similar to:

 ●  CLIbrary v1.7.0 
A standardized collection of CLI utilities written in Python to handle commands, I/O and files.
Developed by Andrea Di Antonio, more on https://github.com/diantonioandrea/CLIbrary

Importing CLIbrary

CLIbrary can be imported by:

import CLIbrary

Examples

Entering commands with options

Code:

import CLIbrary

commandHandler = {"request": "Command", "allowedCommands": ["sample"]}
command = CLIbrary.cmdIn(commandHandler)
print(command)

Output:

Command: sample -option1 value --option2
{'command': 'sample', 'sdOpts': {'option1': 'value'}, 'ddOpts': ['option2']}

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

clibrary-1.7.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

clibrary-1.7.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file clibrary-1.7.0.tar.gz.

File metadata

  • Download URL: clibrary-1.7.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for clibrary-1.7.0.tar.gz
Algorithm Hash digest
SHA256 e7cd154e31c5ed07343626836bbd9ae2cf91c4f5f6379d1af0a209bd123511c0
MD5 34a75e8a9c721e7c34f1eed8fac7124b
BLAKE2b-256 80bcc55b7075a3674968cd8fd363562e6dea0788f0a0eafa50aaad54f9059612

See more details on using hashes here.

File details

Details for the file clibrary-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: clibrary-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for clibrary-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 456af3f8293fd97f2e93ba770130cff8f03d3fbf29920a952a3349be6ee5f8ab
MD5 a35959831fb292155993cc2761619c92
BLAKE2b-256 1f07de0b76eb1af45ecacd45981bfebc9dababfd0f37a4d34e994b88aaafc5b5

See more details on using hashes here.

Supported by

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