herepy 3.6.0__tar.gz → 3.6.2__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 (63) hide show
  1. {herepy-3.6.0 → herepy-3.6.2}/PKG-INFO +4 -5
  2. {herepy-3.6.0 → herepy-3.6.2}/herepy/__init__.py +1 -1
  3. {herepy-3.6.0 → herepy-3.6.2}/herepy/routing_api.py +2 -2
  4. {herepy-3.6.0 → herepy-3.6.2}/herepy.egg-info/PKG-INFO +4 -5
  5. herepy-3.6.2/herepy.egg-info/requires.txt +1 -0
  6. herepy-3.6.2/requirements.txt +1 -0
  7. herepy-3.6.2/setup.py +66 -0
  8. {herepy-3.6.0 → herepy-3.6.2}/tests/test_routing_api.py +22 -0
  9. herepy-3.6.0/herepy.egg-info/requires.txt +0 -1
  10. herepy-3.6.0/requirements.txt +0 -1
  11. herepy-3.6.0/setup.py +0 -62
  12. {herepy-3.6.0 → herepy-3.6.2}/COPYING +0 -0
  13. {herepy-3.6.0 → herepy-3.6.2}/LICENSE +0 -0
  14. {herepy-3.6.0 → herepy-3.6.2}/MANIFEST.in +0 -0
  15. {herepy-3.6.0 → herepy-3.6.2}/NOTICE +0 -0
  16. {herepy-3.6.0 → herepy-3.6.2}/README.rst +0 -0
  17. {herepy-3.6.0 → herepy-3.6.2}/herepy/destination_weather_api.py +0 -0
  18. {herepy-3.6.0 → herepy-3.6.2}/herepy/error.py +0 -0
  19. {herepy-3.6.0 → herepy-3.6.2}/herepy/ev_charging_stations_api.py +0 -0
  20. {herepy-3.6.0 → herepy-3.6.2}/herepy/fleet_telematics_api.py +0 -0
  21. {herepy-3.6.0 → herepy-3.6.2}/herepy/geocoder_api.py +0 -0
  22. {herepy-3.6.0 → herepy-3.6.2}/herepy/geocoder_autocomplete_api.py +0 -0
  23. {herepy-3.6.0 → herepy-3.6.2}/herepy/geocoder_reverse_api.py +0 -0
  24. {herepy-3.6.0 → herepy-3.6.2}/herepy/here_api.py +0 -0
  25. {herepy-3.6.0 → herepy-3.6.2}/herepy/here_enum.py +0 -0
  26. {herepy-3.6.0 → herepy-3.6.2}/herepy/isoline_routing_api.py +0 -0
  27. {herepy-3.6.0 → herepy-3.6.2}/herepy/map_image_api.py +0 -0
  28. {herepy-3.6.0 → herepy-3.6.2}/herepy/map_tile_api.py +0 -0
  29. {herepy-3.6.0 → herepy-3.6.2}/herepy/mercator_projection.py +0 -0
  30. {herepy-3.6.0 → herepy-3.6.2}/herepy/models.py +0 -0
  31. {herepy-3.6.0 → herepy-3.6.2}/herepy/objects.py +0 -0
  32. {herepy-3.6.0 → herepy-3.6.2}/herepy/places_api.py +0 -0
  33. {herepy-3.6.0 → herepy-3.6.2}/herepy/platform/__init__.py +0 -0
  34. {herepy-3.6.0 → herepy-3.6.2}/herepy/platform/tour_planning_api.py +0 -0
  35. {herepy-3.6.0 → herepy-3.6.2}/herepy/polling.py +0 -0
  36. {herepy-3.6.0 → herepy-3.6.2}/herepy/public_transit_api.py +0 -0
  37. {herepy-3.6.0 → herepy-3.6.2}/herepy/py.typed +0 -0
  38. {herepy-3.6.0 → herepy-3.6.2}/herepy/rme_api.py +0 -0
  39. {herepy-3.6.0 → herepy-3.6.2}/herepy/traffic_api.py +0 -0
  40. {herepy-3.6.0 → herepy-3.6.2}/herepy/utils.py +0 -0
  41. {herepy-3.6.0 → herepy-3.6.2}/herepy/vector_tile_api.py +0 -0
  42. {herepy-3.6.0 → herepy-3.6.2}/herepy.egg-info/SOURCES.txt +0 -0
  43. {herepy-3.6.0 → herepy-3.6.2}/herepy.egg-info/dependency_links.txt +0 -0
  44. {herepy-3.6.0 → herepy-3.6.2}/herepy.egg-info/top_level.txt +0 -0
  45. {herepy-3.6.0 → herepy-3.6.2}/setup.cfg +0 -0
  46. {herepy-3.6.0 → herepy-3.6.2}/tests/test_destination_weather_api.py +0 -0
  47. {herepy-3.6.0 → herepy-3.6.2}/tests/test_enum.py +0 -0
  48. {herepy-3.6.0 → herepy-3.6.2}/tests/test_ev_charging_stations_api.py +0 -0
  49. {herepy-3.6.0 → herepy-3.6.2}/tests/test_fleet_telematics_api.py +0 -0
  50. {herepy-3.6.0 → herepy-3.6.2}/tests/test_geocoder_api.py +0 -0
  51. {herepy-3.6.0 → herepy-3.6.2}/tests/test_geocoder_autocomplete_api.py +0 -0
  52. {herepy-3.6.0 → herepy-3.6.2}/tests/test_geocoder_reverse_api.py +0 -0
  53. {herepy-3.6.0 → herepy-3.6.2}/tests/test_isoline_routing_api.py +0 -0
  54. {herepy-3.6.0 → herepy-3.6.2}/tests/test_map_image_api.py +0 -0
  55. {herepy-3.6.0 → herepy-3.6.2}/tests/test_map_tile_api.py +0 -0
  56. {herepy-3.6.0 → herepy-3.6.2}/tests/test_mercator_projection.py +0 -0
  57. {herepy-3.6.0 → herepy-3.6.2}/tests/test_models.py +0 -0
  58. {herepy-3.6.0 → herepy-3.6.2}/tests/test_places_api.py +0 -0
  59. {herepy-3.6.0 → herepy-3.6.2}/tests/test_publictransit_api.py +0 -0
  60. {herepy-3.6.0 → herepy-3.6.2}/tests/test_rme_api.py +0 -0
  61. {herepy-3.6.0 → herepy-3.6.2}/tests/test_traffic_api.py +0 -0
  62. {herepy-3.6.0 → herepy-3.6.2}/tests/test_utils.py +0 -0
  63. {herepy-3.6.0 → herepy-3.6.2}/tests/test_vector_tile_api.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: herepy
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: A library that provides a Python interface to the HERE APIs
5
5
  Home-page: https://github.com/abdullahselek/HerePy
