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

hiatus

Hiatus is a python library that uses the threading module’s “Timer” to implement analogues to javascript’s setTimeout/clearTimeout and setInterval/clearInterval.

These functions may be used as decorators. Also important is that the python analogues take time arguments in seconds, not milliseconds, in order to be consistent with the standard library.

A Caveat:

Much of python does not “play nice” with threading. You have been warned.

(I looked into a signal-based approach, but this is limited. Another approach would be to depend on an event loop, such as twisted.reactor.)

Examples:

>>> from hiatus import set_interval
>>> @set_interval(1.00)
... def dave_grohl():
...     print "THE BEST"
...
>>> THE BEST
THE BEST
THE BEST
THE BEST
THE BEST
>>> def note():
...     print "HUGE SUCCESS"...
>>> hiatus.set_timeout(lambda: hiatus.clear_interval(glados), 6.0)
<hiatus.set_timeout object at 0xb770468c>
>>> glados = hiatus.set_interval(note, 1.000)
>>> HUGE SUCCESS
HUGE SUCCESS
HUGE SUCCESS
HUGE SUCCESS
Release History

Release History

0.0.1

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
hiatus-0.0.1.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source Jul 18, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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