Analytical - Server Side Analytics
Analytical is a Python library for sending pageviews and events to analytics platforms like Google Analytics except from Python rather than JavaScript so it can be done server side. This has a number of advantages such as working regardless of whether clients block analytics scripts, privacy sensitive information can be anonymized or removed before sending, and it allows sending data only known by the server.
Feature support
Convenient utilities for anonymizing sensitive information like IP addresses
Pluggable provider backends for different analytics platforms (currently just Google)
Supports Python 2.7, Python 3.5+, and PyPy.
Example
import analytical
provider = analytical.Provider('googleanalytics', 'UA-XXXXXXX-1')
provider.pageview({
'dl': 'https://example.com',
'dt': 'My Page Title',
'ua': 'user-agent', # User agent
'uip: '12.34.56.78', # User IP address
})
Resources
Documentation: https://analytical.readthedocs.io
IRC: #readthedocs on freenode
Metadata
Release files for analytical 0.0.1
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 |
|---|---|---|---|---|
| analytical-0.0.1.tar.gz | 26.7 kB | Without provenance | Details for analytical-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| analytical-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for analytical-0.0.1-py2.py3-none-any.whl |
Total release size: 50.0 kB
Release files / analytical-0.0.1.tar.gz
| Download URL | analytical-0.0.1.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c2310ac04386bd2baddb5f54f43a15fc8a8c09fe634f6273e71046323a024ba
|
|
BLAKE2b-256 checksum How to use checksums |
eb546a886ab4071a3edb87768c9c56ee88cd5dbc30d5f2031aa8656aef14f178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|
Release files / analytical-0.0.1-py2.py3-none-any.whl
| Download URL | analytical-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 23.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
68009b125e086c995f973f3c6021760fade59ea0970caedc1f9467b74df43098
|
|
BLAKE2b-256 checksum How to use checksums |
52db844603676eabedbb78939c2c7f9d1b2edce178a980aa99c196309a349774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|
Security for analytical 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.