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.0.tar.gz (56.5 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.0-py3-none-any.whl (68.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tusk_drift_python_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 56.5 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.0.tar.gz
Algorithm Hash digest
SHA256 c0d7edd07cadde9d516b0351cea0f33f7aeb6812732afe2919c0cde849e92d0d
MD5 365426528a35433af2159c00c0b808a7
BLAKE2b-256 320c7ba634057bc1b385a6f4a31bad089b90ff3f0947f53b9053a19486a2f76a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tusk_drift_python_sdk-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tusk_drift_python_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d3a1a0314eefb337145df75a69069e527aab9dd24a8f40a2509847b329814a
MD5 72779e095c708b1e262c6ca08759ae07
BLAKE2b-256 40c8f706a0785f38d242e1a038597c09c2b6c6ecb5ed75cb81a1d7aeb4cdc203

See more details on using hashes here.

Provenance

The following attestation bundles were made for tusk_drift_python_sdk-0.1.0-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