Metadata-Version: 2.1
Name: PMMatomo
Version: 0.0.3
Summary: A Python wrapper for the Matomo HTTP reporting API.
Home-page: https://github.com/philippmayrth/PMMatomo
Author: Philipp Mayr
Author-email: me@philipp-mayr.de
License: MIT
Description: # PMMatomo
        
        A Python wrapper for the Matomo HTTP reporting API.
        
        # Run the test suite
        ```bash
        python3 -m unittest
        ```
        
        # Usage
        
        ```python
        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/*
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Office/Business
Classifier: Topic :: Office/Business :: Financial :: Investment
Description-Content-Type: text/markdown
