An async QuakeML client library.
Project description
python-aio-quakeml-client
This library provides convenient async access to QuakeML feeds.
Example
import asyncio
from aiohttp import ClientSession
from aio_quakeml_client import TestFeed
async def main() -> None:
async with ClientSession() as websession:
# Home Coordinates: Latitude: -33.0, Longitude: 150.0
# Filter radius: 500 km
feed = TestFeed(websession,
(-33.0, 150.0),
url="https://webservices.ingv.it/fdsnws/event/1/query?starttime=2022-03-01T00:00:00&endtime=2022-03-01T23:59:59",
filter_radius=50000)
status, entries = await feed.update()
print(status)
print(entries)
asyncio.get_event_loop().run_until_complete(main())
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
aio_quakeml_client-0.3.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for aio_quakeml_client-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cb8db1870bf692dd0b5888cd857ea1dae6f982a22274c2f5930b6e3a6e3aecf |
|
MD5 | c0db3130f62ee1dbd4cdaf778fdb2658 |
|
BLAKE2b-256 | ae2d76825687f07a728e4c7646c504d3891821cef35e3b3a1e1721b2170de2cb |