A simple Python package for logging metrics.
Project description
django-watchlog
A python client for watchlog server .
pip install django-watchlog
## Usage
```python
from django_watchlog import Watchlog
# Create a single instance of Watchlog
watchlog_instance = Watchlog()
# Increment a metric
watchlog_instance.increment('page_views', 10)
# Decrement a metric
watchlog_instance.decrement('items_in_cart', 2)
# Set a gauge metric
watchlog_instance.gauge('current_temperature', 22.5)
# Set a percentage metric
watchlog_instance.percentage('completion_rate', 85)
# Log a system byte metric
watchlog_instance.systembyte('memory_usage', 1024)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
watchlog_python-0.1.0.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file watchlog_python-0.1.0.tar.gz.
File metadata
- Download URL: watchlog_python-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94a08ccd6bf53f1796d2aa92619f0b88263fb74dc058f945f83e8c0307256238
|
|
| MD5 |
6153335e45ee24256e179ee6a0da1a44
|
|
| BLAKE2b-256 |
0f55abbd9985b840612b9ea55a7dcdf04909f8bd12e18f65111fd686e5cb39c5
|
File details
Details for the file watchlog_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: watchlog_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5d2f62f035133b64667edad3607d94b428fedc3e8693fc53c345761bc96d2f8
|
|
| MD5 |
7018fa68c5221296dd55edb1ba161d61
|
|
| BLAKE2b-256 |
4fb6fe5ec66abb760f8633b55c5bb4e544e873db2ae09d349947f1b5015c515a
|