Local CLI is an extendable interactive command line tool built in mind with the objective to make the interaction with day to day scripts more user friendly. The scripts you use daily should be easy to maintain, develop and document so you don't need to worry to write long documents on how to use them.
Project description
Introduction
Local development productivity tools meant to smooth and ease developers day to day work. It is meant to be cross-platform but for now is tested using MacOs and Ubuntu
This are few examples
-
unified command line interfaces for multiple cli tools
-
interactive command line mode
- this act as an interactive wrapper on top of existing cli tools
- also allow extending the existing cli tools with auto-completion, input enhanced wizard or description
- allow switching between command namespaces in the same terminal
-
Implement custom CLI tools using Python, fully integrate with all LCLI tool features:
- just write some code class or function and configure them to be wired in application
-
use Fire to auto document Python objects, so all you should do is to focus on business logic
Features
Fire mode
In fire mode the application allow user to configure a hierarchy of objects that fit its needs for various project. The user can navigate and execute the hierarchy using Fire library by Google. "Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object." https://github.com/google/python-fire
Interactive mode
Most often during the development process developers are using various tools for various projects. The interactive mode purpose is to improve productivity by offering auto-completion details on the spot. This is implemented on top of python cmd package: https://docs.python.org/3/library/cmd.html
Getting Started
Installation process
Install from source
# Using invoke
invoke install
#from project root directory
./install
#or
python3 -m pip install -r requirements.txt
python3 -m pip install . --user
Software dependencies
This is a Python package available as MIT License and is depending on following packages:
- fire https://github.com/google/python-fire/releases
- pinject https://github.com/google/pinject/releases
- PyYAML
- prompt_toolkit
- pyfiglet
- blessings
- tk
- appJar
- jsonschema
Latest releases
- V-0.2.2 - First released version.
API references
Build and Test
Build
# Using invoke
invoke build
Test
# Using invoke
invoke test
invoke coverage
# Using pytest
py.test
pytest --cov=src/lcli/ .
Use cases
Usage
Configuration
Author
Contribute
Feel free to contribute to this project and make developer life essayer:
- by submitting new ideas as a github issue here
- by making pull request with specific bug fixes
- for new features or architectural change please contact George Babarus to avoid double work on any way.
Useful links
- https://mypy.readthedocs.io/en/latest/generics.html#generics
- https://code-maven.com/interactive-shell-with-cmd-in-python
- https://www.journaldev.com/16140/python-system-command-os-subprocess-call
- https://stackoverflow.com/questions/3262569/validating-a-yaml-document-in-python
- https://github.com/oclif/oclif#-cli-types
- https://medium.com/the-z/getting-started-with-oclif-by-creating-a-todo-cli-app-b3a2649adbcf
- https://opensource.com/article/17/5/4-practical-python-libraries
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
Built Distribution
File details
Details for the file flex_cli-0.2.7.tar.gz
.
File metadata
- Download URL: flex_cli-0.2.7.tar.gz
- Upload date:
- Size: 50.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-33-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 884c2a3082fba3fea20a919484e2ea2a35e97c58f6e90e52bba47abfebfe0749 |
|
MD5 | 8021faff1f10626621c49b74142807b1 |
|
BLAKE2b-256 | 09be0117b4745f3d18c62099753c06963020104c45168b64eca7aab279e8bc6c |
File details
Details for the file flex_cli-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: flex_cli-0.2.7-py3-none-any.whl
- Upload date:
- Size: 76.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-33-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8855291f36709f3c6ff643c1a85d0e0d118b96abf3473e78bbf96f63eaec92 |
|
MD5 | 2e2f948b4b7e9a058dff2d441e1263a6 |
|
BLAKE2b-256 | cc2c263aa70ac3ae02bf3005702b5da0a29c9f1fbf25e9ff37a19efdc838ca6c |