herepy 3.6.6__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 (198) hide show
  1. herepy-3.7.0/.github/workflows/deploy-docs.yml +41 -0
  2. {herepy-3.6.6 → herepy-3.7.0}/PKG-INFO +11 -8
  3. {herepy-3.6.6 → herepy-3.7.0}/README.rst +9 -7
  4. {herepy-3.6.6 → herepy-3.7.0}/docs/index.md +1 -1
  5. {herepy-3.6.6 → herepy-3.7.0}/pyproject.toml +5 -2
  6. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/destination_weather_api.py +119 -0
  7. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/ev_charging_stations_api.py +214 -6
  8. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/fleet_telematics_api.py +125 -0
  9. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/geocoder_api.py +157 -0
  10. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/geocoder_autocomplete_api.py +72 -0
  11. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/geocoder_reverse_api.py +46 -0
  12. herepy-3.7.0/src/herepy/here_api.py +60 -0
  13. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/isoline_routing_api.py +314 -0
  14. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/map_image_api.py +146 -0
  15. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/map_tile_api.py +87 -0
  16. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/places_api.py +119 -0
  17. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/public_transit_api.py +390 -0
  18. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/rme_api.py +51 -0
  19. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/routing_api.py +728 -0
  20. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/traffic_api.py +340 -0
  21. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/vector_tile_api.py +66 -0
  22. herepy-3.7.0/tests/async_test_helpers.py +45 -0
  23. {herepy-3.6.6 → herepy-3.7.0}/tests/test_destination_weather_api.py +29 -0
  24. {herepy-3.6.6 → herepy-3.7.0}/tests/test_ev_charging_stations_api.py +31 -0
  25. {herepy-3.6.6 → herepy-3.7.0}/tests/test_fleet_telematics_api.py +53 -0
  26. {herepy-3.6.6 → herepy-3.7.0}/tests/test_geocoder_api.py +39 -0
  27. {herepy-3.6.6 → herepy-3.7.0}/tests/test_geocoder_autocomplete_api.py +27 -0
  28. herepy-3.7.0/tests/test_geocoder_reverse_api.py +98 -0
  29. {herepy-3.6.6 → herepy-3.7.0}/tests/test_isoline_routing_api.py +106 -0
  30. {herepy-3.6.6 → herepy-3.7.0}/tests/test_map_image_api.py +59 -1
  31. {herepy-3.6.6 → herepy-3.7.0}/tests/test_map_tile_api.py +43 -1
  32. {herepy-3.6.6 → herepy-3.7.0}/tests/test_places_api.py +22 -0
  33. {herepy-3.6.6 → herepy-3.7.0}/tests/test_publictransit_api.py +75 -0
  34. {herepy-3.6.6 → herepy-3.7.0}/tests/test_rme_api.py +24 -0
  35. {herepy-3.6.6 → herepy-3.7.0}/tests/test_routing_api.py +198 -1
  36. {herepy-3.6.6 → herepy-3.7.0}/tests/test_traffic_api.py +60 -0
  37. {herepy-3.6.6 → herepy-3.7.0}/tests/test_vector_tile_api.py +46 -1
  38. {herepy-3.6.6 → herepy-3.7.0}/uv.lock +128 -4
  39. herepy-3.6.6/.github/workflows/deploy-docs.yml +0 -34
  40. herepy-3.6.6/src/herepy/here_api.py +0 -34
  41. herepy-3.6.6/tests/test_geocoder_reverse_api.py +0 -45
  42. {herepy-3.6.6 → herepy-3.7.0}/.codecov.yml +0 -0
  43. {herepy-3.6.6 → herepy-3.7.0}/.coveragerc +0 -0
  44. {herepy-3.6.6 → herepy-3.7.0}/.github/workflows/ci.yml +0 -0
  45. {herepy-3.6.6 → herepy-3.7.0}/.github/workflows/release.yml +0 -0
  46. {herepy-3.6.6 → herepy-3.7.0}/.gitignore +0 -0
  47. {herepy-3.6.6 → herepy-3.7.0}/.vscode/launch.json +0 -0
  48. {herepy-3.6.6 → herepy-3.7.0}/.vscode/settings.json +0 -0
  49. {herepy-3.6.6 → herepy-3.7.0}/COPYING +0 -0
  50. {herepy-3.6.6 → herepy-3.7.0}/LICENSE +0 -0
  51. {herepy-3.6.6 → herepy-3.7.0}/MANIFEST.in +0 -0
  52. {herepy-3.6.6 → herepy-3.7.0}/NOTICE +0 -0
  53. {herepy-3.6.6 → herepy-3.7.0}/docs/api/destination_weather_api.md +0 -0
  54. {herepy-3.6.6 → herepy-3.7.0}/docs/api/ev_charging_stations_api.md +0 -0
  55. {herepy-3.6.6 → herepy-3.7.0}/docs/api/fleet_telematics_api.md +0 -0
  56. {herepy-3.6.6 → herepy-3.7.0}/docs/api/geocoder_api.md +0 -0
  57. {herepy-3.6.6 → herepy-3.7.0}/docs/api/geocoder_autocomplete_api.md +0 -0
  58. {herepy-3.6.6 → herepy-3.7.0}/docs/api/geocoder_reverse_api.md +0 -0
  59. {herepy-3.6.6 → herepy-3.7.0}/docs/api/here_api.md +0 -0
  60. {herepy-3.6.6 → herepy-3.7.0}/docs/api/isoline_routing_api.md +0 -0
  61. {herepy-3.6.6 → herepy-3.7.0}/docs/api/map_image_api.md +0 -0
  62. {herepy-3.6.6 → herepy-3.7.0}/docs/api/map_tile_api.md +0 -0
  63. {herepy-3.6.6 → herepy-3.7.0}/docs/api/places_api.md +0 -0
  64. {herepy-3.6.6 → herepy-3.7.0}/docs/api/public_transit_api.md +0 -0
  65. {herepy-3.6.6 → herepy-3.7.0}/docs/api/rme_api.md +0 -0
  66. {herepy-3.6.6 → herepy-3.7.0}/docs/api/routing_api.md +0 -0
  67. {herepy-3.6.6 → herepy-3.7.0}/docs/api/traffic_api.md +0 -0
  68. {herepy-3.6.6 → herepy-3.7.0}/docs/api/vector_tile_api.md +0 -0
  69. {herepy-3.6.6 → herepy-3.7.0}/docs/css/custom.css +0 -0
  70. {herepy-3.6.6 → herepy-3.7.0}/docs/css/termynal.css +0 -0
  71. {herepy-3.6.6 → herepy-3.7.0}/docs/enums/enums.md +0 -0
  72. {herepy-3.6.6 → herepy-3.7.0}/docs/installation.md +0 -0
  73. {herepy-3.6.6 → herepy-3.7.0}/docs/js/custom.js +0 -0
  74. {herepy-3.6.6 → herepy-3.7.0}/docs/js/termynal.js +0 -0
  75. {herepy-3.6.6 → herepy-3.7.0}/docs/models/models.md +0 -0
  76. {herepy-3.6.6 → herepy-3.7.0}/docs/objects/objects.md +0 -0
  77. {herepy-3.6.6 → herepy-3.7.0}/docs/utils/utils.md +0 -0
  78. {herepy-3.6.6 → herepy-3.7.0}/examples/destination_weather_api.py +0 -0
  79. {herepy-3.6.6 → herepy-3.7.0}/examples/ev_charging_stations_api.py +0 -0
  80. {herepy-3.6.6 → herepy-3.7.0}/examples/fleet_telematics_api.py +0 -0
  81. {herepy-3.6.6 → herepy-3.7.0}/examples/geocoder_api.py +0 -0
  82. {herepy-3.6.6 → herepy-3.7.0}/examples/geocoder_autocomplete_api.py +0 -0
  83. {herepy-3.6.6 → herepy-3.7.0}/examples/geocoder_reverse_api.py +0 -0
  84. {herepy-3.6.6 → herepy-3.7.0}/examples/isoline_routing_api.py +0 -0
  85. {herepy-3.6.6 → herepy-3.7.0}/examples/map_image_api.py +0 -0
  86. {herepy-3.6.6 → herepy-3.7.0}/examples/map_tile_api.py +0 -0
  87. {herepy-3.6.6 → herepy-3.7.0}/examples/places_api.py +0 -0
  88. {herepy-3.6.6 → herepy-3.7.0}/examples/public_transit_api.py +0 -0
  89. {herepy-3.6.6 → herepy-3.7.0}/examples/rme_api.py +0 -0
  90. {herepy-3.6.6 → herepy-3.7.0}/examples/routing_api.py +0 -0
  91. {herepy-3.6.6 → herepy-3.7.0}/examples/traffic_api.py +0 -0
  92. {herepy-3.6.6 → herepy-3.7.0}/examples/vector_tile_api.py +0 -0
  93. {herepy-3.6.6 → herepy-3.7.0}/mkdocs.yml +0 -0
  94. {herepy-3.6.6 → herepy-3.7.0}/noxfile.py +0 -0
  95. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/__init__.py +0 -0
  96. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/error.py +0 -0
  97. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/here_enum.py +0 -0
  98. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/mercator_projection.py +0 -0
  99. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/models.py +0 -0
  100. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/objects.py +0 -0
  101. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/platform/__init__.py +0 -0
  102. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/platform/tour_planning_api.py +0 -0
  103. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/polling.py +0 -0
  104. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/py.typed +0 -0
  105. {herepy-3.6.6 → herepy-3.7.0}/src/herepy/utils.py +0 -0
  106. {herepy-3.6.6 → herepy-3.7.0}/testdata/images/new-delhi-uncertainty.jpg +0 -0
  107. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weater_zip_code.json +0 -0
  108. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_alerts.json +0 -0
  109. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_error_invalid_request.json +0 -0
  110. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_error_unauthorized.json +0 -0
  111. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_forecasts.json +0 -0
  112. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_forecasts_astronomy.json +0 -0
  113. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_forecasts_hourly.json +0 -0
  114. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_forecasts_nsw_alerts.json +0 -0
  115. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_forecasts_simple.json +0 -0
  116. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/destination_weather_observations.json +0 -0
  117. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/ev_charging_station_details.json +0 -0
  118. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/ev_charging_stations_circular.json +0 -0
  119. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/ev_charging_stations_error_unauthorized.json +0 -0
  120. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/fleet_telematics_find_pickups.json +0 -0
  121. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/fleet_telematics_find_sequence.json +0 -0
  122. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/fleet_telematics_unauthorized_error.json +0 -0
  123. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/geocoder.json +0 -0
  124. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/geocoder_autocomplete.json +0 -0
  125. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/geocoder_autocomplete_error.json +0 -0
  126. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/geocoder_error.json +0 -0
  127. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/geocoder_reverse.json +0 -0
  128. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_based_on_consumption.json +0 -0
  129. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_routing_api_multi_range_arrival.json +0 -0
  130. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_routing_api_multi_range_departure.json +0 -0
  131. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_routing_api_specific_time_arrival.json +0 -0
  132. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_routing_api_specific_time_departure.json +0 -0
  133. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_routing_distance_response.json +0 -0
  134. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_routing_pi_reverse_direction_arrival.json +0 -0
  135. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/isoline_routing_pi_reverse_direction_departure.json +0 -0
  136. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/matrix.json +0 -0
  137. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/not_authorize_access.json +0 -0
  138. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/places_api.json +0 -0
  139. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/places_api_error.json +0 -0
  140. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api.json +0 -0
  141. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_by_id.json +0 -0
  142. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_calculate_route_many_transfers.json +0 -0
  143. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_calculate_route_time.json +0 -0
  144. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_coverage_cities.json +0 -0
  145. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_error.json +0 -0
  146. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_nearby.json +0 -0
  147. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_nearby_coverage.json +0 -0
  148. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_next_departures_for_stations.json +0 -0
  149. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_next_departures_location.json +0 -0
  150. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_next_nearby_departures.json +0 -0
  151. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_route_shows_line_graph.json +0 -0
  152. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_api_router_exclude_changes.json +0 -0
  153. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_calculate_route.json +0 -0
  154. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/public_transit_city_coverage.json +0 -0
  155. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/rme_match_route_api.json +0 -0
  156. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing.json +0 -0
  157. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_async_matrix_calculation.json +0 -0
  158. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_async_matrix_completed.json +0 -0
  159. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_bicycle.json +0 -0
  160. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_car_route_short.json +0 -0
  161. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_error_forbidden_credentials.json +0 -0
  162. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_error_invalid_credentials.json +0 -0
  163. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_error_invalid_input_data.json +0 -0
  164. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_error_no_route_found.json +0 -0
  165. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_error_no_route_found_truck.json +0 -0
  166. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_matrix.json +0 -0
  167. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_matrix_bad_request.json +0 -0
  168. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_matrix_multiple_destinations.json +0 -0
  169. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_matrix_multiple_starts.json +0 -0
  170. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_pedestrian.json +0 -0
  171. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_public.json +0 -0
  172. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_public_time_table.json +0 -0
  173. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_truck_route_short.json +0 -0
  174. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_v8_error_access_denied.json +0 -0
  175. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_v8_error_malformed_req.json +0 -0
  176. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/routing_v8_response.json +0 -0
  177. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_additional_attributes.json +0 -0
  178. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_flow.json +0 -0
  179. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_flow_availability.json +0 -0
  180. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_flow_corridor.json +0 -0
  181. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_flow_minjamfactor.json +0 -0
  182. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_flow_proximity.json +0 -0
  183. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_flow_proximity_attributes.json +0 -0
  184. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_api_incidents.json +0 -0
  185. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_incidents_bounding_box.json +0 -0
  186. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_incidents_corridor.json +0 -0
  187. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/traffic_incidents_proximity.json +0 -0
  188. {herepy-3.6.6 → herepy-3.7.0}/testdata/models/unauthorized_error.json +0 -0
  189. {herepy-3.6.6 → herepy-3.7.0}/testdata/routes/sample.gpx +0 -0
  190. {herepy-3.6.6 → herepy-3.7.0}/testdata/tiles/berlin.png +0 -0
  191. {herepy-3.6.6 → herepy-3.7.0}/testdata/tiles/omv +0 -0
  192. {herepy-3.6.6 → herepy-3.7.0}/tests/platform/test_tour_planning_api.py +0 -0
  193. {herepy-3.6.6 → herepy-3.7.0}/tests/test_enum.py +0 -0
  194. {herepy-3.6.6 → herepy-3.7.0}/tests/test_mercator_projection.py +0 -0
  195. {herepy-3.6.6 → herepy-3.7.0}/tests/test_models.py +0 -0
  196. {herepy-3.6.6 → herepy-3.7.0}/tests/test_polling.py +0 -0
  197. {herepy-3.6.6 → herepy-3.7.0}/tests/test_utils.py +0 -0
  198. {herepy-3.6.6 → herepy-3.7.0}/tox.ini +0 -0
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: herepy
3
- Version: 3.6.6
3
+ Version: 3.7.0
4
4
  Summary: A library that provides a Python interface to the HERE APIs
