Skip to main content

No project description provided

Project description

BQMail

Build Status PyPI PyPI - Python Version PyPI - License GitHub tag (latest SemVer)

GitHub forks GitHub stars

BQMail is a Python module for sending mails to apply for seismic data from the IRIS DMC. It is a front-end API of the BREQ_fast.

For Chinese users, please refer our chinese blog.

Installation

BQMail can currently run on Linux and MAC OSX. BQMail is running and testing on Python 3.6/3.7/3.8.

Installation via PyPI

pip install bqmail

Installation from source code

The latest version of the BQMail is available on Gitlab:

git clone https://github.com/xumi1993/bqmail.git bqmail

Then you can install this version:

cd bqmail
pip install .

A quick example:

from bqmail.mail import BQMail
from obspy import UTCDateTime

bq = BQMail('xxx@xxx.com', server='smtp.xxx.com', password='xxx', username='bqmail')
bq.query_events(starttime=UTCDateTime(2017, 1, 1), endtime=UTCDateTime(2018, 1, 1),
                minmagnitude=5.5, catalog='GCMT')
bq.query_stations(network='CB', station='LZH')
bq.send_mail(time_before=0, time_after=1000)

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

bqmail-2.1.1.tar.gz (6.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page