Metadata-Version: 2.4
Name: drtpy
Version: 0.0.2
Summary: DharitrI Smart Contracts Tools
Project-URL: Homepage, https://github.com/TerraDharitri/drt-py-sdk-cli
Author: DharitrI
License-Expression: MIT
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: argcomplete==3.2.2
Requires-Dist: dharitri-py-sdk[ledger]==0.0.2
Requires-Dist: ledgercomm[hid]
Requires-Dist: requests<3.0.0,>=2.32.0
Requires-Dist: rich==13.3.4
Requires-Dist: toml>=0.10.2
Description-Content-Type: text/markdown

# Description
Python Command Line Tools for interacting with Dharitri<sup>X</sup>.

## Documentation
[docs.dharitri.org](https://docs.dharitri.org/sdk-and-tools/sdk-py/)

## CLI
[CLI](CLI.md)

## Distribution
[pipx](https://docs.dharitri.org/sdk-and-tools/sdk-py/installing-drtpy/) [(PyPi)](https://pypi.org/project/dharitri-sdk-cli/#history)

## Development setup

Clone this repository and cd into it:

```
git clone https://github.com/TerraDharitri/drt-py-sdk-cli.git
cd drt-py-sdk-cli
```

### Virtual environment

Create a virtual environment and install the dependencies:

```
python3 -m venv ./venv
source ./venv/bin/activate
pip install -r ./requirements.txt --upgrade
```

Install development dependencies, as well:

```
pip install -r ./requirements-dev.txt --upgrade
```

Allow `pre-commit` to automatically run on `git commit`:
```
pre-commit install
```

Above, `requirements.txt` should mirror the **dependencies** section of `pyproject.toml`.

If using VSCode, restart it or follow these steps:
 - `Ctrl + Shift + P`
 - _Select Interpreter_
 - Choose `./venv/bin/python`.

### Using your local `drtpy`

If you want to test the modifications you locally made to `drtpy`, set `PYTHONPATH` with the path to your local repository path.

For example, if you cloned the repository at `~/drt-py-sdk-cli`, run:

```
export PYTHONPATH="~/drt-py-sdk-cli"
```

Then `drtpy` will use the code in your local repository.
