A text user interface for managing and interacting with harness.io
Project description
Harness TUI
A Textual App that allows you to interact with your Harness account.
Installation
Prerequisites
- Python 3.9 or higher
- Pipx (optional, but recommended)
Using pipx
The recommended way to install the app is to use pipx. This will install the app in an isolated environment and make it available globally.
pipx install harness-tui
Using pip
You can also install the app using pip. This will install the app in the user's environment.
# Optionally create a virtual environment for the tool
# python -m venv /opt/harness-tui/.venv
# source /opt/harness-tui/.venv/bin/activate
pip install harness-tui
# echo "export PATH=\$PATH:/opt/harness-tui/.venv/bin" >> ~/.bashrc
Development
- Clone the repository
- Run
make install-dev
to create a virtual environment and install the dependencies - Run
source .venv/bin/activate
to activate the virtual environment
Using direnv
As an alternative to manually activating the virtual environment, you can use direnv. To do so, follow these steps:
- Install direnv:
brew install direnv
- Add the following line to your shell configuration file (e.g.
~/.bashrc
,~/.zshrc
):eval "$(direnv hook bash)"
- Create a
.envrc
file in the project root with the following content:
export VIRTUAL_ENV=.venv
dotenv
layout python
- Run
touch .env
to create the.env
file - Run
direnv allow
to allow the.envrc
file
Now the virtual environment will be activated automatically when you cd
into the project directory. Furthermore all environment variables defined in the .env
file will be loaded.
Developing the app
Refer the textual docs and the harness API docs for most of the information we need to develop the app.
Running the app
To run the app, you can use the make run
command. This will start the app in the terminal.
Alternatively, just run the app directly:
python src/harness_tui/app.py
Up to date dependencies
If the requirements file has been updated, you can run make install-dev
to update the dependencies in the virtual environment.
Roadmap
We will graduate the project from a requirements txt managed project to a poetry managed project with a pyproject.toml that will allow us to publish the project to PyPi for distribution.
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 harness_tui-0.1.2.tar.gz
.
File metadata
- Download URL: harness_tui-0.1.2.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb24fb91976b62dcea420ae2516485d559c99fce47dcd7375b3e502e27d2ad0 |
|
MD5 | ac601b6fe214cc51f5987c37d71dda2e |
|
BLAKE2b-256 | af2d19aa73941aa03c4ca32c5d8ef6f246df3a6d87d3faae2ad1d278b938d21f |
File details
Details for the file harness_tui-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: harness_tui-0.1.2-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08d2c5f05c65b6eaacdfc5d681ee1de59fed05e0025e1cc03b7350629cd1f6e3 |
|
MD5 | 0f1328f432b0208978e937d0a7749050 |
|
BLAKE2b-256 | 8b09dfa70ff59cec38a15fe8272b466d324b75dbf282cc098e74aae5bea04d4e |