Skip to main content

A Python wrapper for the Matomo HTTP reporting API.

Project description


A Python wrapper for the Matomo HTTP reporting API.

Run the test suite

python3 -m unittest


pip3 install PMMatomo


import datetime
from PMMatomo import Matomo, MatomoReportPeriod

m = Matomo(url=YOUR_MATOMO_API_URL,


# 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')

visitorDetails = m.genReportLiveGetLastVisistsDetails()

Upload to PIP

python3 -m venv venv
source venv/bin/activate
pip3 install twine
python3 sdist
twine upload dist/*

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PMMatomo, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size PMMatomo-0.0.5.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

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