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
request_experian_report
get_experian_response
fetch_experian_report
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.5.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for mercuryclient-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ea38dfc19680d18b2a2ff233d4dc5f80672756d5df65747918420ac8c367ac5 |
|
MD5 | 611ba4c2cd5086da8e0faaffe533792f |
|
BLAKE2b-256 | 4b1ded1804495f2db7d33433d5c7a7d13f04fd4a369c28b85e598add5ea5fef4 |