Warsaw data python api
Project description
Pythonic way to use Warsaw data API
This package allow to fetch data from API provided by "UM Warszawa" - https://api.um.warszawa.pl/
Quick start
Instalation
TODO
Using ZTM module
We can fetch all location data for buses:
import warsaw_data_api
ztm = warsaw_data_api.client('ztm', apikey='your_api_key')
buses = ztm.get_buses_location()
for bus in buses:
print(bus)
We can do the same for trams, as a parameter we can set number of tram line
import warsaw_data_api
ztm = warsaw_data_api.client('ztm', apikey='your_api_key')
trams = ztm.get_trams_location(lines=17)
for tram in trams:
print(tram)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
warsaw-data-api-0.1.3.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file warsaw-data-api-0.1.3.tar.gz
.
File metadata
- Download URL: warsaw-data-api-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245bcdd2bc939a4a18d942a14b12423cc3ded87a3e67356fcd7789ccf96f61ea |
|
MD5 | 8fbcf5c18c548821bd9694bf73395c05 |
|
BLAKE2b-256 | 9e94fa6ed6275405a173c207c8f151f76362e54f4148d113cb2c15369794452e |
File details
Details for the file warsaw_data_api-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: warsaw_data_api-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90b5b5062078ff7c9731eb09f054fc261c0f4a9ed343d244634b0169d8d14f8d |
|
MD5 | a76560264f3c77a1503b13c2998ec51f |
|
BLAKE2b-256 | 1fd87596e72600b3e59157b8d823d3807778c50144fb5f816ab38a6918a9e47f |