Mautic Python
===============================
Python wrapper for Mautic API based on `requests-oauthlib <https://github.com/requests/requests-oauthlib>`_
Installation
------------
Clone repo from GitHub_::
$ git clone https://github.com/divio/python-mautic.git
Then install it by running::
$ python setup.py install
Quickstart
----------
Put your Mautic API credentials in `apitester/oauth2_app.py`
Run Flask app to get OAuth2 token::
$ python apitester/oauth2_app.py
This way you'll have `creds.json` in temporary directory. Now you can start using Mautic API:
.. code-block:: python
>>> from python_mautic import MauticOauth2Client, Contacts
>>> from python_mautic.utils import read_token_tempfile
>>> token = read_token_tempfile()
>>> mautic = MauticOauth2Client(base_url='<base URL>', client_id='<Mautic Public Key>', token=token)
>>> contacts = Contacts(client=mautic)
>>> print(contacts.get_list())
=======
History
=======
0.2.0 (2016-12-23)
------------------
* Basic Auth client for Mautic 2.3
* Improved exception handling
0.1.0 (2016-12-07)
------------------
* Initial port of https://github.com/mautic/api-library/
Metadata
Release files for mautic 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mautic-0.2.0.tar.gz | 8.3 kB | Without provenance | Details for mautic-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mautic-0.2.0-py2-none-any.whl | Python 2 | none | any | Details for mautic-0.2.0-py2-none-any.whl |
Total release size: 27.2 kB
Release files / mautic-0.2.0.tar.gz
| Download URL | mautic-0.2.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72910719f03f4909dfe0dbe99ffee00cc0a23e6345babfabeec97a1a3fa71b41
|
|
BLAKE2b-256 checksum How to use checksums |
f957830be407f864d0ba88747e9d9c3806ca04180b30afec575b7ec22c23d8a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / mautic-0.2.0-py2-none-any.whl
| Download URL | mautic-0.2.0-py2-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
de5fc7aaaa058eeb23d038e2e54e39626c1d7a6169f8f92f0b8e614e916daf04
|
|
BLAKE2b-256 checksum How to use checksums |
057f6c45656baeb3b5bc6a2aba186ac8b46ecd5043036edb14d97963be851324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mautic 0.2.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.