文件名称:pytrafikverket:用于与瑞典trafikverket api通信的python模块
文件大小:17KB
文件格式:ZIP
更新时间:2024-05-28 09:22:28
Python
pytrafikverket 用于与瑞典trafikverket api通信的python模块 代码示例 from pytrafikverket import TrafikverketTrain , StationInfo import aiohttp import asyncio import async_timeout from datetime import datetime async def main ( loop ): async with aiohttp . ClientSession ( loop = loop ) as session : train_api = TrafikverketTrain ( session , "api_key_here" ) stations = await train_api . search_train_stations (
【文件预览】:
pytrafikverket-master
----setup.py(539B)
----.gitignore(6KB)
----pytrafikverket()
--------__init__.py(708B)
--------trafikverket.py(7KB)
--------__main__.py(6KB)
--------trafikverket_ferry.py(9KB)
--------trafikverket_train.py(10KB)
--------trafikverket_weather.py(4KB)
----requirements.txt(162B)
----pytrafikverket.pyproj(3KB)
----LICENSE(1KB)
----setup.cfg(307B)
----README.md(2KB)
----pytrafikverket.py(77B)
----pytrafikverket.sln(810B)
----upload.ps1(76B)