This app allows you do define various named metrics (such as ‘New Users’, ‘Downloads’, or ‘Purchases’) and record when they happen.
Each metric can be assigned a Category or an optional Expiration time, and is stored at the second, minute, hourly, daily, weekly, monthly, and yearly level, so you can see the frequency of your data at different granularities.
Here’s a sneak peak at how it works:
>>> from redis_metrics.utils import metric
>>> metric("Downloads", category="User Metrics")
Compatibility
This app works with Python 3 and is tested with Django 2.2. For support for older versions of Django, see the 1.7.0 release.
Documentation
View the full documenation at http://django-redis-metrics.readthedocs.io/en/latest/.
License
This code is distributed under the terms of the MIT license. See the LICENSE.txt file.
Metadata
Release files for django-redis-metrics 2.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 | |
|---|---|---|---|
| django-redis_metrics-2.2.0.tar.gz | 108.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_redis_metrics-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 234.8 kB
Release files / django-redis_metrics-2.2.0.tar.gz
| Download URL | django-redis_metrics-2.2.0.tar.gz |
|---|---|
| Size | 108.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b49edca476e9def3f4d363ed0da5747de11405e203a2928eaffc075d5bb8e55
|
|
BLAKE2b-256 checksum How to use checksums |
3d0e3ebf6098b652037d11baf42f16c51bd32577d9fd5ec147fc145c53a22f8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Release files / django_redis_metrics-2.2.0-py3-none-any.whl
| Download URL | django_redis_metrics-2.2.0-py3-none-any.whl |
|---|---|
| Size | 126.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6ff45555bd88f0295579847f30c94e00371990d288cf087723d59a23045733c
|
|
BLAKE2b-256 checksum How to use checksums |
cb51a9d30f3b98555c317253f798db76cb433b5623e86dbb0204eecd5a32bc3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|