A tiny library for tracking and retrieving number of events occurred during specified interval of time. Not thread-safe
from metrix import Metrix
client = Metrix(ttl=300)
for i in range(1000):
client.increment(metric_name="some_metric_name")
client.sum(metric_name="some_metric_name", interval=10)
To install all the required dependencies via poetry:
$ make install
To run formatting and tests use command below:
$ make fmt && make test