Skip to content

Latest commit

 

History

101 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

git clone https://github.com/classvsoftware/t3api-python-utils.git
cd t3api-python-utils

2. Create virtual environment with uv

uv venv
source .venv/bin/activate

3. Install the package (editable mode)

uv pip install -e .

πŸ§ͺ Running Tests

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 and mypy strict rules.

πŸ“¦ Building the Package

Make sure your virtualenv is activated:

uv pip install build
python -m build

This generates .tar.gz and .whl files inside the dist/ folder.


πŸš€ Publishing to PyPI

1. Install Twine

uv pip install twine

2. Upload to TestPyPI (recommended for first-time testing)

twine upload --repository testpypi dist/*

Test it via:

uv pip install --index-url https://test.pypi.org/simple/ t3api-python-utils

3. Upload to PyPI (when ready)

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


About

Python utils for using the T3 API for Metrc

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages