Skip to main content

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

PyPI version Build Status Coverage badge CodeQL CII Best Practices Docs badge Chat badge License

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:

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

George Babarus

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

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

flex-cli-0.1.33.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flex_cli-0.1.33-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file flex-cli-0.1.33.tar.gz.

File metadata

  • Download URL: flex-cli-0.1.33.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-48-generic

File hashes

Hashes for flex-cli-0.1.33.tar.gz
Algorithm Hash digest
SHA256 721781cacbd92507b77527760e063875967e9e15855ee0759009907306d28308
MD5 aa1b0d9916f0954a8b8cc6ff2df4ee70
BLAKE2b-256 4565fe5b91d56e3fe2d02f603ff51b687287a569f21401b85a6f60ff701a26fd

See more details on using hashes here.

File details

Details for the file flex_cli-0.1.33-py3-none-any.whl.

File metadata

  • Download URL: flex_cli-0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-48-generic

File hashes

Hashes for flex_cli-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 887920e31e49d3b7ce7e46a688ea9cbac54eb519f4a477ea49d43e410805ea80
MD5 2aa0300d866c6f0ace6a8bfb827fe4be
BLAKE2b-256 3c470859ef7883b495d927df84e846b7dfc6683cfb0b37f03c4d95148a5a72a2

See more details on using hashes here.

Supported by

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