herepy 3.6.5__tar.gz → 3.7.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.
Files changed (222) hide show
  1. herepy-3.7.0/.codecov.yml +5 -0
  2. herepy-3.7.0/.coveragerc +2 -0
  3. herepy-3.7.0/.github/workflows/ci.yml +43 -0
  4. herepy-3.7.0/.github/workflows/deploy-docs.yml +41 -0
  5. herepy-3.7.0/.github/workflows/release.yml +58 -0
  6. herepy-3.7.0/.gitignore +104 -0
  7. herepy-3.7.0/.vscode/launch.json +15 -0
  8. herepy-3.7.0/.vscode/settings.json +14 -0
  9. {herepy-3.6.5 → herepy-3.7.0}/PKG-INFO +36 -28
  10. {herepy-3.6.5 → herepy-3.7.0}/README.rst +20 -10
  11. herepy-3.7.0/docs/api/destination_weather_api.md +5 -0
  12. herepy-3.7.0/docs/api/ev_charging_stations_api.md +5 -0
  13. herepy-3.7.0/docs/api/fleet_telematics_api.md +5 -0
  14. herepy-3.7.0/docs/api/geocoder_api.md +5 -0
  15. herepy-3.7.0/docs/api/geocoder_autocomplete_api.md +5 -0
  16. herepy-3.7.0/docs/api/geocoder_reverse_api.md +5 -0
  17. herepy-3.7.0/docs/api/here_api.md +5 -0
  18. herepy-3.7.0/docs/api/isoline_routing_api.md +5 -0
  19. herepy-3.7.0/docs/api/map_image_api.md +5 -0
  20. herepy-3.7.0/docs/api/map_tile_api.md +5 -0
  21. herepy-3.7.0/docs/api/places_api.md +5 -0
  22. herepy-3.7.0/docs/api/public_transit_api.md +5 -0
  23. herepy-3.7.0/docs/api/rme_api.md +5 -0
  24. herepy-3.7.0/docs/api/routing_api.md +5 -0
  25. herepy-3.7.0/docs/api/traffic_api.md +5 -0
  26. herepy-3.7.0/docs/api/vector_tile_api.md +5 -0
  27. herepy-3.7.0/docs/css/custom.css +13 -0
  28. herepy-3.7.0/docs/css/termynal.css +108 -0
  29. herepy-3.7.0/docs/enums/enums.md +5 -0
  30. herepy-3.7.0/docs/index.md +33 -0
  31. herepy-3.7.0/docs/installation.md +57 -0
  32. herepy-3.7.0/docs/js/custom.js +149 -0
  33. herepy-3.7.0/docs/js/termynal.js +264 -0
  34. herepy-3.7.0/docs/models/models.md +5 -0
  35. herepy-3.7.0/docs/objects/objects.md +5 -0
  36. herepy-3.7.0/docs/utils/utils.md +5 -0
  37. herepy-3.7.0/examples/destination_weather_api.py +22 -0
  38. herepy-3.7.0/examples/ev_charging_stations_api.py +53 -0
  39. herepy-3.7.0/examples/fleet_telematics_api.py +79 -0
  40. herepy-3.7.0/examples/geocoder_api.py +26 -0
  41. herepy-3.7.0/examples/geocoder_autocomplete_api.py +14 -0
  42. herepy-3.7.0/examples/geocoder_reverse_api.py +10 -0
  43. herepy-3.7.0/examples/isoline_routing_api.py +109 -0
  44. herepy-3.7.0/examples/map_image_api.py +64 -0
  45. herepy-3.7.0/examples/map_tile_api.py +51 -0
  46. herepy-3.7.0/examples/places_api.py +18 -0
  47. herepy-3.7.0/examples/public_transit_api.py +16 -0
  48. herepy-3.7.0/examples/rme_api.py +13 -0
  49. herepy-3.7.0/examples/routing_api.py +181 -0
  50. herepy-3.7.0/examples/traffic_api.py +92 -0
  51. herepy-3.7.0/examples/vector_tile_api.py +14 -0
  52. herepy-3.7.0/mkdocs.yml +74 -0
  53. herepy-3.7.0/noxfile.py +68 -0
  54. herepy-3.7.0/pyproject.toml +99 -0
  55. herepy-3.7.0/src/herepy/__init__.py +185 -0
  56. herepy-3.7.0/src/herepy/destination_weather_api.py +297 -0
  57. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/error.py +9 -8
  58. herepy-3.7.0/src/herepy/ev_charging_stations_api.py +494 -0
  59. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/fleet_telematics_api.py +163 -33
  60. herepy-3.7.0/src/herepy/geocoder_api.py +345 -0
  61. herepy-3.7.0/src/herepy/geocoder_autocomplete_api.py +171 -0
  62. herepy-3.7.0/src/herepy/geocoder_reverse_api.py +123 -0
  63. herepy-3.7.0/src/herepy/here_api.py +60 -0
  64. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/here_enum.py +120 -77
  65. herepy-3.7.0/src/herepy/isoline_routing_api.py +681 -0
  66. herepy-3.7.0/src/herepy/map_image_api.py +338 -0
  67. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/map_tile_api.py +107 -17
  68. herepy-3.7.0/src/herepy/mercator_projection.py +23 -0
  69. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/models.py +69 -47
  70. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/objects.py +26 -18
  71. herepy-3.7.0/src/herepy/places_api.py +266 -0
  72. herepy-3.7.0/src/herepy/platform/__init__.py +5 -0
  73. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/platform/tour_planning_api.py +8 -4
  74. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/polling.py +24 -20
  75. herepy-3.7.0/src/herepy/public_transit_api.py +839 -0
  76. herepy-3.7.0/src/herepy/rme_api.py +132 -0
  77. herepy-3.7.0/src/herepy/routing_api.py +1764 -0
  78. herepy-3.7.0/src/herepy/traffic_api.py +751 -0
  79. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/utils.py +18 -6
  80. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/vector_tile_api.py +85 -19
  81. herepy-3.7.0/testdata/images/new-delhi-uncertainty.jpg +0 -0
  82. herepy-3.7.0/testdata/models/destination_weater_zip_code.json +61 -0
  83. herepy-3.7.0/testdata/models/destination_weather_alerts.json +13 -0
  84. herepy-3.7.0/testdata/models/destination_weather_error_invalid_request.json +6 -0
  85. herepy-3.7.0/testdata/models/destination_weather_error_unauthorized.json +4 -0
  86. herepy-3.7.0/testdata/models/destination_weather_forecasts.json +761 -0
  87. herepy-3.7.0/testdata/models/destination_weather_forecasts_astronomy.json +118 -0
  88. herepy-3.7.0/testdata/models/destination_weather_forecasts_hourly.json +5057 -0
  89. herepy-3.7.0/testdata/models/destination_weather_forecasts_nsw_alerts.json +873 -0
  90. herepy-3.7.0/testdata/models/destination_weather_forecasts_simple.json +248 -0
  91. herepy-3.7.0/testdata/models/destination_weather_observations.json +432 -0
  92. herepy-3.7.0/testdata/models/ev_charging_station_details.json +147 -0
  93. herepy-3.7.0/testdata/models/ev_charging_stations_circular.json +90 -0
  94. herepy-3.7.0/testdata/models/ev_charging_stations_error_unauthorized.json +4 -0
  95. herepy-3.7.0/testdata/models/fleet_telematics_find_pickups.json +152 -0
  96. herepy-3.7.0/testdata/models/fleet_telematics_find_sequence.json +97 -0
  97. herepy-3.7.0/testdata/models/fleet_telematics_unauthorized_error.json +1 -0
  98. herepy-3.7.0/testdata/models/geocoder.json +42 -0
  99. herepy-3.7.0/testdata/models/geocoder_autocomplete.json +63 -0
  100. herepy-3.7.0/testdata/models/geocoder_autocomplete_error.json +5 -0
  101. herepy-3.7.0/testdata/models/geocoder_error.json +4 -0
  102. herepy-3.7.0/testdata/models/geocoder_reverse.json +38 -0
  103. herepy-3.7.0/testdata/models/isoline_based_on_consumption.json +28 -0
  104. herepy-3.7.0/testdata/models/isoline_routing_api_multi_range_arrival.json +50 -0
  105. herepy-3.7.0/testdata/models/isoline_routing_api_multi_range_departure.json +50 -0
  106. herepy-3.7.0/testdata/models/isoline_routing_api_specific_time_arrival.json +30 -0
  107. herepy-3.7.0/testdata/models/isoline_routing_api_specific_time_departure.json +30 -0
  108. herepy-3.7.0/testdata/models/isoline_routing_distance_response.json +24 -0
  109. herepy-3.7.0/testdata/models/isoline_routing_pi_reverse_direction_arrival.json +28 -0
  110. herepy-3.7.0/testdata/models/isoline_routing_pi_reverse_direction_departure.json +28 -0
  111. herepy-3.7.0/testdata/models/matrix.json +22 -0
  112. herepy-3.7.0/testdata/models/not_authorize_access.json +4 -0
  113. herepy-3.7.0/testdata/models/places_api.json +25 -0
  114. herepy-3.7.0/testdata/models/places_api_error.json +4 -0
  115. herepy-3.7.0/testdata/models/public_transit_api.json +106 -0
  116. herepy-3.7.0/testdata/models/public_transit_api_by_id.json +39 -0
  117. herepy-3.7.0/testdata/models/public_transit_api_calculate_route_many_transfers.json +4948 -0
  118. herepy-3.7.0/testdata/models/public_transit_api_calculate_route_time.json +1182 -0
  119. herepy-3.7.0/testdata/models/public_transit_api_coverage_cities.json +446 -0
  120. herepy-3.7.0/testdata/models/public_transit_api_error.json +10 -0
  121. herepy-3.7.0/testdata/models/public_transit_api_nearby.json +89 -0
  122. herepy-3.7.0/testdata/models/public_transit_api_nearby_coverage.json +68 -0
  123. herepy-3.7.0/testdata/models/public_transit_api_next_departures_for_stations.json +394 -0
  124. herepy-3.7.0/testdata/models/public_transit_api_next_departures_location.json +379 -0
  125. herepy-3.7.0/testdata/models/public_transit_api_next_nearby_departures.json +82 -0
  126. herepy-3.7.0/testdata/models/public_transit_api_route_shows_line_graph.json +870 -0
  127. herepy-3.7.0/testdata/models/public_transit_api_router_exclude_changes.json +576 -0
  128. herepy-3.7.0/testdata/models/public_transit_calculate_route.json +867 -0
  129. herepy-3.7.0/testdata/models/public_transit_city_coverage.json +122 -0
  130. herepy-3.7.0/testdata/models/rme_match_route_api.json +20619 -0
  131. herepy-3.7.0/testdata/models/routing.json +171 -0
  132. herepy-3.7.0/testdata/models/routing_async_matrix_calculation.json +5 -0
  133. herepy-3.7.0/testdata/models/routing_async_matrix_completed.json +16 -0
  134. herepy-3.7.0/testdata/models/routing_bicycle.json +274 -0
  135. herepy-3.7.0/testdata/models/routing_car_route_short.json +299 -0
  136. herepy-3.7.0/testdata/models/routing_error_forbidden_credentials.json +4 -0
  137. herepy-3.7.0/testdata/models/routing_error_invalid_credentials.json +4 -0
  138. herepy-3.7.0/testdata/models/routing_error_invalid_input_data.json +21 -0
  139. herepy-3.7.0/testdata/models/routing_error_no_route_found.json +21 -0
  140. herepy-3.7.0/testdata/models/routing_error_no_route_found_truck.json +21 -0
  141. herepy-3.7.0/testdata/models/routing_matrix.json +14 -0
  142. herepy-3.7.0/testdata/models/routing_matrix_bad_request.json +21 -0
  143. herepy-3.7.0/testdata/models/routing_matrix_multiple_destinations.json +14 -0
  144. herepy-3.7.0/testdata/models/routing_matrix_multiple_starts.json +14 -0
  145. herepy-3.7.0/testdata/models/routing_pedestrian.json +308 -0
  146. herepy-3.7.0/testdata/models/routing_public.json +294 -0
  147. herepy-3.7.0/testdata/models/routing_public_time_table.json +308 -0
  148. herepy-3.7.0/testdata/models/routing_truck_route_short.json +187 -0
  149. herepy-3.7.0/testdata/models/routing_v8_error_access_denied.json +8 -0
  150. herepy-3.7.0/testdata/models/routing_v8_error_malformed_req.json +8 -0
  151. herepy-3.7.0/testdata/models/routing_v8_response.json +90 -0
  152. herepy-3.7.0/testdata/models/traffic_api_additional_attributes.json +2816 -0
  153. herepy-3.7.0/testdata/models/traffic_api_flow.json +263 -0
  154. herepy-3.7.0/testdata/models/traffic_api_flow_availability.json +548 -0
  155. herepy-3.7.0/testdata/models/traffic_api_flow_corridor.json +3386 -0
  156. herepy-3.7.0/testdata/models/traffic_api_flow_minjamfactor.json +215 -0
  157. herepy-3.7.0/testdata/models/traffic_api_flow_proximity.json +766 -0
  158. herepy-3.7.0/testdata/models/traffic_api_flow_proximity_attributes.json +4471 -0
  159. herepy-3.7.0/testdata/models/traffic_api_incidents.json +1467 -0
  160. herepy-3.7.0/testdata/models/traffic_incidents_bounding_box.json +3305 -0
  161. herepy-3.7.0/testdata/models/traffic_incidents_corridor.json +1952 -0
  162. herepy-3.7.0/testdata/models/traffic_incidents_proximity.json +23834 -0
  163. herepy-3.7.0/testdata/models/unauthorized_error.json +4 -0
  164. herepy-3.7.0/testdata/routes/sample.gpx +2559 -0
  165. herepy-3.7.0/testdata/tiles/berlin.png +0 -0
  166. herepy-3.7.0/testdata/tiles/omv +0 -0
  167. herepy-3.7.0/tests/async_test_helpers.py +45 -0
  168. herepy-3.7.0/tests/platform/test_tour_planning_api.py +17 -0
  169. {herepy-3.6.5 → herepy-3.7.0}/tests/test_destination_weather_api.py +56 -28
  170. {herepy-3.6.5 → herepy-3.7.0}/tests/test_enum.py +61 -86
  171. {herepy-3.6.5 → herepy-3.7.0}/tests/test_ev_charging_stations_api.py +51 -25
  172. {herepy-3.6.5 → herepy-3.7.0}/tests/test_fleet_telematics_api.py +57 -7
  173. {herepy-3.6.5 → herepy-3.7.0}/tests/test_geocoder_api.py +56 -40
  174. {herepy-3.6.5 → herepy-3.7.0}/tests/test_geocoder_autocomplete_api.py +31 -7
  175. herepy-3.7.0/tests/test_geocoder_reverse_api.py +98 -0
  176. {herepy-3.6.5 → herepy-3.7.0}/tests/test_isoline_routing_api.py +119 -21
  177. {herepy-3.6.5 → herepy-3.7.0}/tests/test_map_image_api.py +95 -21
  178. {herepy-3.6.5 → herepy-3.7.0}/tests/test_map_tile_api.py +77 -15
  179. {herepy-3.6.5 → herepy-3.7.0}/tests/test_mercator_projection.py +1 -3
  180. {herepy-3.6.5 → herepy-3.7.0}/tests/test_models.py +13 -45
  181. {herepy-3.6.5 → herepy-3.7.0}/tests/test_places_api.py +29 -13
  182. herepy-3.7.0/tests/test_polling.py +81 -0
  183. {herepy-3.6.5 → herepy-3.7.0}/tests/test_publictransit_api.py +116 -68
  184. herepy-3.7.0/tests/test_rme_api.py +71 -0
  185. {herepy-3.6.5 → herepy-3.7.0}/tests/test_routing_api.py +335 -178
  186. {herepy-3.6.5 → herepy-3.7.0}/tests/test_traffic_api.py +91 -54
  187. {herepy-3.6.5 → herepy-3.7.0}/tests/test_utils.py +5 -6
  188. herepy-3.7.0/tests/test_vector_tile_api.py +103 -0
  189. herepy-3.7.0/tox.ini +24 -0
  190. herepy-3.7.0/uv.lock +1654 -0
  191. herepy-3.6.5/herepy/__init__.py +0 -65
  192. herepy-3.6.5/herepy/destination_weather_api.py +0 -170
  193. herepy-3.6.5/herepy/ev_charging_stations_api.py +0 -276
  194. herepy-3.6.5/herepy/geocoder_api.py +0 -178
  195. herepy-3.6.5/herepy/geocoder_autocomplete_api.py +0 -92
  196. herepy-3.6.5/herepy/geocoder_reverse_api.py +0 -77
  197. herepy-3.6.5/herepy/here_api.py +0 -28
  198. herepy-3.6.5/herepy/isoline_routing_api.py +0 -348
  199. herepy-3.6.5/herepy/map_image_api.py +0 -187
  200. herepy-3.6.5/herepy/mercator_projection.py +0 -23
  201. herepy-3.6.5/herepy/places_api.py +0 -141
  202. herepy-3.6.5/herepy/platform/__init__.py +0 -1
  203. herepy-3.6.5/herepy/public_transit_api.py +0 -425
  204. herepy-3.6.5/herepy/rme_api.py +0 -82
  205. herepy-3.6.5/herepy/routing_api.py +0 -1049
  206. herepy-3.6.5/herepy/traffic_api.py +0 -375
  207. herepy-3.6.5/herepy.egg-info/PKG-INFO +0 -195
  208. herepy-3.6.5/herepy.egg-info/SOURCES.txt +0 -59
  209. herepy-3.6.5/herepy.egg-info/dependency_links.txt +0 -1
  210. herepy-3.6.5/herepy.egg-info/requires.txt +0 -1
  211. herepy-3.6.5/herepy.egg-info/top_level.txt +0 -1
  212. herepy-3.6.5/requirements.txt +0 -1
  213. herepy-3.6.5/setup.cfg +0 -19
  214. herepy-3.6.5/setup.py +0 -66
  215. herepy-3.6.5/tests/test_geocoder_reverse_api.py +0 -50
  216. herepy-3.6.5/tests/test_rme_api.py +0 -53
  217. herepy-3.6.5/tests/test_vector_tile_api.py +0 -72
  218. {herepy-3.6.5 → herepy-3.7.0}/COPYING +0 -0
  219. {herepy-3.6.5 → herepy-3.7.0}/LICENSE +0 -0
  220. {herepy-3.6.5 → herepy-3.7.0}/MANIFEST.in +0 -0
  221. {herepy-3.6.5 → herepy-3.7.0}/NOTICE +0 -0
  222. {herepy-3.6.5 → herepy-3.7.0/src}/herepy/py.typed +0 -0
