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 details)
Built Distribution
File details
Details for the file aio_quakeml_client-0.2.tar.gz
.
File metadata
- Download URL: aio_quakeml_client-0.2.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cc998e262873e91b5e023405866f92399ad3a34862c61462913893b0e10fdb69
|
|
MD5 |
10fdeee21f5efc1c8b64356d375b7b37
|
|
BLAKE2b-256 |
7238465f123fbb6f64c1cebaec573e60761b624cdd049997b7f87d50b595979d
|
File details
Details for the file aio_quakeml_client-0.2-py3-none-any.whl
.
File metadata
- Download URL: aio_quakeml_client-0.2-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bd169b449d0068791a595167f671a4b6ba1e5e1f6e979f9a22cfaadfc9aca62b
|
|
MD5 |
3d63b37c406d91e6a91f6955d5148f26
|
|
BLAKE2b-256 |
c7628d58da91be34f008423cdd28d189b7d2e99dc00165afc2a6c8d0c67f04ba
|