Skip to main content

Python SDK for Tusk Drift instrumentation and replay

Project description

Drift Python SDK

Installation

python -m venv venv
. venv/bin/activate
pip install -r requirements.txt

Alternatively, if you have direnv, just allow this folder and run pip install -r requirements.txt.

Running Tests

# Run all unit tests
python -m unittest discover -s tests/unit -v

# Run all integration tests (Flask/FastAPI)
timeout 30 python -m unittest discover -s tests/integration -v

# Run specific test file
python -m unittest tests.unit.test_json_schema_helper -v
python -m unittest tests.unit.test_adapters -v

Database Integration Tests

# Start test databases
docker compose -f docker-compose.test.yml up -d

# Run database tests
python -m unittest tests.integration.test_database -v

# Stop databases
docker compose -f docker-compose.test.yml down

Demo Scripts

timeout 10 python tests/test_flask_demo.py
timeout 10 python tests/test_fastapi_demo.py

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

tusk_drift_python_sdk-0.1.2.tar.gz (62.2 kB view details)

Uploaded Source

Built Distribution

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

tusk_drift_python_sdk-0.1.2-py3-none-any.whl (77.6 kB view details)

Uploaded Python 3

File details

Details for the file tusk_drift_python_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: tusk_drift_python_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tusk_drift_python_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d837a73d2e3d419ce47ed2466f856b20aa01232cfbe0ed5bbdcc81ac240533cc
MD5 2acf9ac627e85a0b7ac396149a713709
BLAKE2b-256 e3bdc1d55fe08cf1a51b4608bf490622820ccf0cc40a10874ea7479a926d7327

See more details on using hashes here.

Provenance

The following attestation bundles were made for tusk_drift_python_sdk-0.1.2.tar.gz:

Publisher: publish-python-sdk.yml on Use-Tusk/drift-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tusk_drift_python_sdk-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tusk_drift_python_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73ab3979649b901ccb2649213924e5785cb67d0d4fd18b0869e3b31bc519b278
MD5 4c4e181ecd52b65160b6405604332881
BLAKE2b-256 190dc6de0f62086ec1a515caa39ae6a1cc58788d6e8b5a048d888a6678510779

See more details on using hashes here.

Provenance

The following attestation bundles were made for tusk_drift_python_sdk-0.1.2-py3-none-any.whl:

Publisher: publish-python-sdk.yml on Use-Tusk/drift-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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