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
The package ships with a `sitecustomize.py` entry-point, therefore Python imports the agent automatically before your application's code starts. This is the recommended and default way to use Superclient.
92
+
That's it! Superclient will now automatically load and optimize all Kafka producers in your Python environment.
91
93
92
-
#### Manual Initialization (Only if needed)
94
+
##Usage
93
95
94
-
If `sitecustomize` is disabled in your environment (e.g., when using `python -S` or when `PYTHONNOUSERSITE` is set), you can initialize manually by adding this import at the very beginning of your application's main entry point (e.g., `main.py`, `app.py`, or `__init__.py`):
96
+
After installation, superclient works automatically. Just use your Kafka clients as usual:
95
97
96
98
```python
97
-
import superclient # side-effects automatically enable the agent
0 commit comments