5
5
  Project-URL: Repository, https://github.com/abdullahselek/HerePy
6
6
  Project-URL: Download, https://pypi.org/pypi/herepy
@@ -23,6 +23,7 @@ Classifier: Programming Language :: Python :: 3.13
23
23
  Classifier: Programming Language :: Python :: 3.14
24
24
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
25
  Requires-Python: >=3.10
26
+ Requires-Dist: httpx2>=2.14.0
26
27
  Requires-Dist: requests<3,>=2.25.1
27
28
  Description-Content-Type: text/x-rst
28
29
 
@@ -158,21 +159,23 @@ Available API clients in **herepy**::
158
159
  Documentation
159
160
  =============
160
161
 
161
- 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>`_.
162
163
 
163
164
  Using
164
165
  =====
165
166
 
166
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
167
- 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/>`_.
168
169
 
169
- Publishing
170
- ============
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``::
171
174
 
172
- Maintainers can publish the package to PyPI using uv::
175
+ async with herepy.GeocoderApi(api_key="YOUR_API_KEY") as geocoder:
176
+ response = await geocoder.async_free_form("Berlin")
173
177
 
174
- $ uv build
175
- $ uv publish
178
+ Existing synchronous methods remain available.
176
179
 
177
180
  License
178
181
  -------