@@ -0,0 +1,5 @@
1
+ # Documentation: https://docs.codecov.io/docs/codecov-yaml
2
+
3
+ codecov:
4
+ token: "7ad2216e-6198-4a10-8c68-72e2d3f139ec"
5
+ require_ci_to_pass: yes
@@ -0,0 +1,2 @@
1
+ [run]
2
+ source=herepy
@@ -0,0 +1,43 @@
1
+ name: HerePy CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ${{ matrix.operating-system }}
9
+ strategy:
10
+ max-parallel: 4
11
+ matrix:
12
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
13
+ operating-system: [ubuntu-24.04, windows-latest, macos-latest]
14
+
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Install uv
18
+ uses: astral-sh/setup-uv@v3
19
+ - name: Set up Python ${{ matrix.python-version }}
20
+ uses: actions/setup-python@v3
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+ - name: Install dependencies
24
+ run: uv sync --group dev
25
+ - name: Check format
26
+ run: |
27
+ uv run nox -s check_format
28
+ - name: Check lint
29
+ run: |
30
+ uv run nox -s check_lint
31
+ - name: Check types
32
+ run: |
33
+ uv run nox -s check_types
34
+ - name: Test with pytest
35
+ run: |
36
+ uv run nox -s run_tests
37
+ - name: Upload coverage to Codecov
38
+ uses: codecov/codecov-action@v1
39
+ with:
40
+ yml: ./.codecov.yml
41
+ file: ./coverage.xml
42
+ flags: unittests
43
+ fail_ci_if_error: false
@@ -0,0 +1,41 @@
1
+ name: Build and Deploy to GitHub Pages
2
+ on:
3
+ push:
4
+ pull_request:
5
+ types: [opened, synchronize]
6
+ permissions:
7
+ contents: read
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-22.04
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - name: Install uv
14
+ uses: astral-sh/setup-uv@v3
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v4
17
+ with:
18
+ python-version: "3.9"
19
+ - name: Install Dependencies
20
+ run: uv sync --group docs
21
+ - name: Build Docs
22
+ run: uv run mkdocs build
23
+ - name: Upload Pages artifact
24
+ uses: actions/upload-pages-artifact@v3
25
+ with:
26
+ path: ./site
27
+
28
+ deploy:
29
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
30
+ needs: build
31
+ runs-on: ubuntu-22.04
32
+ permissions:
33
+ pages: write
34
+ id-token: write
35
+ environment:
36
+ name: github-pages
37
+ url: ${{ steps.deployment.outputs.page_url }}
38
+ steps:
39
+ - name: Deploy to GitHub Pages
40
+ id: deployment
41
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,58 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "*"
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - name: Install uv
17
+ uses: astral-sh/setup-uv@v6
18
+ - name: Build distributions
19
+ run: uv build
20
+ - name: Upload distributions
21
+ uses: actions/upload-artifact@v4
22
+ with:
23
+ name: distributions
24
+ path: dist/
25
+
26
+ publish-pypi:
27
+ needs: build
28
+ runs-on: ubuntu-latest
29
+ environment:
30
+ name: pypi
31
+ url: https://pypi.org/p/herepy
32
+ permissions:
33
+ id-token: write
34
+ steps:
35
+ - name: Download distributions
36
+ uses: actions/download-artifact@v4
37
+ with:
38
+ name: distributions
39
+ path: dist/
40
+ - name: Publish to PyPI
41
+ uses: pypa/gh-action-pypi-publish@release/v1
42
+
43
+ github-release:
44
+ needs: build
45
+ runs-on: ubuntu-latest
46
+ permissions:
47
+ contents: write
48
+ steps:
49
+ - name: Download distributions
50
+ uses: actions/download-artifact@v4
51
+ with:
52
+ name: distributions
53
+ path: dist/
54
+ - name: Create GitHub release
55
+ uses: softprops/action-gh-release@v2
56
+ with:
57
+ generate_release_notes: true
58
+ files: dist/*
@@ -0,0 +1,104 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ env/
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ .hypothesis/
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Django stuff:
54
+ *.log
55
+ local_settings.py
56
+
57
+ # Flask stuff:
58
+ instance/
59
+ .webassets-cache
60
+
61
+ # Scrapy stuff:
62
+ .scrapy
63
+
64
+ # Sphinx documentation
65
+ docs/_build/
66
+
67
+ # PyBuilder
68
+ target/
69
+
70
+ # Jupyter Notebook
71
+ .ipynb_checkpoints
72
+
73
+ # pyenv
74
+ .python-version
75
+
76
+ # celery beat schedule file
77
+ celerybeat-schedule
78
+
79
+ # SageMath parsed files
80
+ *.sage.py
81
+
82
+ # dotenv
83
+ .env
84
+
85
+ # virtualenv
86
+ .venv
87
+ venv/
88
+ ENV/
89
+
90
+ # Spyder project settings
91
+ .spyderproject
92
+ .spyproject
93
+
94
+ # Rope project settings
95
+ .ropeproject
96
+
97
+ # mkdocs documentation
98
+ /site
99
+
100
+ # mypy
101
+ .mypy_cache/
102
+
103
+ # pytest cache
104
+ .pytest_cache/
@@ -0,0 +1,15 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Python: Current File",
9
+ "type": "python",
10
+ "request": "launch",
11
+ "program": "${file}",
12
+ "console": "integratedTerminal"
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "python.testing.unittestArgs": [
3
+ "-v",
4
+ "-s",
5
+ "./tests",
6
+ "-p",
7
+ "test_*.py"
8
+ ],
9
+ "pythonTestExplorer.testFramework": "pytest",
10
+ "python.testing.pytestEnabled": true,
11
+ "python.linting.enabled": true,
12
+ "python.testing.unittestEnabled": true,
13
+ "restructuredtext.confPath": ""
14
+ }
@@ -1,33 +1,31 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.5
2
2
  Name: herepy
3
- Version: 3.6.5
3
+ Version: 3.7.0
4
4
  Summary: A library that provides a Python interface to the HERE APIs
5
- Home-page: https://github.com/abdullahselek/HerePy
6
- Download-URL: https://pypi.org/pypi/herepy
7
- Author: Abdullah Selek
8
- Author-email: abdullahselek.os@gmail.com
9
- Maintainer: Abdullah Selek
10
- Maintainer-email: abdullahselek.os@gmail.com
5
+ Project-URL: Repository, https://github.com/abdullahselek/HerePy
6
+ Project-URL: Download, https://pypi.org/pypi/herepy
7
+ Project-URL: Documentation, https://herepy.abdullahselek.com/
8
+ Author-email: Abdullah Selek <abdullahselek.os@gmail.com>
11
9
  License: MIT License
12
- Keywords: here api,here technologies,here python api clients,rest api clients
13
- Platform: Any
10
+ License-File: COPYING
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: here api,here python api clients,here technologies,rest api clients
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: License :: OSI Approved :: MIT License
16
16
  Classifier: Operating System :: OS Independent
17
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
17
  Classifier: Programming Language :: Python
19
18
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.8
21
- Classifier: Programming Language :: Python :: 3.9
22
19
  Classifier: Programming Language :: Python :: 3.10
23
20
  Classifier: Programming Language :: Python :: 3.11
24
21
  Classifier: Programming Language :: Python :: 3.12
25
- Requires-Python: >=3.8
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Requires-Python: >=3.10
26
+ Requires-Dist: httpx2>=2.14.0
27
+ Requires-Dist: requests<3,>=2.25.1
26
28
  Description-Content-Type: text/x-rst
27
- License-File: LICENSE
28
- License-File: COPYING
29
- License-File: NOTICE
30
- Requires-Dist: Requests<3,>=2.25.1
31
29
 
32
30
  HerePy
33
31
  ======
@@ -59,7 +57,7 @@ HerePy
59
57
  Introduction
60
58
  ============
61
59
 
62
- This library provides a pure Python interface for the `HERE API <https://developer.here.com/>`_. It works with Python versions 3.x.
60
+ This library provides a pure Python interface for the `HERE API <https://developer.here.com/>`_. It works with Python versions 3.10 and over.
63
61
 
64
62
  `HERE <https://www.here.com/>`_ provides location based services. HERE exposes a `rest APIs <https://developer.here.com/documentation>`_ and this library is intended to make it even easier for Python programmers to use.
65
63
 
@@ -69,6 +67,7 @@ Installing
69
67
  You can install herepy using Python Package Index::
70
68
 
71
69
  $ pip install herepy
70
+ $ uv pip install herepy
72
71
 
73
72
  Install with conda from the Anaconda conda-forge channel::
74
73
 
@@ -88,28 +87,27 @@ Check out the latest development version anonymously with::
88
87
  $ git clone git://github.com/abdullahselek/HerePy.git
89
88
  $ cd HerePy
90
89
 
91
- To install dependencies, run either::
90
+ To install dependencies for development, use uv::
92
91
 
93
- $ pip install -r requirements.testing.txt
94
- $ pip install -r requirements.txt
92
+ $ uv sync
95
93
 
96
94
  To install the minimal dependencies for production use (i.e., what is installed
97
95
  with ``pip install herepy``) run::
98
96
 
99
- $ pip install -r requirements.txt
97
+ $ uv sync --no-dev
100
98
 
101
99
  Running Tests
102
100
  =============
103
101
 
104
- The test suite can be run against a single Python version which requires ``pip install pytest`` and optionally ``pip install pytest-cov`` (these are included if you have installed dependencies from ``requirements.testing.txt``)
102
+ The test suite can be run against a single Python version using uv.
105
103
 
106
104
  To run the unit tests with a single Python version::
107
105
 
108
- $ py.test -v
106
+ $ uv run pytest -v
109
107
 
110
108
  to also run code coverage::
111
109
 
112
- $ py.test --cov=herepy
110
+ $ uv run pytest --cov=herepy
113
111
 
114
112
  To run the unit tests against a set of Python versions::
115
113
 
@@ -161,13 +159,23 @@ Available API clients in **herepy**::
161
159
  Documentation
162
160
  =============
163
161
 
164
- View the latest herepy documentation at `https://herepy.abdullahselek.com/ <https://herepy.abdullahselek.com/>`_. You can view HERE's API documentation at: `https://developer.here.com/documentation <https://developer.here.com/documentation>`_.
162
+ View the latest herepy documentation at `https://abdullahselek.github.io/HerePy/ <https://abdullahselek.github.io/HerePy/>`_. You can view HERE's API documentation at: `https://developer.here.com/documentation <https://developer.here.com/documentation>`_.
165
163
 
166
164
  Using
167
165
  =====
168
166
 
169
167
  The library provides a Python wrapper around the HERE APIs with different data models. To get started, check out the examples in the ``examples/`` folder or
170
- read the documentation at `https://herepy.abdullahselek.com/ <https://herepy.abdullahselek.com/>`_. All API clients need an API key which you can get from `HERE Developer Portal <https://developer.here.com/>`_.
168
+ read the documentation at `https://abdullahselek.github.io/HerePy/ <https://abdullahselek.github.io/HerePy/>`_. All API clients need an API key which you can get from `HERE Developer Portal <https://developer.here.com/>`_.
169
+
170
+ Async API calls
171
+ ---------------
172
+
173
+ All API clients provide asynchronous counterparts for their HTTP methods. Use the ``async_`` prefix and manage the client with ``async with``::
174
+
175
+ async with herepy.GeocoderApi(api_key="YOUR_API_KEY") as geocoder:
176
+ response = await geocoder.async_free_form("Berlin")
177
+
178
+ Existing synchronous methods remain available.
171
179
 
172
180
  License
173
181
  -------
@@ -28,7 +28,7 @@ HerePy
28
28
  Introduction
29
29
  ============
30
30
 
31
- This library provides a pure Python interface for the `HERE API <https://developer.here.com/>`_. It works with Python versions 3.x.
31
+ This library provides a pure Python interface for the `HERE API <https://developer.here.com/>`_. It works with Python versions 3.10 and over.
32
32
 
33
33
  `HERE <https://www.here.com/>`_ provides location based services. HERE exposes a `rest APIs <https://developer.here.com/documentation>`_ and this library is intended to make it even easier for Python programmers to use.
34
34
 
@@ -38,6 +38,7 @@ Installing
38
38
  You can install herepy using Python Package Index::
39
39
 
40
40
  $ pip install herepy
41
+ $ uv pip install herepy
41
42
 
42
43
  Install with conda from the Anaconda conda-forge channel::
43
44
 
@@ -57,28 +58,27 @@ Check out the latest development version anonymously with::
57
58
  $ git clone git://github.com/abdullahselek/HerePy.git
58
59
  $ cd HerePy
59
60
 
60
- To install dependencies, run either::
61
+ To install dependencies for development, use uv::
61
62
 
62
- $ pip install -r requirements.testing.txt
63
- $ pip install -r requirements.txt
63
+ $ uv sync
64
64
 
65
65
  To install the minimal dependencies for production use (i.e., what is installed
66
66
  with ``pip install herepy``) run::
67
67
 
68
- $ pip install -r requirements.txt
68
+ $ uv sync --no-dev
69
69
 
70
70
  Running Tests
71
71
  =============
72
72
 
73
- The test suite can be run against a single Python version which requires ``pip install pytest`` and optionally ``pip install pytest-cov`` (these are included if you have installed dependencies from ``requirements.testing.txt``)
73
+ The test suite can be run against a single Python version using uv.
74
74
 
75
75
  To run the unit tests with a single Python version::
76
76
 
77
- $ py.test -v
77
+ $ uv run pytest -v
78
78
 
79
79
  to also run code coverage::
80
80
 
81
- $ py.test --cov=herepy
81
+ $ uv run pytest --cov=herepy
82
82
 
83
83
  To run the unit tests against a set of Python versions::
84
84
 
@@ -130,13 +130,23 @@ Available API clients in **herepy**::
130
130
  Documentation
131
131
  =============
132
132
 
133
- View the latest herepy documentation at `https://herepy.abdullahselek.com/ <https://herepy.abdullahselek.com/>`_. You can view HERE's API documentation at: `https://developer.here.com/documentation <https://developer.here.com/documentation>`_.
133
+ View the latest herepy documentation at `https://abdullahselek.github.io/HerePy/ <https://abdullahselek.github.io/HerePy/>`_. You can view HERE's API documentation at: `https://developer.here.com/documentation <https://developer.here.com/documentation>`_.
134
134
 
135
135
  Using
136
136
  =====
137
137
 
138
138
  The library provides a Python wrapper around the HERE APIs with different data models. To get started, check out the examples in the ``examples/`` folder or
139
- read the documentation at `https://herepy.abdullahselek.com/ <https://herepy.abdullahselek.com/>`_. All API clients need an API key which you can get from `HERE Developer Portal <https://developer.here.com/>`_.
139
+ read the documentation at `https://abdullahselek.github.io/HerePy/ <https://abdullahselek.github.io/HerePy/>`_. All API clients need an API key which you can get from `HERE Developer Portal <https://developer.here.com/>`_.
140
+
141
+ Async API calls
142
+ ---------------
143
+
144
+ All API clients provide asynchronous counterparts for their HTTP methods. Use the ``async_`` prefix and manage the client with ``async with``::
145
+
146
+ async with herepy.GeocoderApi(api_key="YOUR_API_KEY") as geocoder:
147
+ response = await geocoder.async_free_form("Berlin")
148
+
149
+ Existing synchronous methods remain available.
140
150
 
141
151
  License
142
152
  -------
@@ -0,0 +1,5 @@
1
+ # Destination Weather API
2
+
3
+ ::: herepy.destination_weather_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # EV Charging Stations API
2
+
3
+ ::: herepy.ev_charging_stations_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Fleet Telematics API
2
+
3
+ ::: herepy.fleet_telematics_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Geocoder API
2
+
3
+ ::: herepy.geocoder_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Geocoder Autocomplete API
2
+
3
+ ::: herepy.geocoder_autocomplete_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Reverse Geocoder API
2
+
3
+ ::: herepy.geocoder_reverse_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Base HERE API
2
+
3
+ ::: herepy.here_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Isoline Routing API
2
+
3
+ ::: herepy.isoline_routing_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Map Image API
2
+
3
+ ::: herepy.map_image_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Map Tile API
2
+
3
+ ::: herepy.map_tile_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Places API
2
+
3
+ ::: herepy.places_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Public Transit API
2
+
3
+ ::: herepy.public_transit_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Route Matching API
2
+
3
+ ::: herepy.rme_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Routing API
2
+
3
+ ::: herepy.routing_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Traffic API
2
+
3
+ ::: herepy.traffic_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,5 @@
1
+ # Vector Tile API
2
+
3
+ ::: herepy.vector_tile_api
4
+ rendering:
5
+ show_source: true
@@ -0,0 +1,13 @@
1
+ a.external-link::after {
2
+ /* \00A0 is a non-breaking space
3
+ to make the mark be on the same line as the link
4
+ */
5
+ content: "\00A0[↪]";
6
+ }
7
+
8
+ a.internal-link::after {
9
+ /* \00A0 is a non-breaking space
10
+ to make the mark be on the same line as the link
11
+ */
12
+ content: "\00A0↪";
13
+ }