Simple Python library to query seismic bulletin database
Project description
bpptkg-querybulletin
Simple Python library to query seismic bulletin database.
Installation
Install the latest version from PyPI:
pip install -U bpptkg-querybulletin
Install database vendor dependent client package, e.g. for MySQL:
pip install mysqlclient
Database Credentials
Create JSON file in `~/.bulletin/querybulletin/config.json to store your seismic bulletin database credentials. For example:
{
"dburl": "mysql://user:password@localhost/seismic_bulletin"
}
Examples
Query bulletin for certain time range:
querybulletin -s "2021-08-01 06:00:00" -e "2021-08-10 06:00:00"
Query bulletin for certain time range and event type:
querybulletin -s "2021-08-01 06:00:00" -e "2021-08-10 06:00:00" -t VTB
Query bulletin for certain event ID:
querybulletin -u "2021-07#2355"
Store output to the CSV file:
querybulletin -s "2021-08-01 06:00:00" -e "2021-08-10 06:00:00" -t VTB -o bulletin.csv
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for bpptkg-querybulletin-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 866edb71ef81154348ece5b13b73e4686eaf6d7391cd38fa58b9d8ca0b7ba48e |
|
MD5 | d25ca5747dc9751fdc21d3c909287d1f |
|
BLAKE2b-256 | fd00164a0db4806412ed8fc6d763646b626b33a5893059f00dd74dbdcc3086c0 |