Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thibmaek/pyvrt

🐍 Python library to interact with VRT public APIs (weather, traffic…)
https://github.com/thibmaek/pyvrt

api-wrapper pip python3 thibmaek-com traffic vlaamse-radio-televisie vrt weather

Last synced: about 4 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# pyvrt

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

## Usage

```python
import pyvrt.traffic as traffic
import pyvrt.weather as weather

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

traffic.traffic_jam(km=True)
```

## Development

```shell
$ make install
$ make build
```

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

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

print(stubru.current())
```

```shell
$ python -m pyvrt.media.index
```