Code Monkey home page Code Monkey logo

resched's Introduction

ReSched - super simple Redis scheduling in Python

Resched is a minimal library for working with durable Queues and Schedules on Redis.

Queues: Resched has a Queue class that, by default, has a 2-stage pop. This means that when you pop something off the top of the queue, it's kept in another queue until you say you're done with it for real.

Schedulers: Schedulers let you solve the problem of having an event take place at a set time in the future. A Scheduler functions essentially like a Queue, but inserted items get a timestamp after which they become "due", and a pop operation will only return non-None when the first item's due date is in the past. This is accomplished using Redis's Sorted Set data structure, and as such is a constant time operation. It also uses the 2-phased pop convention that the Resched Queue does.

ContentType: a really simple way to store data of various types in a Resched collection: including JSON, ints, longs, etc. All casting/ parsing/ etc. is handled within Resched, so you can just throw dicts at it without having to think too much.

Built in NYC by the folks at GameChanger, in particular kiril ([email protected] / http://github.com/kiril).

resched's People

Contributors

kiril avatar dwoos avatar

Watchers

Tobias Munter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.