rudder-sdk-python 2.0.1__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rudder-sdk-python-2.1.0/LICENSE.md +52 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/PKG-INFO +1 -5
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudder_sdk_python.egg-info/PKG-INFO +1 -5
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudder_sdk_python.egg-info/SOURCES.txt +0 -1
- rudder-sdk-python-2.1.0/rudder_sdk_python.egg-info/requires.txt +11 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/__init__.py +7 -2
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/client.py +1 -1
- rudder-sdk-python-2.1.0/rudderstack/analytics/version.py +1 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/setup.py +6 -6
- rudder-sdk-python-2.0.1/LICENSE +0 -21
- rudder-sdk-python-2.0.1/LICENSE.md +0 -21
- rudder-sdk-python-2.0.1/rudder_sdk_python.egg-info/requires.txt +0 -11
- rudder-sdk-python-2.0.1/rudderstack/analytics/version.py +0 -1
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/README.md +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudder_sdk_python.egg-info/dependency_links.txt +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudder_sdk_python.egg-info/top_level.txt +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/consumer.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/get_env.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/request.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/__init__.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_client.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_constants.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_consumer.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_module.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_request.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_utils.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/utils.py +0 -0
- {rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/setup.cfg +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
ORIGINAL LICENSE
|
|
2
|
+
------------------------
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2021 Segment (segment.com)
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
|
24
|
+
------------------------
|
|
25
|
+
|
|
26
|
+
UPDATE NOTICE
|
|
27
|
+
------------------------
|
|
28
|
+
THE LICENSE STATED BELOW IS EFFECTIVE ON AND AFTER APRIL 21ST, 2020
|
|
29
|
+
------------------------
|
|
30
|
+
|
|
31
|
+
MIT License
|
|
32
|
+
|
|
33
|
+
Copyright (c) 2020 RudderStack
|
|
34
|
+
|
|
35
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
36
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
37
|
+
in the Software without restriction, including without limitation the rights
|
|
38
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
39
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
40
|
+
furnished to do so, subject to the following conditions:
|
|
41
|
+
|
|
42
|
+
The above copyright notice and this permission notice shall be included in all
|
|
43
|
+
copies or substantial portions of the Software.
|
|
44
|
+
|
|
45
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
46
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
47
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
48
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
49
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
50
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
51
|
+
SOFTWARE.
|
|
52
|
+
------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rudder-sdk-python
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: RudderStack is an open-source Segment alternative written in Go, built for the enterprise.
|
|
5
5
|
Home-page: https://github.com/rudderlabs/rudder-sdk-python
|
|
6
6
|
Author: Rudderstack
|
|
@@ -9,7 +9,6 @@ Maintainer: Rudderstack
|
|
|
9
9
|
Maintainer-email: sdk@rudderstack.com
|
|
10
10
|
License: MIT License
|
|
11
11
|
Keywords: rudder,rudderstack,analytics
|
|
12
|
-
Platform: UNKNOWN
|
|
13
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
13
|
Classifier: Intended Audience :: Developers
|
|
15
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -21,7 +20,6 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
21
|
Requires-Python: >=3.6.0
|
|
23
22
|
Provides-Extra: test
|
|
24
|
-
License-File: LICENSE
|
|
25
23
|
License-File: LICENSE.md
|
|
26
24
|
|
|
27
25
|
|
|
@@ -29,5 +27,3 @@ RudderStack is a platform for collecting, storing and routing customer event dat
|
|
|
29
27
|
of tools. RudderStack is open-source, can run in your cloud environment
|
|
30
28
|
(AWS, GCP, Azure or even your data-centre) and provides a powerful transformation
|
|
31
29
|
framework to process your event data on the fly.
|
|
32
|
-
|
|
33
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rudder-sdk-python
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: RudderStack is an open-source Segment alternative written in Go, built for the enterprise.
|
|
5
5
|
Home-page: https://github.com/rudderlabs/rudder-sdk-python
|
|
6
6
|
Author: Rudderstack
|
|
@@ -9,7 +9,6 @@ Maintainer: Rudderstack
|
|
|
9
9
|
Maintainer-email: sdk@rudderstack.com
|
|
10
10
|
License: MIT License
|
|
11
11
|
Keywords: rudder,rudderstack,analytics
|
|
12
|
-
Platform: UNKNOWN
|
|
13
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
13
|
Classifier: Intended Audience :: Developers
|
|
15
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -21,7 +20,6 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
21
|
Requires-Python: >=3.6.0
|
|
23
22
|
Provides-Extra: test
|
|
24
|
-
License-File: LICENSE
|
|
25
23
|
License-File: LICENSE.md
|
|
26
24
|
|
|
27
25
|
|
|
@@ -29,5 +27,3 @@ RudderStack is a platform for collecting, storing and routing customer event dat
|
|
|
29
27
|
of tools. RudderStack is open-source, can run in your cloud environment
|
|
30
28
|
(AWS, GCP, Azure or even your data-centre) and provides a powerful transformation
|
|
31
29
|
framework to process your event data on the fly.
|
|
32
|
-
|
|
33
|
-
|
|
@@ -28,7 +28,7 @@ host = Client.DefaultConfig.host
|
|
|
28
28
|
|
|
29
29
|
@property
|
|
30
30
|
def dataPlaneUrl(self):
|
|
31
|
-
return
|
|
31
|
+
return dataPlaneUrl
|
|
32
32
|
|
|
33
33
|
@dataPlaneUrl.setter
|
|
34
34
|
def dataPlaneUrl(self, value: str):
|
|
@@ -98,7 +98,12 @@ def _proxy(method, *args, **kwargs):
|
|
|
98
98
|
"""Create an analytics client if one doesn't exist and send to it."""
|
|
99
99
|
global default_client
|
|
100
100
|
if not default_client:
|
|
101
|
-
|
|
101
|
+
if isinstance(dataPlaneUrl,str) and dataPlaneUrl != "":
|
|
102
|
+
finalDataplaneUrl = dataPlaneUrl
|
|
103
|
+
else:
|
|
104
|
+
finalDataplaneUrl = host
|
|
105
|
+
|
|
106
|
+
default_client = Client(write_key, host=finalDataplaneUrl, debug=debug,
|
|
102
107
|
max_queue_size=max_queue_size,
|
|
103
108
|
send=send, on_error=on_error,
|
|
104
109
|
gzip=gzip, max_retries=max_retries,
|
|
@@ -276,7 +276,7 @@ class Client(object):
|
|
|
276
276
|
# Check message size.
|
|
277
277
|
msg_size = len(json.dumps(msg, cls=DatetimeSerializer).encode())
|
|
278
278
|
if msg_size > MAX_MSG_SIZE:
|
|
279
|
-
raise RuntimeError('Message exceeds
|
|
279
|
+
raise RuntimeError(f'Message exceeds {str(int(MAX_MSG_SIZE / 1024))}kb limit. ({str(msg)})')
|
|
280
280
|
|
|
281
281
|
# if send is False, return msg as if it was successfully queued
|
|
282
282
|
if not self.send:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '2.1.0'
|
|
@@ -18,12 +18,12 @@ framework to process your event data on the fly.
|
|
|
18
18
|
'''
|
|
19
19
|
|
|
20
20
|
install_requires = [
|
|
21
|
-
"requests
|
|
22
|
-
"monotonic
|
|
23
|
-
"backoff
|
|
24
|
-
"python-dateutil
|
|
25
|
-
"python-dotenv
|
|
26
|
-
"deprecation
|
|
21
|
+
"requests>=2.8,<3.0",
|
|
22
|
+
"monotonic>=1.5,<2.0",
|
|
23
|
+
"backoff>=2.1,<3.0",
|
|
24
|
+
"python-dateutil>=2.2,<3.0",
|
|
25
|
+
"python-dotenv>=0.21.0,<0.22.0",
|
|
26
|
+
"deprecation>=2.0.6,<3.0.0",
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
tests_require = [
|
rudder-sdk-python-2.0.1/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Rudderstack (rudderstack.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 RudderStack
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '2.0.1'
|
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudder_sdk_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudder_sdk_python.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_client.py
RENAMED
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_constants.py
RENAMED
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_consumer.py
RENAMED
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_module.py
RENAMED
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_request.py
RENAMED
|
File without changes
|
{rudder-sdk-python-2.0.1 → rudder-sdk-python-2.1.0}/rudderstack/analytics/test/test_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|