6
6
  Download-URL: https://pypi.org/pypi/herepy
@@ -17,18 +17,17 @@ Classifier: Operating System :: OS Independent
17
17
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.5
21
- Classifier: Programming Language :: Python :: 3.6
22
- Classifier: Programming Language :: Python :: 3.7
23
20
  Classifier: Programming Language :: Python :: 3.8
24
21
  Classifier: Programming Language :: Python :: 3.9
25
22
  Classifier: Programming Language :: Python :: 3.10
26
23
  Classifier: Programming Language :: Python :: 3.11
27
- Requires-Python: >=3.5
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Requires-Python: >=3.8
28
26
  Description-Content-Type: text/x-rst
29
27
  License-File: LICENSE
30
28
  License-File: COPYING
31
29
  License-File: NOTICE
30
+ Requires-Dist: Requests<3,>=2.25.1
32
31
 
33
32
  HerePy
34
33
  ======
@@ -6,7 +6,7 @@ __author__ = "Abdullah Selek"
6
6
  __email__ = "abdullahselek.os@gmail.com"
7
7
  __copyright__ = "Copyright (c) 2017 Abdullah Selek"
8
8
  __license__ = "MIT License"
9
- __version__ = "3.6.0"
9
+ __version__ = "3.6.2"
10
10
  __url__ = "https://github.com/abdullahselek/HerePy"
11
11
  __download_url__ = "https://pypi.org/pypi/herepy"
12
12
  __description__ = "A library that provides a Python interface to the HERE APIs"
@@ -448,7 +448,7 @@ class RoutingApi(HEREApi):
448
448
  via_keys = []
449
449
  if via:
450
450
  for i, v in enumerate(via):
