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.3.tar.gz (63.4 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.3-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tusk_drift_python_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 63.4 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.3.tar.gz
Algorithm Hash digest
SHA256 a38f26a8fa6c031b585482ca825937ab151a516c8ec495a55c96c1e9bc45c929
MD5 bf19e687069a0e12021e255ba5b4f1e2
BLAKE2b-256 f4b318cb29c351db9dc35f1fef7964cb559aeeec32a1c576b970ea8ea990ad00

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tusk_drift_python_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 24e6e89833135f59838c9f2b64d9973ba74c58f474580ae4ebb1f5a3d7819708
MD5 07bbb0d872523a0c72c0d08a666cc0f5
BLAKE2b-256 b7f27ddd5c466452786770b556719474e080b291069275a065e6511ae237b410

See more details on using hashes here.

Provenance

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