Python SDK for Mercury service
Project description
Mercury SDK can be used in projects that interface with the mercury service that provides common internal functionality.
Initializing the client
>>> from mercuryclient import MercuryApi #Setup connection parameters >>> conn_params = {'username': 'mercury_username', 'password':'password', 'url':'https://mercury-url.com'} >>> m = MercuryApi(conn_params) >>>m.send_mail(['recipent@email.com'],'Test mail', 'Mail body','ses','ses_profile')
Available APIs:
send_mail
send_sms
Testing:
Tests are run under tox
You can install tox with
pip install tox
If using pyenv - you can do the following steps before running tox (patch version will depend on your installations - tox only considers the major version)
>>> pyenv local 2.7.6 3.7.3 3.6.8 3.8.1
Without this step - tox will not be able to find the interpreters
Run tests using the following command
>>> tox
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
mercuryclient-0.3.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for mercuryclient-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06a01698cd91eb353a5e1a47f002b7a3ad3bceeee2460841683329d59ae12246 |
|
MD5 | 23ee92dd30fa81689564e319383b983b |
|
BLAKE2b-256 | 9ff98e3fdc4463c2a8ba46340945cd9ebeee9cdef3e0e69104508e1c7863d376 |