here_transit
Asynchronous Python client for the HERE Transit V8 API
Installation
pip install here_transit
Usage
import asyncio
from here_transit import HERETransitApi, Place, Return
API_KEY = "<YOUR_API_KEY>"
async def main() -> None:
"""Show example how to get location of your tracker."""
async with HERETransitApi(api_key=API_KEY) as here_transit:
response = await here_transit.route(
origin=Place(latitude=50.12778680095556, longitude=8.582081794738771),
destination=Place(latitude=50.060940891421765, longitude=8.336477279663088),
return_values=[Return.TRAVEL_SUMMARY],
)
print(
f"Duration is: {response['routes'][0]['sections'][0]['travelSummary']['duration']}"
)
if __name__ == "__main__":
asyncio.run(main())
Metadata
Release files for here-transit 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| here_transit-1.2.1.tar.gz | 38.3 kB | Without provenance | Details for here_transit-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| here_transit-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for here_transit-1.2.1-py3-none-any.whl |
Total release size: 45.2 kB
Release files / here_transit-1.2.1.tar.gz
| Download URL | here_transit-1.2.1.tar.gz |
|---|---|
| Size | 38.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f72a6c34fc2fc8cc7a505dd16adf11d622800cf4f49b8b673da77ef825289b1
|
|
BLAKE2b-256 checksum How to use checksums |
197ecceaf595dceff218be284323cfd8378ddb62725c27fd227aec7e10c62a4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / here_transit-1.2.1-py3-none-any.whl
| Download URL | here_transit-1.2.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97c2ef25064e9e5c25a18f825562a3804bd1be93854ddd67b7566fc899aa178f
|
|
BLAKE2b-256 checksum How to use checksums |
9ca9ed0ee56e9543baee9aac28d559b945023e4e31be511226d87bfb6aeb427e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for here-transit 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.