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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a85cc9763fcbc092e5dc56f36e2f15e66c40e7359daab2a0357e2e2715945164 |
|
MD5 | 360b4d4321516810ebaa01c189e46a9e |
|
BLAKE2b-256 | 03d810c4a62e5d01c89b13bab2bdad3a75971e7d7634db71bbce0ea70bbd9517 |