thibmaek / pyvrt

🐍 Python library to interact with VRT public APIs (weather, traffic…)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyvrt

🐍 Python library to interact with VRT public APIs (weather, traffic…)

Usage

import pyvrt.traffic as traffic
import pyvrt.weather as weather

weather.summary()
weather.forecast(region='BE', zone='kust')

traffic.traffic_jam(km=True)

Development

$ make install
$ make build

To debug, create an index.py file with some code and run through Python runtime:

# pyvrt/media/index.py
from . import stubru

print(stubru.current())
$ python -m pyvrt.media.index

About

🐍 Python library to interact with VRT public APIs (weather, traffic…)

License:MIT License


Languages

Language:Python 96.3%Language:Makefile 3.7%