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.dev1.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.0.dev1-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for tusk_drift_python_sdk-0.1.0.dev1.tar.gz
Algorithm Hash digest
SHA256 8a25a0aaf6f1a8d144f1a53db6baf524081b141174d8d761b1139ed156b2b99e
MD5 51af23a25489d45e83ba8e08de49505e
BLAKE2b-256 b4f2359275b13823acd40bb9acf1a9f015e2e87f615a3748b26dcba692c92ba1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for tusk_drift_python_sdk-0.1.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8426e858fb56985d2f0f9500b296a7e0864771b12b4eebd5839775c1b20bb3
MD5 b7b1c360123f9dff176c63e386bb0bc0
BLAKE2b-256 6b7262d5045f31190b467f9bec922dca18ae179ae05f3dc7fc8b5695b8e961ae

See more details on using hashes here.

Provenance

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