@@ -130,21 +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
140
 
141
- Publishing
142
- ============
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``::
143
145
 
144
- Maintainers can publish the package to PyPI using uv::
146
+ async with herepy.GeocoderApi(api_key="YOUR_API_KEY") as geocoder:
147
+ response = await geocoder.async_free_form("Berlin")
145
148
 
146
- $ uv build
147
- $ uv publish
149
+ Existing synchronous methods remain available.
148
150
 
149
151
  License
150
152
  -------
@@ -7,7 +7,7 @@
7
7
  [![requirements](https://requires.io/github/abdullahselek/HerePy/requirements.svg?branch=master)](https://requires.io/github/abdullahselek/HerePy/requirements/?branch=master)
8
8
 
9
9
 
10
- **Documentation**: <a href="https://herepy.abdullahselek.com" target="_blank">https://herepy.abdullahselek.com</a>
10
+ **Documentation**: <a href="https://abdullahselek.github.io/HerePy/" target="_blank">https://abdullahselek.github.io/HerePy/</a>
11
11
 
12
12
  **Source Code**: <a href="https://github.com/abdullahselek/HerePy" target="_blank">https://github.com/abdullahselek/HerePy</a>
13
13
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "herepy"
3
- version = "3.6.6"
3
+ version = "3.7.0"
4
4
  description = "A library that provides a Python interface to the HERE APIs"
5
5
  readme = "README.rst"
6
6
  requires-python = ">=3.10"
@@ -25,7 +25,10 @@ classifiers = [
25
25
  "Programming Language :: Python :: 3.13",
26
26
  "Programming Language :: Python :: 3.14",
27
27
  ]
28
- dependencies = ["Requests>=2.25.1,<3"]
28
+ dependencies = [
29
+ "httpx2>=2.14.0",
30
+ "Requests>=2.25.1,<3",
31
+ ]
29
32
 
30
33
  [project.urls]
31
34
  Repository = "https://github.com/abdullahselek/HerePy"
@@ -176,3 +176,122 @@ class DestinationWeatherApi(HEREApi):
176
176
  "longitude": longitude,
177
177
  }
178
178
  return self._get(data, product)
179
+
180
+ async def _get_async(self, data, product):
181
+ url = Utils.build_url(self._base_url, extra_params=data)
182
+ response = await self._get_async_client().get(url, timeout=self._timeout)
183
+ json_data = json.loads(response.content.decode("utf8"))
184
+ if json_data.get(self._product_node(product)) is not None:
185
+ return DestinationWeatherResponse.new_from_jsondict(json_data, param_defaults={self._product_node(product): None})
186
+ else:
187
+ error = self._get_error_from_response(json_data)
188
+ raise error
189
+
190
+ async def async_weather_for_location_name(
191
+ self,
192
+ location_name: str,
193
+ product: WeatherProductType,
194
+ one_observation: bool = True,
195
+ metric: bool = True,
196
+ ) -> DestinationWeatherResponse | None:
197
+ """
198
+ Request the product for given location name.
199
+
200
+ Args:
201
+ location_name (str):
202
+ Location name.
203
+ product (WeatherProductType):
204
+ A WeatherProductType identifying the type of report to obtain.
205
+ one_observation (bool):
206
+ Limit the result to the best mapped weather station.
207
+ metric (bool):
208
+ Use the metric system.
209
+
210
+ Returns:
211
+ DestinationWeatherResponse
212
+ Raises:
213
+ HEREError
214
+
215
+ """
216
+ data = {
217
+ "apiKey": self._api_key,
218
+ "product": product.__str__(),
219
+ "oneobservation": "true" if one_observation else "false",
220
+ "metric": "true" if metric else "false",
221
+ "name": location_name,
222
+ }
223
+ return await self._get_async(data, product)
224
+
225
+ async def async_weather_for_zip_code(
226
+ self,
227
+ zip_code: int,
228
+ product: WeatherProductType,
229
+ one_observation: bool = True,
230
+ metric: bool = True,
231
+ ) -> DestinationWeatherResponse | None:
232
+ """
233
+ Request the product for given zip code.
234
+
235
+ Args:
236
+ zip_code (int):
237
+ U.S. zip code.
238
+ product (WeatherProductType):
239
+ A WeatherProductType identifying the type of report to obtain.
240
+ one_observation (bool):
241
+ Limit the result to the best mapped weather station.
242
+ metric (bool):
243
+ Use the metric system.
244
+
245
+ Returns:
246
+ DestinationWeatherResponse
247
+ Raises:
248
+ HEREError
249
+
250
+ """
251
+ data = {
252
+ "apiKey": self._api_key,
253
+ "product": product.__str__(),
254
+ "oneobservation": "true" if one_observation else "false",
255
+ "metric": "true" if metric else "false",
256
+ "zipcode": zip_code,
257
+ }
258
+ return await self._get_async(data, product)
259
+
260
+ async def async_weather_for_coordinates(
261
+ self,
262
+ latitude: float,
263
+ longitude: float,
264
+ product: WeatherProductType,
265
+ one_observation: bool = True,
266
+ metric: bool = True,
267
+ ) -> DestinationWeatherResponse | None:
268
+ """
269
+ Request the product for given coordinates.
270
+
271
+ Args:
272
+ latitude (float):
273
+ Latitude.
274
+ longitude (float):
275
+ Longitude.
276
+ product (WeatherProductType):
277
+ A WeatherProductType identifying the type of report to obtain.
278
+ one_observation (bool):
279
+ Limit the result to the best mapped weather station.
280
+ metric (bool):
281
+ Use the metric system.
282
+
283
+ Returns:
284
+ DestinationWeatherResponse
285
+ Raises:
286
+ HEREError
287
+
288
+ """
289
+ data = {
290
+ "apiKey": self._api_key,
291
+ "product": product.__str__(),
292
+ "oneobservation": "true" if one_observation else "false",
293
+ "metric": "true" if metric else "false",
294
+ "latitude": latitude,
295
+ "longitude": longitude,
296
+ }
297
+ return await self._get_async(data, product)
@@ -8,12 +8,13 @@ import sys
8
8
  import requests
9
9
 
10
10
  from herepy.error import HEREError
11
+ from herepy.here_api import HEREApi
11
12
  from herepy.here_enum import EVStationConnectorTypes
12
13
  from herepy.models import EVChargingStationsResponse
13
14
  from herepy.utils import Utils
14
15
 
15
16
 
16
- class EVChargingStationsApi:
17
+ class EVChargingStationsApi(HEREApi):
17
18
  """A python interface into the HERE EV Charging Stations API."""
18
19
 
19
20
  def __init__(self, api_key: str = None, timeout: int = None):
@@ -27,11 +28,7 @@ class EVChargingStationsApi:
27
28
  Timeout limit for requests.
28
29
 
29
30
  """
30
- self._api_key = api_key
31
- if timeout:
32
- self._timeout = timeout
33
- else:
34
- self._timeout = 20
31
+ super().__init__(api_key, timeout)
35
32
  self._base_url = "https://ev-v2.cit.cc.api.here.com/ev/"
36
33
 
37
34
  def __get(self, base_url, data, response_cls):
@@ -261,6 +258,217 @@ class EVChargingStationsApi:
261
258
  response = self.__get(url, data, EVChargingStationsResponse)
262
259
  return response
263
260
 
261
+ async def __get_async(self, base_url, data, response_cls):
262
+ url = Utils.build_url(base_url, extra_params=data)
263
+ response = await self._get_async_client().get(url, timeout=self._timeout)
264
+ json_data = json.loads(response.content.decode("utf8"))
265
+ if json_data.get("evStations") is not None:
266
+ return response_cls.new_from_jsondict(json_data)
267
+ else:
268
+ raise error_from_ev_charging_service_error(json_data)
269
+
270
+ async def async_get_stations_circular_search(
271
+ self,
272
+ latitude: float,
273
+ longitude: float,
274
+ radius: int,
275
+ connectortypes: list[EVStationConnectorTypes] = None,
276
+ maxresults: int = 50,
277
+ offset: int = 0,
278
+ ) -> EVChargingStationsResponse | None:
279
+ """
280
+ Make a search request for charging stations.
281
+
282
+ A circular search area defined by the latitude and longitude of its center
283
+ (compliant with WGS 84) and an integer representing the radius of the area
284
+ in meters, all separated by commas.
285
+
286
+ Args:
287
+ latitude (float):
288
+ latitude.
289
+ longitude (float):
290
+ longitude.
291
+ radius (int):
292
+ Radius of circular area in meter. Radius can be a maximum of 200 km (200000).
293
+ connectortypes (List[EVStationConnectorTypes]):
294
+ Optional, to identify the connector types.
295
+ maxresults (int):
296
+ The maximum number of results a response can contain.
297
+ This parameter can be used with the offset parameter in the query and HasMore in the response for pagination.
298
+ offset (int):
299
+ A value specifying the index of the first result. The offset together with the
300
+ "maxresults" value can be used to support a paging mechanism on search results.
301
+ This parameter can be used with the maxresults parameter in the query and HasMore in the response for pagination.
302
+
303
+ Returns:
304
+ EVChargingStationsResponse
305
+ Raises:
306
+ HEREError
307
+
308
+ """
309
+ if connectortypes:
310
+ connector_types_str = self.__connector_types_str(connectortypes)
311
+ data = {
312
+ "apiKey": self._api_key,
313
+ "prox": str.format("{0},{1},{2}", latitude, longitude, radius),
314
+ "connectortype": connector_types_str,
315
+ "maxresults": maxresults,
316
+ "offset": offset,
317
+ }
318
+ else:
319
+ data = {
320
+ "apiKey": self._api_key,
321
+ "prox": str.format("{0},{1},{2}", latitude, longitude, radius),
322
+ "maxresults": maxresults,
323
+ "offset": offset,
324
+ }
325
+ response = await self.__get_async(self._base_url + "stations.json", data, EVChargingStationsResponse)
326
+ return response
327
+
328
+ async def async_get_stations_bounding_box(
329
+ self,
330
+ top_left: list[float],
331
+ bottom_right: list[float],
332
+ connectortypes: list[EVStationConnectorTypes] = None,
333
+ maxresults: int = 50,
334
+ offset: int = 0,
335
+ ) -> EVChargingStationsResponse | None:
336
+ """
337
+ Search for charging stations in a bounding box.
338
+
339
+ The bounding box can have a maximum height or width of 400 km.
340
+
341
+ Args:
342
+ top_left (List):
343
+ List contains latitude and longitude in order.
344
+ bottom_right (List):
345
+ List contains latitude and longitude in order.
346
+ connectortypes (List[EVStationConnectorTypes]):
347
+ Optional, to identify the connector types.
348
+ maxresults (int):
349
+ The maximum number of results a response can contain.
350
+ This parameter can be used with the offset parameter in the query and HasMore in the response for pagination.
351
+ offset (int):
352
+ A value specifying the index of the first result. The offset together with the
353
+ "maxresults" value can be used to support a paging mechanism on search results.
354
+ This parameter can be used with the maxresults parameter in the query and HasMore in the response for pagination.
355
+
356
+ Returns:
357
+ EVChargingStationsResponse
358
+ Raises:
359
+ HEREError
360
+
361
+ """
362
+ if connectortypes:
363
+ connector_types_str = self.__connector_types_str(connectortypes)
364
+ data = {
365
+ "apiKey": self._api_key,
366
+ "bbox": str.format(
367
+ "{0},{1};{2},{3}",
368
+ top_left[0],
369
+ top_left[1],
370
+ bottom_right[0],
371
+ bottom_right[1],
372
+ ),
373
+ "connectortype": connector_types_str,
374
+ "maxresults": maxresults,
375
+ "offset": offset,
376
+ }
377
+ else:
378
+ data = {
379
+ "apiKey": self._api_key,
380
+ "bbox": str.format(
381
+ "{0},{1};{2},{3}",
382
+ top_left[0],
383
+ top_left[1],
384
+ bottom_right[0],
385
+ bottom_right[1],
386
+ ),
387
+ "maxresults": maxresults,
388
+ "offset": offset,
389
+ }
390
+ response = await self.__get_async(self._base_url + "stations.json", data, EVChargingStationsResponse)
391
+ return response
392
+
393
+ async def async_get_stations_corridor(
394
+ self,
395
+ points: list[float],
396
+ connectortypes: list[EVStationConnectorTypes] = None,
397
+ maxresults: int = 50,
398
+ offset: int = 0,
399
+ ) -> EVChargingStationsResponse | None:
400
+ """
401
+ Search for charging stations along a corridor.
402
+
403
+ The maximum corridor area is 5000 km2.
404
+
405
+ Args:
406
+ points (List):
407
+ List contains latitude and longitude pairs in order.
408
+ connectortypes (List[EVStationConnectorTypes]):
409
+ Optional, to identify the connector types.
410
+ maxresults (int):
411
+ The maximum number of results a response can contain.
412
+ This parameter can be used with the offset parameter in the query and HasMore in the response for pagination.
413
+ offset (int):
414
+ A value specifying the index of the first result. The offset together with the
415
+ "maxresults" value can be used to support a paging mechanism on search results.
416
+ This parameter can be used with the maxresults parameter in the query and HasMore in the response for pagination.
417
+
418
+ Returns:
419
+ EVChargingStationsResponse
420
+ Raises:
421
+ HEREError
422
+
423
+ """
424
+ if connectortypes:
425
+ connector_types_str = self.__connector_types_str(connectortypes)
426
+ data = {
427
+ "apiKey": self._api_key,
428
+ "corridor": self.__corridor_str(points),
429
+ "connectortype": connector_types_str,
430
+ "maxresults": maxresults,
431
+ "offset": offset,
432
+ }
433
+ else:
434
+ data = {
435
+ "apiKey": self._api_key,
436
+ "corridor": self.__corridor_str(points),
437
+ "maxresults": maxresults,
438
+ "offset": offset,
439
+ }
440
+ response = await self.__get_async(self._base_url + "stations.json", data, EVChargingStationsResponse)
441
+ return response
442
+
443
+ async def async_get_station_details(self, station_id: str, maxresults: int = 50, offset: int = 0) -> EVChargingStationsResponse | None:
444
+ """
445
+ Retrieve the full/updated information about a single charging station only.
446
+
447
+ Based on the results of a search for charging stations, this method
448
+ retrieves the full/updated information about a single charging station only.
449
+
450
+ Args:
451
+ station_id (str):
452
+ station_id is an attribute of the evStation element with a unique value.
453
+ maxresults (int):
454
+ The maximum number of results a response can contain.
455
+ This parameter can be used with the offset parameter in the query and HasMore in the response for pagination.
456
+ offset (int):
457
+ A value specifying the index of the first result. The offset together with the
458
+ "maxresults" value can be used to support a paging mechanism on search results.
459
+ This parameter can be used with the maxresults parameter in the query and HasMore in the response for pagination.
460
+
461
+ Returns:
462
+ EVChargingStationsResponse
463
+ Raises:
464
+ HEREError
465
+
466
+ """
467
+ data = {"apiKey": self._api_key, "maxresults": maxresults, "offset": offset}
468
+ url = self._base_url + "stations/" + station_id + ".json"
469
+ response = await self.__get_async(url, data, EVChargingStationsResponse)
470
+ return response
471
+
264
472
 
265
473
  class UnauthorizedError(HEREError):
266
474
  """
@@ -225,6 +225,131 @@ class FleetTelematicsApi(HEREApi):
225
225
  response = self.__get(self._base_url + "findpickups.json", data, WaypointSequenceResponse)
226
226
  return response
227
227
 
228
+ async def __get_async(self, base_url, data, response_cls):
229
+ url = Utils.build_url(base_url, extra_params=data)
230
+ response = await self._get_async_client().get(url, timeout=self._timeout)
231
+ json_data = json.loads(response.content.decode("utf8"))
232
+ if json_data.get("results") is not None:
233
+ return response_cls.new_from_jsondict(json_data)
234
+ else:
235
+ raise error_from_fleet_telematics_service_error(json_data)
236
+
237
+ async def async_find_sequence(
238
+ self,
239
+ start: str,
240
+ departure: str,
241
+ intermediate_destinations: list[str],
242
+ end: str,
243
+ modes: list[RouteMode],
244
+ ) -> WaypointSequenceResponse | None:
245
+ """
246
+ Find time-optimized waypoint sequence route.
247
+
248
+ Args:
249
+ start (str):
250
+ Starting point. `str.format('{0};{1},{2}', text, latitude, longitude)`
251
+ departure (str):
252
+ Time when travel is expected to start. The format is as xsd type xs:datetime `[-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]`
253
+ intermediate_destinations (List[str]):
254
+ Intermediate points between start and end points. List of `str.format('{0};{1},{2}', text, latitude, longitude)`.
255
+ end (str):
256
+ End point. `str.format('{0};{1},{2}', text, latitude, longitude)`
257
+ modes (List[RouteMode]):
258
+ Route modes.
259
+
260
+ Returns:
261
+ WaypointSequenceResponse
262
+ Raises:
263
+ HEREError
264
+
265
+ """
266
+ data = self.__create_find_sequence_parameters(
267
+ start=start,
268
+ departure=departure,
269
+ intermediate_destinations=intermediate_destinations,
270
+ end=end,
271
+ modes=modes,
272
+ )
273
+ response = await self.__get_async(self._base_url + "findsequence.json", data, WaypointSequenceResponse)
274
+ return response
275
+
276
+ async def async_find_pickups(
277
+ self,
278
+ modes: list[RouteMode],
279
+ start: str,
280
+ departure: str,
281
+ capacity: int,
282
+ vehicle_cost: float,
283
+ driver_cost: int,
284
+ max_detour: int,
285
+ rest_times: str,
286
+ intermediate_destinations: list[str],
287
+ end: str,
288
+ ) -> WaypointSequenceResponse | None:
289
+ """
290
+ Find cheaper route by picking up some additional goods along the route.
291
+
292
+ Args:
293
+ modes (List[RouteMode]):
294
+ Route modes.
295
+ start (str):
296
+ Starting point. `str.format('{0};{1},{2}', text, latitude, longitude)`
297
+ departure (str):
298
+ Time when travel is expected to start. The format is as xsd type xs:datetime `[-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]`
299
+ capacity (int):
300
+ Amount of payload the vehicle including trailers can carry, volume and/or weight.
301
+ No unit is specified, but the value must be in the same unit as the waypoint pickup load values.
302
+ vehicle_cost (float):
303
+ Cost per kilometer. No currency is specified, but the value must be in the same currency as the driverCost and
304
+ the waypoint drop-off values.
305
+ driver_cost (int):
306
+ Cost per hour. No currency is specified, but the value must be in the same currency as the vehicleCost and
307
+ the waypoint drop-off values.
308
+ max_detour (int):
309
+ Overall maximum additional seconds spent to pickup and drop-off items along the route, compared to the time
310
+ without picking up anything.
311
+ rest_times (str):
312
+ The parameter restTimes can be set to
313
+ `disabled`
314
+ rest times are not considered. This is equivalent to omitting the parameter restTimes
315
+ `default`
316
+ Use internal default. The default are simplified European rules: After 4.5h driving 45min rest and after 9h driving 11h rest.
317
+ `durations:...` and `serviceTimes:...`
318
+ You can provide values for driving and rest periods and define if service times at waypoints
319
+ can be used for resting. You must provide both parameters.
320
+ intermediate_destinations (List[DestinationPickupParam]):
321
+ Intermediate destinations, at least one. If no end parameter is provided, one of these values is
322
+ selected as end of the sequence.
323
+ `str.format('{0},{1};{2}:{3},value:{4}', latitude,
324
+ longitude, param_type,
325
+ item, value)`
326
+ or
327
+ `str.format('{0},{1};{2}:{3}', latitude, longitude,
328
+ param_type, item)`
329
+ end (str):
330
+ End of the journey. `str.format('{0};{1},{2}', text, latitude, longitude)`
331
+
332
+ Returns:
333
+ WaypointSequenceResponse
334
+ Raises:
335
+ HEREError
336
+
337
+ """
338
+ data = self.__create_find_pickup_parameters(
339
+ modes=modes,
340
+ start=start,
341
+ departure=departure,
342
+ capacity=capacity,
343
+ vehicle_cost=vehicle_cost,
344
+ driver_cost=driver_cost,
345
+ max_detour=max_detour,
346
+ rest_times=rest_times,
347
+ intermediate_destinations=intermediate_destinations,
348
+ end=end,
349
+ )
350
+ response = await self.__get_async(self._base_url + "findpickups.json", data, WaypointSequenceResponse)
351
+ return response
352
+
228
353
 
229
354
  class UnauthorizedError(HEREError):
230
355
  """