telraam-data
A friendly Python package to download traffic count data from Telraam.net.
The telraam_data package enables you to retrieve traffic count data from the Telraam Project API into pandas.DataFrame objects.
Examples
Downloading hourly counts for one segment
from telraam_data import download_segment
data = download_segment(segment_id=1003073114, fmt="per-hour")
data.to_excel("hourly-counts.xls")
Downloading daily counts for all segments
data = download_segment(segment_id="all", fmt="per-day")
data.to_csv("daily-counts.csv")
Plotting weekly average counts for all segments
data = download_segment("all", time_start="2020-01-01 00:00:00Z",
time_end="2021-01-01 00:00:00Z", fmt="per-day")
weekly_average = data.set_index('date').resample('7D').mean() * 7
weekly_average.plot(y=["car", "bike", "pedestrian"], marker='o')
Installation
If you have a working version of Python on your system, you can install the package using:
pip install telraam-data
Notes
This is a third-party package not officially affiliated with the Telraam project.
The Telraam API is documented at https://telraam-api.net.
Telraam’s data is made available under the CC BY 4.0 license. Thanks Telraam!
Metadata
Release files for telraam-data 0.2.3
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 |
|---|---|---|---|---|
| telraam-data-0.2.3.tar.gz | 4.9 kB | Without provenance | Details for telraam-data-0.2.3.tar.gz |
Release files / telraam-data-0.2.3.tar.gz
| Download URL | telraam-data-0.2.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bac755993c0f457d086de8f4f7450a811b684ecf0d302c8a0a139ee00cba6a6
|
|
BLAKE2b-256 checksum How to use checksums |
a70158aba3988cdcf920d21e0396c4638ca5d2bbde9b78b1dcd7e6be51cba548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200323 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|
Security for telraam-data 0.2.3
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.