451
- key = str.format("{0}{1}", "via", i)
451
+ key = str.format("{0}{1}_", "via", i)
452
452
  via_keys.append(key)
453
453
  data[key] = str.format("{0},{1}", v[0], v[1])
454
454
  if departure_time:
@@ -845,7 +845,7 @@ class RoutingApi(HEREApi):
845
845
  geocoder_response = geocoder_api.free_form(location_name)
846
846
  coordinates = geocoder_response.items[0]["position"]
847
847
  return [coordinates["lat"], coordinates["lng"]]
848
- except (HEREError) as here_error:
848
+ except HEREError as here_error:
849
849
  raise WaypointNotFoundError(here_error.message)
850
850
 
851
851
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: herepy
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: A library that provides a Python interface to the HERE APIs
5
5
  Home-page: https://github.com/abdullahselek/HerePy
6
6
  Download-URL: https://pypi.org/pypi/herepy
@@ -17,18 +17,17 @@ Classifier: Operating System :: OS Independent
17
17
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.5
21
- Classifier: Programming Language :: Python :: 3.6
22
- Classifier: Programming Language :: Python :: 3.7
23
20
  Classifier: Programming Language :: Python :: 3.8
24
21
  Classifier: Programming Language :: Python :: 3.9
25
22
  Classifier: Programming Language :: Python :: 3.10
26
23
  Classifier: Programming Language :: Python :: 3.11
27
- Requires-Python: >=3.5
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Requires-Python: >=3.8
28
26
  Description-Content-Type: text/x-rst
29
27
  License-File: LICENSE
30
28
  License-File: COPYING
31
29
  License-File: NOTICE
30
+ Requires-Dist: Requests<3,>=2.25.1
32
31
 
33
32
  HerePy
34
33
  ======
@@ -0,0 +1 @@
1
+ Requests<3,>=2.25.1
@@ -0,0 +1 @@
1
+ Requests>=2.25.1,<3
herepy-3.6.2/setup.py ADDED
@@ -0,0 +1,66 @@
1
+ #!/usr/bin/env python
2
+
3
+ import codecs
4
+ import os
5
+ import re
6
+
7
+ from setuptools import find_packages, setup
8
+
9
+ cwd = os.path.abspath(os.path.dirname(__file__))
10
+
11
+
12
+ def read(filename):
13
+ with codecs.open(os.path.join(cwd, filename), "rb", "utf-8") as h:
14
+ return h.read()
15
+
16
+
17
+ metadata = read(os.path.join(cwd, "herepy", "__init__.py"))
18
+
19
+
20
+ def extract_metaitem(meta):
21
+ meta_match = re.search(
22
+ r"""^__{meta}__\s+=\s+['\"]([^'\"]*)['\"]""".format(meta=meta),
23
+ metadata,
24
+ re.MULTILINE,
25
+ )
26
+ if meta_match:
27
+ return meta_match.group(1)
28
+ raise RuntimeError("Unable to find __{meta}__ string.".format(meta=meta))
29
+
30
+
31
+ with open("requirements.txt") as f:
32
+ requirements = f.read().splitlines()
33
+
34
+ setup(
35
+ name="herepy",
36
+ version=extract_metaitem("version"),
37
+ license=extract_metaitem("license"),
38
+ description=extract_metaitem("description"),
39
+ long_description=(read("README.rst")),
40
+ long_description_content_type="text/x-rst",
41
+ author=extract_metaitem("author"),
42
+ author_email=extract_metaitem("email"),
43
+ maintainer=extract_metaitem("author"),
44
+ maintainer_email=extract_metaitem("email"),
45
+ url=extract_metaitem("url"),
46
+ download_url=extract_metaitem("download_url"),
47
+ packages=find_packages(exclude=("tests", "docs")),
48
+ package_data={"herepy": ["py.typed"]},
49
+ platforms=["Any"],
50
+ python_requires=">=3.8",
51
+ install_requires=requirements,
52
+ keywords="here api, here technologies, here python api clients, rest api clients",
53
+ classifiers=[
54
+ "Intended Audience :: Developers",
55
+ "License :: OSI Approved :: MIT License",
56
+ "Operating System :: OS Independent",
57
+ "Topic :: Software Development :: Libraries :: Python Modules",
58
+ "Programming Language :: Python",
59
+ "Programming Language :: Python :: 3",
60
+ "Programming Language :: Python :: 3.8",
61
+ "Programming Language :: Python :: 3.9",
62
+ "Programming Language :: Python :: 3.10",
63
+ "Programming Language :: Python :: 3.11",
64
+ "Programming Language :: Python :: 3.12",
65
+ ],
66
+ )
@@ -1179,3 +1179,25 @@ class RoutingApiTest(unittest.TestCase):
1179
1179
  truck={"shippedHazardousGoods": ["explosive", "gas"]},
