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.
- herepy-3.7.0/.codecov.yml +5 -0
- herepy-3.7.0/.coveragerc +2 -0
- herepy-3.7.0/.github/workflows/ci.yml +43 -0
- herepy-3.7.0/.github/workflows/deploy-docs.yml +41 -0
- herepy-3.7.0/.github/workflows/release.yml +58 -0
- herepy-3.7.0/.gitignore +104 -0
- herepy-3.7.0/.vscode/launch.json +15 -0
- herepy-3.7.0/.vscode/settings.json +14 -0
- {herepy-3.6.5 → herepy-3.7.0}/PKG-INFO +36 -28
- {herepy-3.6.5 → herepy-3.7.0}/README.rst +20 -10
- herepy-3.7.0/docs/api/destination_weather_api.md +5 -0
- herepy-3.7.0/docs/api/ev_charging_stations_api.md +5 -0
- herepy-3.7.0/docs/api/fleet_telematics_api.md +5 -0
- herepy-3.7.0/docs/api/geocoder_api.md +5 -0
- herepy-3.7.0/docs/api/geocoder_autocomplete_api.md +5 -0
- herepy-3.7.0/docs/api/geocoder_reverse_api.md +5 -0
- herepy-3.7.0/docs/api/here_api.md +5 -0
- herepy-3.7.0/docs/api/isoline_routing_api.md +5 -0
- herepy-3.7.0/docs/api/map_image_api.md +5 -0
- herepy-3.7.0/docs/api/map_tile_api.md +5 -0
- herepy-3.7.0/docs/api/places_api.md +5 -0
- herepy-3.7.0/docs/api/public_transit_api.md +5 -0
- herepy-3.7.0/docs/api/rme_api.md +5 -0
- herepy-3.7.0/docs/api/routing_api.md +5 -0
- herepy-3.7.0/docs/api/traffic_api.md +5 -0
- herepy-3.7.0/docs/api/vector_tile_api.md +5 -0
- herepy-3.7.0/docs/css/custom.css +13 -0
- herepy-3.7.0/docs/css/termynal.css +108 -0
- herepy-3.7.0/docs/enums/enums.md +5 -0
- herepy-3.7.0/docs/index.md +33 -0
- herepy-3.7.0/docs/installation.md +57 -0
- herepy-3.7.0/docs/js/custom.js +149 -0
- herepy-3.7.0/docs/js/termynal.js +264 -0
- herepy-3.7.0/docs/models/models.md +5 -0
- herepy-3.7.0/docs/objects/objects.md +5 -0
- herepy-3.7.0/docs/utils/utils.md +5 -0
- herepy-3.7.0/examples/destination_weather_api.py +22 -0
- herepy-3.7.0/examples/ev_charging_stations_api.py +53 -0
- herepy-3.7.0/examples/fleet_telematics_api.py +79 -0
- herepy-3.7.0/examples/geocoder_api.py +26 -0
- herepy-3.7.0/examples/geocoder_autocomplete_api.py +14 -0
- herepy-3.7.0/examples/geocoder_reverse_api.py +10 -0
- herepy-3.7.0/examples/isoline_routing_api.py +109 -0
- herepy-3.7.0/examples/map_image_api.py +64 -0
- herepy-3.7.0/examples/map_tile_api.py +51 -0
- herepy-3.7.0/examples/places_api.py +18 -0
- herepy-3.7.0/examples/public_transit_api.py +16 -0
- herepy-3.7.0/examples/rme_api.py +13 -0
- herepy-3.7.0/examples/routing_api.py +181 -0
- herepy-3.7.0/examples/traffic_api.py +92 -0
- herepy-3.7.0/examples/vector_tile_api.py +14 -0
- herepy-3.7.0/mkdocs.yml +74 -0
- herepy-3.7.0/noxfile.py +68 -0
- herepy-3.7.0/pyproject.toml +99 -0
- herepy-3.7.0/src/herepy/__init__.py +185 -0
- herepy-3.7.0/src/herepy/destination_weather_api.py +297 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/error.py +9 -8
- herepy-3.7.0/src/herepy/ev_charging_stations_api.py +494 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/fleet_telematics_api.py +163 -33
- herepy-3.7.0/src/herepy/geocoder_api.py +345 -0
- herepy-3.7.0/src/herepy/geocoder_autocomplete_api.py +171 -0
- herepy-3.7.0/src/herepy/geocoder_reverse_api.py +123 -0
- herepy-3.7.0/src/herepy/here_api.py +60 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/here_enum.py +120 -77
- herepy-3.7.0/src/herepy/isoline_routing_api.py +681 -0
- herepy-3.7.0/src/herepy/map_image_api.py +338 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/map_tile_api.py +107 -17
- herepy-3.7.0/src/herepy/mercator_projection.py +23 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/models.py +69 -47
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/objects.py +26 -18
- herepy-3.7.0/src/herepy/places_api.py +266 -0
- herepy-3.7.0/src/herepy/platform/__init__.py +5 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/platform/tour_planning_api.py +8 -4
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/polling.py +24 -20
- herepy-3.7.0/src/herepy/public_transit_api.py +839 -0
- herepy-3.7.0/src/herepy/rme_api.py +132 -0
- herepy-3.7.0/src/herepy/routing_api.py +1764 -0
- herepy-3.7.0/src/herepy/traffic_api.py +751 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/utils.py +18 -6
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/vector_tile_api.py +85 -19
- herepy-3.7.0/testdata/images/new-delhi-uncertainty.jpg +0 -0
- herepy-3.7.0/testdata/models/destination_weater_zip_code.json +61 -0
- herepy-3.7.0/testdata/models/destination_weather_alerts.json +13 -0
- herepy-3.7.0/testdata/models/destination_weather_error_invalid_request.json +6 -0
- herepy-3.7.0/testdata/models/destination_weather_error_unauthorized.json +4 -0
- herepy-3.7.0/testdata/models/destination_weather_forecasts.json +761 -0
- herepy-3.7.0/testdata/models/destination_weather_forecasts_astronomy.json +118 -0
- herepy-3.7.0/testdata/models/destination_weather_forecasts_hourly.json +5057 -0
- herepy-3.7.0/testdata/models/destination_weather_forecasts_nsw_alerts.json +873 -0
- herepy-3.7.0/testdata/models/destination_weather_forecasts_simple.json +248 -0
- herepy-3.7.0/testdata/models/destination_weather_observations.json +432 -0
- herepy-3.7.0/testdata/models/ev_charging_station_details.json +147 -0
- herepy-3.7.0/testdata/models/ev_charging_stations_circular.json +90 -0
- herepy-3.7.0/testdata/models/ev_charging_stations_error_unauthorized.json +4 -0
- herepy-3.7.0/testdata/models/fleet_telematics_find_pickups.json +152 -0
- herepy-3.7.0/testdata/models/fleet_telematics_find_sequence.json +97 -0
- herepy-3.7.0/testdata/models/fleet_telematics_unauthorized_error.json +1 -0
- herepy-3.7.0/testdata/models/geocoder.json +42 -0
- herepy-3.7.0/testdata/models/geocoder_autocomplete.json +63 -0
- herepy-3.7.0/testdata/models/geocoder_autocomplete_error.json +5 -0
- herepy-3.7.0/testdata/models/geocoder_error.json +4 -0
- herepy-3.7.0/testdata/models/geocoder_reverse.json +38 -0
- herepy-3.7.0/testdata/models/isoline_based_on_consumption.json +28 -0
- herepy-3.7.0/testdata/models/isoline_routing_api_multi_range_arrival.json +50 -0
- herepy-3.7.0/testdata/models/isoline_routing_api_multi_range_departure.json +50 -0
- herepy-3.7.0/testdata/models/isoline_routing_api_specific_time_arrival.json +30 -0
- herepy-3.7.0/testdata/models/isoline_routing_api_specific_time_departure.json +30 -0
- herepy-3.7.0/testdata/models/isoline_routing_distance_response.json +24 -0
- herepy-3.7.0/testdata/models/isoline_routing_pi_reverse_direction_arrival.json +28 -0
- herepy-3.7.0/testdata/models/isoline_routing_pi_reverse_direction_departure.json +28 -0
- herepy-3.7.0/testdata/models/matrix.json +22 -0
- herepy-3.7.0/testdata/models/not_authorize_access.json +4 -0
- herepy-3.7.0/testdata/models/places_api.json +25 -0
- herepy-3.7.0/testdata/models/places_api_error.json +4 -0
- herepy-3.7.0/testdata/models/public_transit_api.json +106 -0
- herepy-3.7.0/testdata/models/public_transit_api_by_id.json +39 -0
- herepy-3.7.0/testdata/models/public_transit_api_calculate_route_many_transfers.json +4948 -0
- herepy-3.7.0/testdata/models/public_transit_api_calculate_route_time.json +1182 -0
- herepy-3.7.0/testdata/models/public_transit_api_coverage_cities.json +446 -0
- herepy-3.7.0/testdata/models/public_transit_api_error.json +10 -0
- herepy-3.7.0/testdata/models/public_transit_api_nearby.json +89 -0
- herepy-3.7.0/testdata/models/public_transit_api_nearby_coverage.json +68 -0
- herepy-3.7.0/testdata/models/public_transit_api_next_departures_for_stations.json +394 -0
- herepy-3.7.0/testdata/models/public_transit_api_next_departures_location.json +379 -0
- herepy-3.7.0/testdata/models/public_transit_api_next_nearby_departures.json +82 -0
- herepy-3.7.0/testdata/models/public_transit_api_route_shows_line_graph.json +870 -0
- herepy-3.7.0/testdata/models/public_transit_api_router_exclude_changes.json +576 -0
- herepy-3.7.0/testdata/models/public_transit_calculate_route.json +867 -0
- herepy-3.7.0/testdata/models/public_transit_city_coverage.json +122 -0
- herepy-3.7.0/testdata/models/rme_match_route_api.json +20619 -0
- herepy-3.7.0/testdata/models/routing.json +171 -0
- herepy-3.7.0/testdata/models/routing_async_matrix_calculation.json +5 -0
- herepy-3.7.0/testdata/models/routing_async_matrix_completed.json +16 -0
- herepy-3.7.0/testdata/models/routing_bicycle.json +274 -0
- herepy-3.7.0/testdata/models/routing_car_route_short.json +299 -0
- herepy-3.7.0/testdata/models/routing_error_forbidden_credentials.json +4 -0
- herepy-3.7.0/testdata/models/routing_error_invalid_credentials.json +4 -0
- herepy-3.7.0/testdata/models/routing_error_invalid_input_data.json +21 -0
- herepy-3.7.0/testdata/models/routing_error_no_route_found.json +21 -0
- herepy-3.7.0/testdata/models/routing_error_no_route_found_truck.json +21 -0
- herepy-3.7.0/testdata/models/routing_matrix.json +14 -0
- herepy-3.7.0/testdata/models/routing_matrix_bad_request.json +21 -0
- herepy-3.7.0/testdata/models/routing_matrix_multiple_destinations.json +14 -0
- herepy-3.7.0/testdata/models/routing_matrix_multiple_starts.json +14 -0
- herepy-3.7.0/testdata/models/routing_pedestrian.json +308 -0
- herepy-3.7.0/testdata/models/routing_public.json +294 -0
- herepy-3.7.0/testdata/models/routing_public_time_table.json +308 -0
- herepy-3.7.0/testdata/models/routing_truck_route_short.json +187 -0
- herepy-3.7.0/testdata/models/routing_v8_error_access_denied.json +8 -0
- herepy-3.7.0/testdata/models/routing_v8_error_malformed_req.json +8 -0
- herepy-3.7.0/testdata/models/routing_v8_response.json +90 -0
- herepy-3.7.0/testdata/models/traffic_api_additional_attributes.json +2816 -0
- herepy-3.7.0/testdata/models/traffic_api_flow.json +263 -0
- herepy-3.7.0/testdata/models/traffic_api_flow_availability.json +548 -0
- herepy-3.7.0/testdata/models/traffic_api_flow_corridor.json +3386 -0
- herepy-3.7.0/testdata/models/traffic_api_flow_minjamfactor.json +215 -0
- herepy-3.7.0/testdata/models/traffic_api_flow_proximity.json +766 -0
- herepy-3.7.0/testdata/models/traffic_api_flow_proximity_attributes.json +4471 -0
- herepy-3.7.0/testdata/models/traffic_api_incidents.json +1467 -0
- herepy-3.7.0/testdata/models/traffic_incidents_bounding_box.json +3305 -0
- herepy-3.7.0/testdata/models/traffic_incidents_corridor.json +1952 -0
- herepy-3.7.0/testdata/models/traffic_incidents_proximity.json +23834 -0
- herepy-3.7.0/testdata/models/unauthorized_error.json +4 -0
- herepy-3.7.0/testdata/routes/sample.gpx +2559 -0
- herepy-3.7.0/testdata/tiles/berlin.png +0 -0
- herepy-3.7.0/testdata/tiles/omv +0 -0
- herepy-3.7.0/tests/async_test_helpers.py +45 -0
- herepy-3.7.0/tests/platform/test_tour_planning_api.py +17 -0
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_destination_weather_api.py +56 -28
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_enum.py +61 -86
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_ev_charging_stations_api.py +51 -25
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_fleet_telematics_api.py +57 -7
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_geocoder_api.py +56 -40
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_geocoder_autocomplete_api.py +31 -7
- herepy-3.7.0/tests/test_geocoder_reverse_api.py +98 -0
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_isoline_routing_api.py +119 -21
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_map_image_api.py +95 -21
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_map_tile_api.py +77 -15
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_mercator_projection.py +1 -3
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_models.py +13 -45
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_places_api.py +29 -13
- herepy-3.7.0/tests/test_polling.py +81 -0
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_publictransit_api.py +116 -68
- herepy-3.7.0/tests/test_rme_api.py +71 -0
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_routing_api.py +335 -178
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_traffic_api.py +91 -54
- {herepy-3.6.5 → herepy-3.7.0}/tests/test_utils.py +5 -6
- herepy-3.7.0/tests/test_vector_tile_api.py +103 -0
- herepy-3.7.0/tox.ini +24 -0
- herepy-3.7.0/uv.lock +1654 -0
- herepy-3.6.5/herepy/__init__.py +0 -65
- herepy-3.6.5/herepy/destination_weather_api.py +0 -170
- herepy-3.6.5/herepy/ev_charging_stations_api.py +0 -276
- herepy-3.6.5/herepy/geocoder_api.py +0 -178
- herepy-3.6.5/herepy/geocoder_autocomplete_api.py +0 -92
- herepy-3.6.5/herepy/geocoder_reverse_api.py +0 -77
- herepy-3.6.5/herepy/here_api.py +0 -28
- herepy-3.6.5/herepy/isoline_routing_api.py +0 -348
- herepy-3.6.5/herepy/map_image_api.py +0 -187
- herepy-3.6.5/herepy/mercator_projection.py +0 -23
- herepy-3.6.5/herepy/places_api.py +0 -141
- herepy-3.6.5/herepy/platform/__init__.py +0 -1
- herepy-3.6.5/herepy/public_transit_api.py +0 -425
- herepy-3.6.5/herepy/rme_api.py +0 -82
- herepy-3.6.5/herepy/routing_api.py +0 -1049
- herepy-3.6.5/herepy/traffic_api.py +0 -375
- herepy-3.6.5/herepy.egg-info/PKG-INFO +0 -195
- herepy-3.6.5/herepy.egg-info/SOURCES.txt +0 -59
- herepy-3.6.5/herepy.egg-info/dependency_links.txt +0 -1
- herepy-3.6.5/herepy.egg-info/requires.txt +0 -1
- herepy-3.6.5/herepy.egg-info/top_level.txt +0 -1
- herepy-3.6.5/requirements.txt +0 -1
- herepy-3.6.5/setup.cfg +0 -19
- herepy-3.6.5/setup.py +0 -66
- herepy-3.6.5/tests/test_geocoder_reverse_api.py +0 -50
- herepy-3.6.5/tests/test_rme_api.py +0 -53
- herepy-3.6.5/tests/test_vector_tile_api.py +0 -72
- {herepy-3.6.5 → herepy-3.7.0}/COPYING +0 -0
- {herepy-3.6.5 → herepy-3.7.0}/LICENSE +0 -0
- {herepy-3.6.5 → herepy-3.7.0}/MANIFEST.in +0 -0
- {herepy-3.6.5 → herepy-3.7.0}/NOTICE +0 -0
- {herepy-3.6.5 → herepy-3.7.0/src}/herepy/py.typed +0 -0
herepy-3.7.0/.coveragerc
ADDED
|
@@ -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/*
|
herepy-3.7.0/.gitignore
ADDED
|
@@ -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
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: herepy
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.7.0
|
|
4
4
|
Summary: A library that provides a Python interface to the HERE APIs
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
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.
|
|
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,
|
|
90
|
+
To install dependencies for development, use uv::
|
|
92
91
|
|
|
93
|
-
$
|
|
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
|
-
$
|
|
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
|
|
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
|
-
$
|
|
106
|
+
$ uv run pytest -v
|
|
109
107
|
|
|
110
108
|
to also run code coverage::
|
|
111
109
|
|
|
112
|
-
$
|
|
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://
|
|
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://
|
|
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.
|
|
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,
|
|
61
|
+
To install dependencies for development, use uv::
|
|
61
62
|
|
|
62
|
-
$
|
|
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
|
-
$
|
|
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
|
|
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
|
-
$
|
|
77
|
+
$ uv run pytest -v
|
|
78
78
|
|
|
79
79
|
to also run code coverage::
|
|
80
80
|
|
|
81
|
-
$
|
|
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://
|
|
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://
|
|
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,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
|
+
}
|