PMMatomo
A Python wrapper for the Matomo HTTP reporting API.
Run the test suite
python3 -m unittest
Installation
pip3 install PMMatomo
Usage
import datetime
from PMMatomo import Matomo, MatomoReportPeriod
m = Matomo(url=YOUR_MATOMO_API_URL,
token=YOUR_MATOMO_AUTHENTICATION_TOKEN,
siteId=YOUR_SITE_ID)
m.enableFilterLimit(False)
m.setReportPeriod(MatomoReportPeriod.month)
# since we set the report period to .month we get a report of the mont that this date is in
date = datetime.datetime.strptime("2019-01-26", '%Y-%m-%d')
m.setReportDateFromDatetime(date)
visitorDetails = m.genReportLiveGetLastVisistsDetails()
print(visitorDetails)
Upload to PIP
python3 -m venv venv
source venv/bin/activate
pip3 install twine
python3 setup.py sdist
twine upload dist/*
Metadata
Release files for PMMatomo 0.0.5
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 |
|---|---|---|---|---|
| PMMatomo-0.0.5.tar.gz | 2.7 kB | Without provenance | Details for PMMatomo-0.0.5.tar.gz |
Release files / PMMatomo-0.0.5.tar.gz
| Download URL | PMMatomo-0.0.5.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d6af5270166e844426aa5cd90c618051cb706c86af8b3c4ede8f91e23faaeda
|
|
BLAKE2b-256 checksum How to use checksums |
d764486c9cadbf77728cee157d9a2a182508b73192512722ede0b5a92155c589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.7
|
Security for PMMatomo 0.0.5
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.