Metadata-Version: 2.1
Name: harness-tui
Version: 0.1.0
Summary: A text user interface for managing and interacting with harness.io
Author: z3z1ma
Author-email: butler.alex2010@gmail.com
Requires-Python: >3.9,<3.13
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: jsonschema (>=4.22.0,<5.0.0)
Requires-Dist: lancedb (>=0.8.0,<0.9.0)
Requires-Dist: langchain (>=0.2.1,<0.3.0)
Requires-Dist: langchain-community (>=0.2.1,<0.3.0)
Requires-Dist: langchain-openai (>=0.1.8,<0.2.0)
Requires-Dist: openai (>=1.30.5,<2.0.0)
Requires-Dist: pandas (>=2.2.2,<3.0.0)
Requires-Dist: pydantic (>=2.7.2,<3.0.0)
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Requires-Dist: sseclient-py (>=1.8.0,<2.0.0)
Requires-Dist: textual[syntax] (>=0.63.5,<0.64.0)
Description-Content-Type: text/markdown

# Harness TUI

A [Textual](https://https://textual.textualize.io/) App that allows you to interact with your [Harness](https://harness.io/) account.


## 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](https://direnv.net/). 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:

```bash
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:

```bash
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.