1180
1180
  scooter={"allowHighway": "true"},
1181
1181
  )
1182
+
1183
+ @responses.activate
1184
+ def test_route_v8_multiple_via_points(self):
1185
+ responses.add(
1186
+ responses.GET,
1187
+ "https://router.hereapi.com/v8/routes",
1188
+ "{}",
1189
+ status=200,
1190
+ match=[
1191
+ responses.matchers.query_param_matcher(
1192
+ {"via": ["41.9339,-87.9021"] * 11}, strict_match=False
1193
+ )
1194
+ ],
1195
+ )
1196
+ response = self._api.route_v8(
1197
+ transport_mode=herepy.RoutingTransportMode.car,
1198
+ origin=[41.9798, -87.8801],
1199
+ destination=[41.9043, -87.9216],
1200
+ via=[[41.9339, -87.9021]] * 11,
1201
+ )
1202
+ self.assertTrue(response)
1203
+ self.assertIsInstance(response, herepy.RoutingResponseV8)
@@ -1 +0,0 @@
1
- requests<3,>=2.25.1
@@ -1 +0,0 @@
1
- requests>=2.25.1,<3
herepy-3.6.0/setup.py DELETED
@@ -1,62 +0,0 @@
1
- #!/usr/bin/env python
2
-
3
- import os
4
- import re
5
- import codecs
6
-
7
- from setuptools import setup, find_packages
8
-
9
-
10
- cwd = os.path.abspath(os.path.dirname(__file__))
11
-
12
- def read(filename):
13
- with codecs.open(os.path.join(cwd, filename), 'rb', 'utf-8') as h:
14
- return h.read()
15
-
16
- metadata = read(os.path.join(cwd, 'herepy', '__init__.py'))
17
-
18
- def extract_metaitem(meta):
19
- meta_match = re.search(r"""^__{meta}__\s+=\s+['\"]([^'\"]*)['\"]""".format(meta=meta),
20
- metadata, re.MULTILINE)
21
- if meta_match:
22
- return meta_match.group(1)
23
- raise RuntimeError('Unable to find __{meta}__ string.'.format(meta=meta))
24
-
25
- with open('requirements.txt') as f:
26
- requirements = f.read().splitlines()
27
-
28
- setup(
29
- name='herepy',
30
- version=extract_metaitem('version'),
31
- license=extract_metaitem('license'),
32
- description=extract_metaitem('description'),
33
- long_description=(read('README.rst')),
34
- long_description_content_type='text/x-rst',
35
- author=extract_metaitem('author'),
36
- author_email=extract_metaitem('email'),
37
- maintainer=extract_metaitem('author'),
38
- maintainer_email=extract_metaitem('email'),
39
- url=extract_metaitem('url'),
40
- download_url=extract_metaitem('download_url'),
41
- packages=find_packages(exclude=('tests', 'docs')),
42
- package_data={"herepy": ["py.typed"]},
43
- platforms=['Any'],
44
- python_requires=">=3.5",
45
- install_requires=requirements,
46
- keywords='here api, here technologies, here python api clients, rest api clients',
47
- classifiers=[
48
- 'Intended Audience :: Developers',
49
- 'License :: OSI Approved :: MIT License',
50
- 'Operating System :: OS Independent',
51
- 'Topic :: Software Development :: Libraries :: Python Modules',
52
- 'Programming Language :: Python',
53
- 'Programming Language :: Python :: 3',
54
- 'Programming Language :: Python :: 3.5',
55
- 'Programming Language :: Python :: 3.6',
56
- 'Programming Language :: Python :: 3.7',
57
- 'Programming Language :: Python :: 3.8',
58
- 'Programming Language :: Python :: 3.9',
59
- 'Programming Language :: Python :: 3.10',
60
- 'Programming Language :: Python :: 3.11',
61
- ],
62
- )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes