rudder-sdk-python-2.1.4
توضیحات
RudderStack is an open-source Segment alternative written in Go, built for the enterprise.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | rudder-sdk-python-2.1.4 |
| نام | rudder-sdk-python |
| نسخه کتابخانه | 2.1.4 |
| نگهدارنده | ['RudderStack'] |
| ایمیل نگهدارنده | ['sdk@rudderstack.com'] |
| نویسنده | RudderStack |
| ایمیل نویسنده | sdk@rudderstack.com |
| آدرس صفحه اصلی | https://github.com/rudderlabs/rudder-sdk-python |
| آدرس اینترنتی | https://pypi.org/project/rudder-sdk-python/ |
| مجوز | MIT License |
# RudderStack Python SDK
RudderStack’s Python SDK lets you track events from your Python application. Once enabled, the event requests hit the RudderStack servers. RudderStack then transforms and routes these events to your specified destination platforms.
More details on the Python SDK can be found in our [**documentation**](https://docs.rudderstack.com/stream-sources/rudderstack-sdk-integration-guides/rudderstack-python-sdk)
## Getting Started with Python SDK
Install `rudder-sdk-python` using `pip`:
```bash
pip install rudder-sdk-python
```
## Initializing the RudderStack Client
```python
import rudderstack.analytics as analytics
analytics.write_key = <SOURCE_WRITE_KEY>
analytics.on_error = <FAILURE CALLBACK>
analytics.debug = <True or False>
analytics.dataPlaneUrl = <RUDDERSTACK_DATA_PLANE_URL>
analytics.gzip = <True or False>
```
## Sending Events
Once the RudderStack client is initialized, you can use it to send your customer events. A sample `track` call is shown below:
```python
rudder_analytics.track('developer_user_id', 'Simple Track Event', {
'key1': 'val1'
})
analytics.track('user_id', 'Simple Track Event', anonymous_id='anonymousId',
properties={
'key1': 'val1'
}, context={
'key1': 'val1'
})
```
For more information on the supported calls, refer to the [**documentation**](https://docs.rudderstack.com/stream-sources/rudderstack-sdk-integration-guides/rudderstack-python-sdk#sending-events-from-rudderstack).
## About RudderStack
[**RudderStack**](https://rudderstack.com/) is a customer data platform for developers. Our tooling makes it easy to deploy pipelines that collect customer data from every app, website and SaaS platform, then activate it in your warehouse and business tools.
More information on RudderStack can be found [**here**](https://github.com/rudderlabs/rudder-server).
## Contact Us
For more information on any of the sections covered in this readme, you can [**contact us**](mailto:%20docs@rudderstack.com) or start a conversation on our [**Slack**](https://resources.rudderstack.com/join-rudderstack-slack) channel.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests<3.0,>=2.32.3 |
| - | monotonic<2.0,>=1.6 |
| - | backoff<3.0,>=2.2.1 |
| - | python-dateutil<3.0,>=2.2 |
| - | python-dotenv<2.0.0,>=1.0.1 |
| - | deprecation<3.0.0,>=2.1.0 |
| xtr | mock==5.1.0; |
| xtr | flake8==7.1.1; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.0 | Python |
نحوه نصب
نصب پکیج whl rudder-sdk-python-2.1.4:
pip install rudder-sdk-python-2.1.4.whl
نصب پکیج tar.gz rudder-sdk-python-2.1.4:
pip install rudder-sdk-python-2.1.4.tar.gz