Metadata-Version: 2.4
Name: matomo-core
Version: 0.3.0
Summary: Add your description here
Author-email: Språkbanken Text <sb-info@svenska.gu.se>, Kristoffer Andersson <kristoffer.andersson@gu.se>
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# matomo-core

[![PyPI version](https://img.shields.io/pypi/v/matomo-core.svg?style=flat-square&colorB=dfb317)](https://pypi.org/project/matomo-core/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/matomo-core)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/matomo-core)](https://pypi.org/project/matomo-core/)
 [![Docs](https://img.shields.io/badge/docs-readthedocs-red.svg?style=flat-square)](https://matomo-core.readthedocs.io)
![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)

[![Maturity badge - level 3](https://img.shields.io/badge/Maturity-Level%203%20--%20Stable-green.svg)](https://github.com/spraakbanken/getting-started/blob/main/scorecard.md)
[![Stage](https://img.shields.io/pypi/status/matomo-core)](https://pypi.org/project/matomo-core/)

[![Code Coverage](https://codecov.io/gh/spraakbanken/matomo-core/branch/main/graph/badge.svg)](https://codecov.io/gh/spraakbanken/matomo-core/)

[![CI(check)](https://github.com/spraakbanken/matomo-core/actions/workflows/check.yml/badge.svg)](https://github.com/spraakbanken/matomo-core/actions/workflows/check.yml)
[![CI(release)](https://github.com/spraakbanken/matomo-core/actions/workflows/release.yml/badge.svg)](https://github.com/spraakbanken/matomo-core/actions/workflows/release.yml)
[![CI(scheduled)](https://github.com/spraakbanken/matomo-core/actions/workflows/scheduled.yml/badge.svg)](https://github.com/spraakbanken/matomo-core/actions/workflows/scheduled.yml)
[![CI(test)](https://github.com/spraakbanken/matomo-core/actions/workflows/test.yml/badge.svg)](https://github.com/spraakbanken/matomo-core/actions/workflows/test.yml)

Library for working with Matomo.

## MatomoCore

Business logic for tracking backend calls with Matomo.

Used by [flask-matomo2](https://github.com/spraakbanken/flask-matomo2) and [asgi-matomo](https://github.com/spraakbanken/asgi-matomo).

## trackers

Trackers to record time for different parts of a request.

### PerfMsTracker

A context manager for recording time in milliseconds.
