Skip to main content

Track Usage, Log events from any python script into redis streams

Project description

Track your python file usage!

Python package to track the usage of any python script / generate events and send them to a redis stream.

Sample usage in your script

from redis_observer.logstream import logstream
import os

logstream(
    redis_host='redis-15205.c266.us-east-1-3.ec2.cloud.redislabs.com',
    redis_port=15205,
    redis_username='default',
    redis_password='omkarkonnur',
    appname='mycoolscript',
    maxlength=100,
    # Custom parameters
    filename=os.path.basename(__file__),
    email='omkar.konnur@redis.com'
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redis_observer-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redis_observer-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file redis_observer-0.0.1.tar.gz.

File metadata

  • Download URL: redis_observer-0.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for redis_observer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8031ee93a16da858aca7d2ffccf71c601d623cdff6b8df12571ea154295c5780
MD5 0f2dd1abc24180553611dc184f9f2f15
BLAKE2b-256 5b498eb3b664b6802feabeca189781f0bfd54eff29763a8a6a3e25dbebfd9565

See more details on using hashes here.

File details

Details for the file redis_observer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: redis_observer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for redis_observer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca2c0df92e70445baec9534fff905425e9a3b31db45c9dbfa49912127ec8a358
MD5 62629621f37d38a5cdd552f1630a071f
BLAKE2b-256 e4a3ed351dc48e1f7b303c29061d7b325b07e3b589e30cd7046af39ccafcebd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page