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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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