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

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.6.2.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

clibrary-1.6.2-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for clibrary-1.6.2.tar.gz
Algorithm Hash digest
SHA256 cede482bd23b4c7a83fa24fccd652a81d498f12830e69477f60d75065fc39953
MD5 b33a5cba325fd009ae2536bd5787360a
BLAKE2b-256 932436e317024345c3c347cd5600fcb17d05e5283166141af67ffc1885a6742e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clibrary-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 20.2 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.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08eca44cf89ab8cd17f64a85061d74c48f213b86a5d3bf332dde459a6f4bdb34
MD5 25a5b0de495061abbb039fcfcb9da957
BLAKE2b-256 5ef576970888a649119cd07456cf3032f82922ed7ef6d0f1e5f0beec07159f08

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