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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tusk_drift_python_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 56.6 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.1.tar.gz
Algorithm Hash digest
SHA256 a79cc8501953e900ca5cfed09eda263b56ed7cfc8b308fecaff75253571d2ce0
MD5 db47329333b3d28cb7a214a8798d36ec
BLAKE2b-256 bffebb367b6ed9c430161b8f61b96d957feb1e90d1f2f5cd2b77043cda1c2b57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tusk_drift_python_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6396044dfe4c8ae45bc3efac3f58349e999a7cf9235afa38fccd1de8ceb93800
MD5 fcf031c345df8eab1a6f5f9710f2a13b
BLAKE2b-256 a3cb23157101a6967edf6fefcb60c7c5037cb4c5ce9472fb41e8a60cdbbed65e

See more details on using hashes here.

Provenance

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