README
CLI tool to retrieve and ingest analytics from a provider into current InvenioRDM instance.
For now, only Matomo is supported. If other provider added, slight refactor to support them will be planned.
Install
pip install invenio-analytics-importer
Usage
Retrieve analytics
pipenv run invenio analytics_importer retrieve [--views|--downloads] --from <YYYY-MM> --to <YYYY-MM> --output-dir <path>/<to>/<data>/
If neither --views nor --downloads is passed, views will be the default. If both are passed, the last one on the CLI will be chosen.
--from and --to are inclusive year-month dates.
This downloads analytics into files corresponding to each year-month. The structure of each file is e.g.,:
{
"2024-08-01": [
{
// 1 "raw" analytics entry from provider
// corresponding to 1 URL
},
// ...
],
"2024-08-02": [
// ...
],
// ...
}
Ingest
pipenv run invenio analytics_importer ingest [--views|--downloads] -f <analytics file 1> -f <analytics file 2> ...
Analytics files are of the shape described above, although there is no
requirements for 1 file to correspond to 1 month. However, there is an
assumption/requirement that each file's date (YYYY-MM-DD) in
"YYYY-MM-DD": [...analytics...] is unique across all files.
Metadata
Release files for invenio-analytics-importer 0.2.0
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 |
|---|---|---|---|---|
| invenio_analytics_importer-0.2.0.tar.gz | 15.5 kB | With provenance | Details for invenio_analytics_importer-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| invenio_analytics_importer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for invenio_analytics_importer-0.2.0-py3-none-any.whl |
Total release size: 28.9 kB
Release files / invenio_analytics_importer-0.2.0.tar.gz
| Download URL | invenio_analytics_importer-0.2.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b7ba736b7e91ded1062a5ce67112c63158b0460cf86e4ee0e60d290c012b7a8
|
|
BLAKE2b-256 checksum How to use checksums |
4fd17d7da9f4bd27732ff4c423c4c9be5fbb92bdab7e625f9c9913e54ae5c281
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency logRelease files / invenio_analytics_importer-0.2.0-py3-none-any.whl
| Download URL | invenio_analytics_importer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
721017a37b5e7568f9c65cc05d9ef5dff8c661e4daec87c623bbefcd00b59839
|
|
BLAKE2b-256 checksum How to use checksums |
876f1ffe2b0fb264bbc543a7fcf5707c51fa6c2f96e929e34b65c7528705a37c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency logSecurity for invenio-analytics-importer 0.2.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for invenio_analytics_importer-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2025.
Transparency logA 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.