https://github.com/classvsoftware/t3api-python-utils
https://github.com/classvsoftware/t3api-python-utils
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/classvsoftware/t3api-python-utils
- Owner: classvsoftware
- License: gpl-3.0
- Created: 2025-06-03T02:41:03.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2025-06-09T21:24:51.000Z (8 months ago)
- Last Synced: 2025-06-10T03:01:37.898Z (8 months ago)
- Language: Python
- Size: 125 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# t3api-python-utils
Utility functions and helpers for the T3 API ecosystem.
This library is designed to support development of tools and clients that integrate with the Track & Trace Tools (T3) platform and Metrc data. It includes shared logic, validation helpers, transformation utilities, and other reusable Python components.
---
## ๐ Getting Started
### 1. Clone the repo
```bash
git clone https://github.com/classvsoftware/t3api-python-utils.git
cd t3api-python-utils
````
### 2. Create virtual environment with `uv`
```bash
uv venv
source .venv/bin/activate
```
### 3. Install the package (editable mode)
```bash
uv pip install -e .
```
---
## ๐งช Running Tests
```bash
pytest
```
Add test modules under the `tests/` directory.
---
## ๐ ๏ธ Development Tips
* All core source files live in the `t3api_python_utils/` directory.
* Add type annotations and follow [PEP 8](https://peps.python.org/pep-0008/) and [mypy strict rules](https://mypy.readthedocs.io/en/stable/config_file.html).
---
## ๐ฆ Building the Package
Make sure your virtualenv is activated:
```bash
uv pip install build
python -m build
```
This generates `.tar.gz` and `.whl` files inside the `dist/` folder.
---
## ๐ Publishing to PyPI
### 1. Install Twine
```bash
uv pip install twine
```
### 2. Upload to TestPyPI (recommended for first-time testing)
```bash
twine upload --repository testpypi dist/*
```
Test it via:
```bash
uv pip install --index-url https://test.pypi.org/simple/ t3api-python-utils
```
### 3. Upload to PyPI (when ready)
```bash
twine upload dist/*
```
Youโll need a valid `.pypirc` file or Twine will prompt for your PyPI credentials.
---
## ๐ License
Licensed under the GNU General Public License v3.0.
---
## ๐ Links
* [T3 Website](https://trackandtrace.tools)
* [T3 API Docs](https://api.trackandtrace.tools/v2/docs)
* [GitHub Repo](https://github.com/classvsoftware/t3api-python-utils)
---
```
---
Let me know if you want:
- A badge row (e.g. PyPI version, license).
- GitHub Actions CI instructions.
- `requirements-dev.txt` for lint/test tools (`mypy`, `pytest`, etc).
```