Metadata-Version: 2.3
Name: matomo-core
Version: 0.3.3
Summary: Sans-IO core for tracking with Matomo.
Author: Språkbanken Text
Author-email: Språkbanken Text <sb-info@svenska.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.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: typing-extensions>=4.15.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# matomo-core

[![PyPI version](https://img.shields.io/pypi/v/matomo-core/0.3.3.svg)](https://pypi.org/project/matomo-core/)
[![PyPI License](https://img.shields.io/pypi/l/matomo-core/0.3.3.svg)](https://pypi.org/project/matomo-core/)
[![PyPI - Python Versions](https://img.shields.io/pypi/pyversions/matomo-core/0.3.3.svg)](https://pypi.org/project/matomo-core/)

[![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/0.3.3.svg)](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(rolling)](https://github.com/spraakbanken/matomo-core/actions/workflows/rolling.yml/badge.svg)](https://github.com/spraakbanken/matomo-core/actions/workflows/rolling.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.
