Skip to main content

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"
}

If you have custom config file path, add -c or --config option to the full path of JSON config file in the script arguments.

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

MIT

Metadata

Release files for bpptkg-querybulletin 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bpptkg-querybulletin 0.3.0
File Size Uploaded Provenance
bpptkg-querybulletin-0.3.0.tar.gz 6.9 kB Without provenance Details

Release files / bpptkg-querybulletin-0.3.0.tar.gz

Download URL bpptkg-querybulletin-0.3.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5c0893d04718d4a0aac842e5ea31b0ec1e4f622e983faff7adbf9abf820f82ef
BLAKE2b-256 checksum
How to use checksums
15b826684f3260f813d7390f923187838d21b5e77a983627a71097716ee14e8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Security for bpptkg-querybulletin 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page