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.2.tar.gz
(14.9 kB
view hashes)
Built Distribution
Close
Hashes for aio_quakeml_client-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd169b449d0068791a595167f671a4b6ba1e5e1f6e979f9a22cfaadfc9aca62b |
|
MD5 | 3d63b37c406d91e6a91f6955d5148f26 |
|
BLAKE2b-256 | c7628d58da91be34f008423cdd28d189b7d2e99dc00165afc2a6c8d0c67f04ba |