pyruter

Python package to interact with the local API of Google Home devices.
Install
pip install pyruter
This package also include a CLI tool, run pyruter --help to see what it can do.
Example usage
"""Example usage of pyruter."""
import asyncio
import aiohttp
from pyruter.api import Departures
async def test_pyruter():
"""Example usage of pyruter."""
stopid = 2190400
destination = 'Drammen'
custom_session = aiohttp.ClientSession()
data = Departures(LOOP, stopid, destination, custom_session)
await data.get_departures()
print("Departures:", data.departures)
LOOP = asyncio.get_event_loop()
LOOP.run_until_complete(test_pyruter())
**NB!: The destination has to be the final destination, and not where you are hopping off.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyruter-1.2.4.tar.gz
(3.4 kB
view details)
File details
Details for the file pyruter-1.2.4.tar.gz.
File metadata
- Download URL: pyruter-1.2.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2408fba83c2b6c72f6c10c6d532c45acff200b2f50fe2ecc66acad1e9999809
|
|
| MD5 |
471a5f63bc61037c6401e7f704196226
|
|
| BLAKE2b-256 |
5fb96f3f352dcf594f5394252655ceea46884a7d3d36be3f3546d6faa0382b8c
|