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
Release history Release notifications | RSS feed
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)
Built Distribution
clibrary-1.6.2-py3-none-any.whl
(20.2 kB
view hashes)