Rapyuta.io CLI Python command line application.
Project description
Rapyuta CLI
Rapyuta CLI exposes features of Rapyuta.io platform on the command-line.
The application is written in Python 3 and it is distributed through PyPI for Python 3 environments.
For Reference on directory structure please refer Please have a look at the corresponding article: http://gehrcke.de/2014/02/distributing-a-python-command-line-application/
Install
Rio CLI is available on PyPI index and can be installed directly by running the following command.
pip install rapyuta-io-cli
On Unix-like systems it places the rio executable in the user's PATH. On
Windows it places the rio.exe in the centralized Scripts directory
which should be in the user's PATH.
To install the CLI from source, you can use the setup.py script directly.
Clone the repository and from the root of the directory, run the following
command.
python setup.py install
Getting Started
To begin using the CLI, it must be authenticated with the Platform.
rio auth login
The Email and Password can either be given through flags (for scripting purposes) or interactively through the Prompts.
NOTE: Entering password as a Flag is not recommended because it leaves the Traces.
Development
Rio CLI project uses Pipenv for development. It needs to be installed to setup the development environment.
pip install pipenv
Once Pipenv is installed, a Python virtual environment can be quickly bootstrapped by running the following commands in the root of the repository.
pipenv install --dev
This will create a virtual environment in the Pipenv's preconfigured location
(if one doesn't already exists). It will also install all the dependencies and
riocli package in the location.
To run the CLI (or any command) under the context of Pipenv's virtual
environment, prepend the commands with pipenv run
pipenv run rio
To run the RIO CLI from the source directly, you can use riocli module
directly.
pipenv run python -m riocli
New dependencies can be installed directly using pipenv. This modifies the
Pipfile and Pipfile.lock.
pipenv install {dependency}
But using the pipenv directly doesn't sync the dependencies in the
setup.py file. For this, the project uses a utility called pipenv-setup
which allows us to sync the dependencies.
pipenv run pipenv-setup sync
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rapyuta-io-cli-3.0.0.tar.gz.
File metadata
- Download URL: rapyuta-io-cli-3.0.0.tar.gz
- Upload date:
- Size: 84.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e182e2a28987673c29cdcc5a8079501112f4279caf5dfe13dde159628a8378ca
|
|
| MD5 |
9b8f83c6d2c99136d41fcfd5d99836de
|
|
| BLAKE2b-256 |
b8433f090b8f46726274ec47f9afdca15d7e57a8eb8fa9913be5f21641dff1d2
|
File details
Details for the file rapyuta_io_cli-3.0.0-py3-none-any.whl.
File metadata
- Download URL: rapyuta_io_cli-3.0.0-py3-none-any.whl
- Upload date:
- Size: 231.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb3e02657dd332b43133438fa26f096971f102dde96578ab880e1de92e633271
|
|
| MD5 |
8dbbe0ed7f6d22b2ec2d6fe91eeed02c
|
|
| BLAKE2b-256 |
bcecc905bce23848bbc80a92a2623d7d793329e351462c9ccf4ea17566d8d191
|