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.1.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for aio_quakeml_client-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c501c4b766dd4020b8a89631ef555f6aa361071d2b11bf3e5684acde987af508 |
|
MD5 | ade4507b4d39cc021ba49511e8fd4065 |
|
BLAKE2b-256 | 959eb98203bd887a557f665203a19d51665ba68f113ca74fe925930c7d439072 |