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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0d7edd07cadde9d516b0351cea0f33f7aeb6812732afe2919c0cde849e92d0d
|
|
| MD5 |
365426528a35433af2159c00c0b808a7
|
|
| BLAKE2b-256 |
320c7ba634057bc1b385a6f4a31bad089b90ff3f0947f53b9053a19486a2f76a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tusk_drift_python_sdk-0.1.0.tar.gz -
Subject digest:
c0d7edd07cadde9d516b0351cea0f33f7aeb6812732afe2919c0cde849e92d0d - Sigstore transparency entry: 737739433
- Sigstore integration time:
-
Permalink:
Use-Tusk/drift-python-sdk@62f63eedb46885336562a4de5b95704110580d70 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Use-Tusk
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@62f63eedb46885336562a4de5b95704110580d70 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tusk_drift_python_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tusk_drift_python_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 68.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3d3a1a0314eefb337145df75a69069e527aab9dd24a8f40a2509847b329814a
|
|
| MD5 |
72779e095c708b1e262c6ca08759ae07
|
|
| BLAKE2b-256 |
40c8f706a0785f38d242e1a038597c09c2b6c6ecb5ed75cb81a1d7aeb4cdc203
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tusk_drift_python_sdk-0.1.0-py3-none-any.whl -
Subject digest:
b3d3a1a0314eefb337145df75a69069e527aab9dd24a8f40a2509847b329814a - Sigstore transparency entry: 737739445
- Sigstore integration time:
-
Permalink:
Use-Tusk/drift-python-sdk@62f63eedb46885336562a4de5b95704110580d70 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Use-Tusk
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@62f63eedb46885336562a4de5b95704110580d70 -
Trigger Event:
workflow_dispatch
-
Statement type: