This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

# redis-gadgets

This is a collection of helper tools built on top of redis.

# Note On Testing

Most of the code here is a thin wrapper over a few redis calls. Testing it without connecting to redis is pretty useless, as such. To that end, the tests make (default) redis connections to pass into the barious tools. These tests are destructive. If you’re running the tests, either override the redis connection or run it on a machine where you don’t mind clobbering a redis db.

Pull requests with a better way to do this are welcome.

# Unique tracker

This tool uses redis bit sets to track unique events per day. The tool maps between arbitrary string ids and bit offsets, within a namespace (i.e. a given id-namespace pair maps to a unique bit offset). This allows for a relatively compact offset space while still enabling tracking of multiple things, e.g. unique users viewing pages and unique pages viewed. There is a default namespace ‘global’ if you don’t need this feature.

Events are tracked on day granularity, so the same id-event pairing will only be counted once per day. Counts can then be prodouced for arbitrary date ranges, using bitwise logical operators. These rollups are cached with a redis expiration timer.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
redis_gadgets-0.1.4-py2-none-any.whl (5.6 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jul 2, 2015
redis_gadgets-0.1.4.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Jul 2, 2015
redis_gadgets-0.1.7-py2-none-any.whl (5.9 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Jul 7, 2015
redis_gadgets-0.1.7.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Jul 7, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting