CLI tools for ALFA
Project description
alfa-cli
This package provides a command line tool for ALFA.
Installation
You can directly install alfa-cli using pip. This will install the alfa-cli package as well as all dependencies.
$ pip install -U alfa-cli
If you already have alfa-cli installed and want to upgrade to the latest version, you can run:
$ pip install --upgrade alfa-cli
Usage
Once alfa-cli is installed, you can run it with the following template.
$ alfa [options] <command> <subcommand> [parameters]
For more information regarding the usage, you can refer to the provided help information.
$ alfa --help
$ alfa <command> --help
$ alfa <command> <subcommand> --help
Command Completion
The alfa-cli package includes a command completion feature, but is not automatically installed. To enable tab completion you can follow the instructions below:
For bash, run the following command, or append it to ~/.bashrc
$ . alfa-complete.sh
For zsh, run the following command, or append it to ~/.zshrc
$ . alfa-complete.zsh
Development
To install requirements locally:
1. Activate local venv
$ virtualenv venv
$ source venv/bin/activate
2. Install requirements from setup.py
$ pip install -e .[dev]
To develop alfa-cli alongside alfa-sdk, you can opt to install a local copy of the alfa-sdk instead.
$ pip install -e /path/to/alfa-sdk-py
Running it locally
You can run the cli directly as a python module.
$ python alfa_cli [options] <command> <subcommand> [parameters]
Alternatively, you can install your local copy of alfa-cli in develop mode, and use it normally.
$ python setup.py develop
$ alfa [options] <command> <subcommand> [parameters]
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
File details
Details for the file alfa-cli-0.1.2.tar.gz.
File metadata
- Download URL: alfa-cli-0.1.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d0b62d551e587b43faa3faaf9cfd50373ced934857b3b9b8b5e066db27e6d39
|
|
| MD5 |
2ac029559cd59ed16678eda30eb65ce3
|
|
| BLAKE2b-256 |
49d7f404bdc5161ccc3f86e5972d5e87afa6f54f74f3269318156a0d1f85184a
|