Shell utility to configure Cognicept tools.
Project description
# COGNICEPT SHELL #
This is a shell utility to configure Cognicept tools.
## Installation
### Dependencies
You need:
Python 3
Python 3 PIP
Install:
` sudo apt-get install python3 python3-pip `
### Package installation
To install the package locally, run:
` pip3 install -e <path-to-the-repo> `
To install from Python Package Index (PyPI), run:
` pip3 install -i https://test.pypi.org/simple/ cognicept-shell==0.0.3 `
To verify installation, try to run
` cognicept -h `
If you get cognicept: command not found error, make sure that ~/.local/bin/ is in your $PATH. You could run this:
` export PATH=$PATH:/home/$USER/.local/bin/ ` and add it to your .bashrc file.
## Tests
cognicept-shell is using pytest as the test framework. Make sure you install manually:
` pip3 install pytest pytest-cov `
To run tests, execute:
` pytest --cov=cogniceptshell tests `
To run ECR integration test, AWS credentials AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY with ECR access needs to be specified as environmental variables. If they are not specified, tests won’t run.
## Running
### Configure
This feature allows you to configure Cognicept Tools. Run:
` cognicept configure `
The tool will let you change values of Cognicept Envrionmental variables.
## Building
To build the PyPI package, run:
` python3 setup.py sdist bdist_wheel `
Output will be lots of text, this command generates the build files. To upload the package, run:
` python3 -m twine upload --repository testpypi dist/* --verbose `
## Version history
0.0 [10/6/2020]
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 Distributions
Hashes for cognicept_shell-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7166d9d6c300eebb68030a70bd78ceb9c0da8a410666c03e6a9a0a2c0ca7e19 |
|
MD5 | afaf62fac44a46371fff0186023651d6 |
|
BLAKE2b-256 | 0b8243cbc3c3770d4201c020d5066b29dd8463ad7dfa64743f0961d1c950b8e1 |
Hashes for cognicept_shell-0.0.21-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a576a26b8b98240058ba85b8b3fb6b3de89f5210f9074341fa6afa329a3e97e |
|
MD5 | 228b1a50ef67c84a5517ec00d85d78bc |
|
BLAKE2b-256 | 227d35aadd7850179852fb8cd75356eae9c3387676a4ef4ee0354db4496a02f3 |