fiftyone-devicedetection-cloud 4.5.57__tar.gz → 4.5.59__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 (19) hide show
  1. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/PKG-INFO +1 -1
  2. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud.egg-info/PKG-INFO +1 -1
  3. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/tests/test_cloud.py +7 -0
  4. fiftyone_devicedetection_cloud-4.5.59/version.txt +1 -0
  5. fiftyone_devicedetection_cloud-4.5.57/version.txt +0 -1
  6. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/MANIFEST.in +0 -0
  7. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/pyproject.toml +0 -0
  8. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/readme.md +0 -0
  9. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/setup.cfg +0 -0
  10. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/setup.py +0 -0
  11. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud/__init__.py +0 -0
  12. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud/devicedetection_cloud.py +0 -0
  13. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud/devicedetection_cloud_pipelinebuilder.py +0 -0
  14. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud/hardwareprofile_cloud.py +0 -0
  15. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud.egg-info/SOURCES.txt +0 -0
  16. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud.egg-info/dependency_links.txt +0 -0
  17. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud.egg-info/requires.txt +0 -0
  18. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/src/fiftyone_devicedetection_cloud.egg-info/top_level.txt +0 -0
  19. {fiftyone_devicedetection_cloud-4.5.57 → fiftyone_devicedetection_cloud-4.5.59}/tests/test_properties.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fiftyone_devicedetection_cloud
3
- Version: 4.5.57
3
+ Version: 4.5.59
4
4
  Summary: 51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This package retrieves device detection results by consuming the 51Degrees cloud service.
5
5
  Home-page: https://51degrees.com/?utm_source=pypi&utm_medium=package&utm_campaign=device-detection-python&utm_content=fiftyone_devicedetection_cloud-setup.py&utm_term=url
6
6
  Author: 51Degrees Engineering
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fiftyone_devicedetection_cloud
3
- Version: 4.5.57
3
+ Version: 4.5.59
4
4
  Summary: 51Degrees Device Detection parses HTTP headers to return detailed hardware, operating system, browser, and crawler information for the devices used to access your website or service. This package retrieves device detection results by consuming the 51Degrees cloud service.
5
5
  Home-page: https://51degrees.com/?utm_source=pypi&utm_medium=package&utm_campaign=device-detection-python&utm_content=fiftyone_devicedetection_cloud-setup.py&utm_term=url
6
6
  Author: 51Degrees Engineering
@@ -22,6 +22,7 @@
22
22
 
23
23
  import unittest
24
24
  import os
25
+ import re
25
26
  import time
26
27
 
27
28
  from fiftyone_devicedetection_cloud.devicedetection_cloud_pipelinebuilder import DeviceDetectionCloudPipelineBuilder
@@ -103,6 +104,9 @@ class DeviceDetectionTests(unittest.TestCase):
103
104
  except Exception as e:
104
105
  result = str(e)
105
106
 
107
+ # The explainer URL may carry UTM query parameters; ignore them.
108
+ result = re.sub(r'\?utm_[^\s]*', '', result)
109
+
106
110
  self.assertEqual(
107
111
  result, "Your resource key does not include access to any properties under notpresent. For more details on resource keys, see our explainer: https://51degrees.com/documentation/_info__resource_keys.html Available element data keys are: ['device']")
108
112
 
@@ -157,6 +161,9 @@ class DeviceDetectionTests(unittest.TestCase):
157
161
 
158
162
  self.maxDiff = None
159
163
 
164
+ # The explainer URL may carry UTM query parameters; ignore them.
165
+ result = re.sub(r'\?utm_[^\s]*', '', result)
166
+
160
167
  self.assertEqual(
161
168
  result, "Property notpresent not found in data for element device. This is because your resource key does not include access to this property. Properties that are included for this key under device are " + ', '.join(list(pipeline.get_element("device").get_properties().keys())) + ". For more details on resource keys, see our explainer: https://51degrees.com/documentation/_info__resource_keys.html")
162
169
 
@@ -0,0 +1 @@
1
+ 4.5.59
@@ -1 +0,0 @@
1
- 4.5.57