You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-25Lines changed: 38 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,43 +39,64 @@ For comprehensive guides and API reference, visit our [full documentation](https
39
39
40
40
## Requirements
41
41
42
-
- Python 3.12+
42
+
- Python 3.9+
43
43
44
44
Tusk Drift currently supports the following packages and versions:
45
45
46
-
-**Flask**: `flask>=2.0.0`
47
-
-**FastAPI**: `fastapi>=0.68.0`
48
-
-**Django**: `django>=3.2.0`
49
-
-**Requests**: `requests` (all versions)
50
-
-**HTTPX**: `httpx` (all versions)
51
-
-**psycopg**: `psycopg>=3.0.0`, `psycopg2>=2.8.0`
52
-
-**Redis**: `redis` (all versions)
46
+
| Package | Supported Versions |
47
+
|---------|-------------------|
48
+
| Flask |`>=2.0.0`|
49
+
| FastAPI |`>=0.68.0`|
50
+
| Django |`>=3.2.0`|
51
+
| Requests | all versions |
52
+
| HTTPX | all versions |
53
+
| aiohttp | all versions |
54
+
| urllib3 | all versions |
55
+
| grpcio (client-side only) | all versions |
56
+
| psycopg |`>=3.1.12`|
57
+
| psycopg2 | all versions |
58
+
| Redis |`>=4.0.0`|
59
+
| Kinde |`>=2.0.1`|
60
+
| PyJWT | all versions |
61
+
| urllib.request | all versions |
53
62
54
63
If you're using packages or versions not listed above, please create an issue with the package + version you'd like an instrumentation for.
55
64
56
65
## Installation
57
66
58
67
### Step 1: Install the CLI
59
68
60
-
First, install and configure the Tusk Drift CLI by following our [CLI installation guide](https://github.com/Use-Tusk/tusk-drift-cli?tab=readme-ov-file#install). The CLI helps set up your Tusk configuration file and replays tests.
69
+
First, install the Tusk Drift CLI by following our [CLI installation guide](https://github.com/Use-Tusk/tusk-drift-cli?tab=readme-ov-file#install).
61
70
62
-
The wizard will eventually direct you back here when it's time to set up the SDK.
71
+
### Step 2: Set up Tusk Drift
63
72
64
-
###Step 2: Install the SDK
73
+
#### AI-powered setup (recommended)
65
74
66
-
After completing the CLI wizard, install the SDK:
75
+
Use our AI agent to automatically set up Tusk Drift for your service:
67
76
68
77
```bash
69
-
pip install tusk-drift-python-sdk
78
+
cd path/to/your/service
79
+
export ANTHROPIC_API_KEY=your-api-key
80
+
tusk setup
70
81
```
71
82
72
-
### Step 3: Initialize the SDK for your service
83
+
The agent will analyze your codebase, install the SDK, instrument it into your application, create configuration files, and test the setup with recording and replay.
73
84
74
-
Refer to our [initialization guide](docs/initialization.md) to set up the SDK for your service.
85
+
#### Manual setup
75
86
76
-
### Step 4: Run Your First Test
87
+
Alternatively, you can set up Tusk Drift manually:
77
88
78
-
Follow along our [quick start guide](docs/quickstart.md) to record and replay your first test!
89
+
1. Install the SDK:
90
+
91
+
```bash
92
+
pip install tusk-drift-python-sdk
93
+
```
94
+
95
+
2. Create configuration: Run `tusk init` to create your `.tusk/config.yaml` config file interactively, or create it manually per the [configuration docs](https://github.com/Use-Tusk/tusk-drift-cli/blob/main/docs/configuration.md).
96
+
97
+
3. Initialize the SDK: Refer to the [initialization guide](docs/initialization.md) to instrument the SDK in your service.
98
+
99
+
4. Record and replay: Follow the [quick start guide](docs/quickstart.md) to record and replay your first test!
79
100
80
101
## Troubleshooting
81
102
@@ -87,11 +108,3 @@ Having issues?
87
108
## Community
88
109
89
110
Join our open source community on [Slack](https://join.slack.com/t/tusk-community/shared_invite/zt-3fve1s7ie-NAAUn~UpHsf1m_2tdoGjsQ).
90
-
91
-
## Contributing
92
-
93
-
We appreciate feedback and contributions. See [CONTRIBUTING.md](/CONTRIBUTING.md).
94
-
95
-
## License
96
-
97
-
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
0 commit comments