Skip to main content

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


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)

Uploaded Source

Built Distribution

warsaw_data_api-0.1.3-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

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

Hashes for warsaw-data-api-0.1.3.tar.gz
Algorithm Hash digest
SHA256 245bcdd2bc939a4a18d942a14b12423cc3ded87a3e67356fcd7789ccf96f61ea
MD5 8fbcf5c18c548821bd9694bf73395c05
BLAKE2b-256 9e94fa6ed6275405a173c207c8f151f76362e54f4148d113cb2c15369794452e

See more details on using hashes here.

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

Hashes for warsaw_data_api-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 90b5b5062078ff7c9731eb09f054fc261c0f4a9ed343d244634b0169d8d14f8d
MD5 a76560264f3c77a1503b13c2998ec51f
BLAKE2b-256 1fd87596e72600b3e59157b8d823d3807778c50144fb5f816ab38a6918a9e47f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page