Skip to main content

Utility functions and helpers for the T3 API ecosystem

Project description

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



---

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

t3api_utils-1.0.0.tar.gz (95.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

t3api_utils-1.0.0-py3-none-any.whl (69.3 kB view details)

Uploaded Python 3

File details

Details for the file t3api_utils-1.0.0.tar.gz.

File metadata

  • Download URL: t3api_utils-1.0.0.tar.gz
  • Upload date:
  • Size: 95.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for t3api_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f37102f5d9909a090df26ab683bc0bbc9a935c7344e1dcf893a1be78de5ec4a3
MD5 819a75b9679d4b04ddf32e6a045a6820
BLAKE2b-256 891b6dc8ea1f4346959dbbff5e84daa0f8d4db3f5a5cfce66cdc6717301a3837

See more details on using hashes here.

File details

Details for the file t3api_utils-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: t3api_utils-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 69.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for t3api_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0228405855bc1da831293cdcfbaa410bb14ee66fde5ed02cd65fdc8da7ba52a
MD5 fec9abccb0ffd47f22c51e13bbc492d5
BLAKE2b-256 b1abd593222706638e3dd575ed643da242b243fffe3cb0efef9fa0a47e03826e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page