rudder-sdk-python 2.0.2__tar.gz → 2.1.1__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.
Files changed (28) hide show
  1. rudder-sdk-python-2.1.1/LICENSE.md +43 -0
  2. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/PKG-INFO +1 -5
  3. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudder_sdk_python.egg-info/PKG-INFO +1 -5
  4. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudder_sdk_python.egg-info/SOURCES.txt +0 -1
  5. rudder-sdk-python-2.1.1/rudder_sdk_python.egg-info/requires.txt +11 -0
  6. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/client.py +1 -1
  7. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/consumer.py +1 -0
  8. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/request.py +1 -0
  9. rudder-sdk-python-2.1.1/rudderstack/analytics/version.py +1 -0
  10. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/setup.py +6 -6
  11. rudder-sdk-python-2.0.2/LICENSE +0 -21
  12. rudder-sdk-python-2.0.2/LICENSE.md +0 -21
  13. rudder-sdk-python-2.0.2/rudder_sdk_python.egg-info/requires.txt +0 -11
  14. rudder-sdk-python-2.0.2/rudderstack/analytics/version.py +0 -1
  15. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/README.md +0 -0
  16. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudder_sdk_python.egg-info/dependency_links.txt +0 -0
  17. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudder_sdk_python.egg-info/top_level.txt +0 -0
  18. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/__init__.py +0 -0
  19. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/get_env.py +0 -0
  20. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/test/__init__.py +0 -0
  21. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/test/test_client.py +0 -0
  22. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/test/test_constants.py +0 -0
  23. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/test/test_consumer.py +0 -0
  24. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/test/test_module.py +0 -0
  25. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/test/test_request.py +0 -0
  26. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/test/test_utils.py +0 -0
  27. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/rudderstack/analytics/utils.py +0 -0
  28. {rudder-sdk-python-2.0.2 → rudder-sdk-python-2.1.1}/setup.cfg +0 -0
@@ -0,0 +1,43 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Segment (segment.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.
22
+
23
+ MIT License
24
+
25
+ Copyright (c) 2020 RudderStack
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rudder-sdk-python
3
- Version: 2.0.2
3
+ Version: 2.1.1
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.2
3
+ Version: 2.1.1
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,4 +1,3 @@
1
- LICENSE
2
1
  LICENSE.md
3
2
  README.md
4
3
  setup.cfg
@@ -0,0 +1,11 @@
1
+ requests<3.0,>=2.8
2
+ monotonic<2.0,>=1.5
3
+ backoff<3.0,>=2.1
4
+ python-dateutil<3.0,>=2.2
5
+ python-dotenv<2.0.0,>=0.21.0
6
+ deprecation<3.0.0,>=2.0.6
7
+
8
+ [test]
9
+ mock==2.0.0
10
+ pylint==2.8.0
11
+ flake8==3.7.9
@@ -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 %skb limit. (%s)', str(int(MAX_MSG_SIZE / 1024)), str(msg))
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:
@@ -120,6 +120,7 @@ class Consumer(Thread):
120
120
  return (400 <= exc.status < 500) and exc.status != 429
121
121
  else:
122
122
  # retry on all other errors (eg. network)
123
+ print("error: ", exc)
123
124
  return False
124
125
 
125
126
  @backoff.on_exception(
@@ -44,6 +44,7 @@ def post(write_key, host=None, gzip=True, timeout=15, proxies=None, **kwargs):
44
44
  headers=headers, timeout=timeout)
45
45
 
46
46
  if res.status_code == 200:
47
+ print("success")
47
48
  log.debug('data uploaded successfully')
48
49
  return res
49
50
 
@@ -0,0 +1 @@
1
+ VERSION = '2.1.1'
@@ -18,12 +18,12 @@ framework to process your event data on the fly.
18
18
  '''
19
19
 
20
20
  install_requires = [
21
- "requests~=2.7",
22
- "monotonic~=1.5",
23
- "backoff~=2.1",
24
- "python-dateutil~=2.2",
25
- "python-dotenv~=0.21.0",
26
- "deprecation~=2.0.6",
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,<2.0.0",
26
+ "deprecation>=2.0.6,<3.0.0",
27
27
  ]
28
28
 
29
29
  tests_require = [
@@ -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,11 +0,0 @@
1
- requests~=2.7
2
- monotonic~=1.5
3
- backoff~=2.1
4
- python-dateutil~=2.2
5
- python-dotenv~=0.21.0
6
- deprecation~=2.0.6
7
-
8
- [test]
9
- mock==2.0.0
10
- pylint==2.8.0
11
- flake8==3.7.9
@@ -1 +0,0 @@
1
- VERSION = '2.0.2'