Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.306.405 Times

Schedaddle 0.1.0

Company: David Davis
Date Added: July 19, 2013  |  Visits: 411

Schedaddle

Report Broken Link
Printer Friendly Version


Product Homepage
Download (40 downloads)



Schedaddle is a Python module for getting dates and times on scheduled intervals.<br /><br />For more information, see http://www.davisd.com/projects/python-schedaddle<br /><br />Typical Usage is as follows:<br /><br />#!/usr/bin/env python<br /><br />import schedaddle<br /><br />schedaddle.next((2010, 1, 31), 'monthly')<br /><br />API<br /><br />The entire Schedaddle api consists of one dictionary, two date functions, and two generator functions.<br /><br />Dictionary<br /><br />A dictionary, KNOWN_INTERVALS is exposed by the Schedaddle API. This dictionary consists of string keys representing known interval names with values as tuples in (year, month, day, hour, minute, second, microsecond) format.<br /><br />Date Functions<br /><br />The Schedaddle API exposes two date functions<br /><br />next<br /><br />Get the next date/time tuple on a schedule.<br /><br />Keyword arguments:<br /><br /> start_date -- the date that the schedule began/begins<br /><br /> interval -- can be a string or a tuple.<br /><br /> If a string - valid values are defined in KNOWN_INTERVALS<br /><br /> If a tuple - (year, month, day, hour, minute, second, microsecond)<br /><br /> latest -- the most recent date that the schedule ran (optional, if not provided, start_date will be treated as the latest)<br /><br />Returns a 7 value tuple (year, month, day, hour, minute, second, microsecond)<br /><br />Example:<br /><br /> >>> import schedaddle<br /> >>> schedaddle.next((2010, 1, 31), 'monthly')<br /> (2010, 2, 28, 0, 0, 0, 0)<br /><br /> >>> import schedaddle<br /> >>> schedaddle.next((2010, 1, 31), 'monthly', latest=(2010, 3, 15))<br /> (2010, 3, 31, 0, 0, 0, 0)<br /><br />next_m<br /><br />Get the next identifiable date/time tuple resulting from an iterable of schedules.<br /><br />Keyword arguments:<br /><br /> schedules -- an iterable of schedules<br /> a single schedule is a three value tuple consisting of (identifier, start_date, interval)<br /><br /> latest -- the most recent date that the schedule ran (optional, if not provided, start_date will be treated as the latest for each schedule)<br /><br />Returns a two value tuple consisting of the identifier of the matching schedule, and the 7 value date/time tuple. (identifier, (year, month, day, hour, minute, second, microsecond))<br /><br />Example:<br /><br /> >>> import schedaddle<br /> >>> schedaddle.next_m([<br /> ... ('first', (2010, 1, 31), 'monthly'),<br /> ... ('second', (2010, 1, 31), 'weekly')])<br /> ('second', (2010, 2, 7, 0, 0, 0, 0))<br /><br /> >>> import schedaddle<br /> >>> schedaddle.next_m([<br /> ... ('first', (2010, 1, 31), (0, 1, 0, 0, 0, 0, 0)),<br /> ... ('second', (2010, 1, 31, 12, 30), 'weekly')],<br /> ... latest=(2010, 2, 21))<br /> ('first', (2010, 2, 28, 0, 0, 0, 0))<br /><br />Generators<br /><br />The Schedaddle API exposes two generator functions<br /><br />upcoming<br /><br />Get a generator that produces upcoming date/time tuples on a schedule.<br /><br />Keyword arguments:<br /><br /> start_date -- the date that the schedule begain/begins<br /><br /> interval -- can be a string or a tuple.<br /><br /> If a string - valid values are defined in KNOWN_INTERVALS<br /><br /> If a tuple - (year, month, day, hour, minute, second, microsecond)<br /><br /> latest -- the most recent date that the schedule ran (optional, if not provided, start_date will be treated as the latest)<br /><br /> end_date -- the last possible date in the generator (optional)<br /><br /> max_dates -- the maximum number of dates the generator should return (optional)<br /><br />Returns a generator that yields 7 value date/time tuples (year, month, day, hour, minute, second, microsecond)<br /><br />Notes:<br /> If end_date or max_dates is not provided, there will be no end to the amount of dates generated, and so it should then not be used in scenarios requiring a finite number of results, such as list comprehention.<br /><br />Example:<br /><br /> >>> import schedaddle<br /> >>> g = schedaddle.upcoming((2010, 1, 31, 12, 15), 'weekly', max_dates=3)<br /> >>> l = [s for s in g]<br /> >>> l<br /> [(2010, 2, 7, 12, 15, 0, 0), (2010, 2, 14, 12, 15, 0, 0), (2010, 2, 21, 12, 15, 0, 0)]<br /><br />upcoming_m<br /><br />Get a generator that produces upcoming, identifiable date/time tuples resulting from an iterable of schedules.<br /><br />Generate upcoming dates from an iterable of schedules.<br /><br />Keyword arguments:<br /><br /> schedules -- an iterable of schedules<br /> a single schedule is a tuple consisting of (identifier, start_date, interval)<br /><br /> latest -- the most recent date that the schedule ran (optional, if not provided, start_date will be treated as the latest for each schedule)<br /><br /> end_date -- the last possible date in the generator (optional)<br /><br /> max_dates -- the maximum number of dates the generator should return (optional)<br /><br />Returns a generator that yields two value date/time tuples consisting of the identifier of the matching schedule and the 7 value date/time tuple. (identifier, (year, month, day, hour, minute, second, microsecond))<br /><br />Notes:<br /> If end_date or max_dates is not provided, there will be no end to the amount of dates generated, and so it should then not be used in scenarios requiring a finite number of results, such as list comprehention.<br /><br />Example:<br /><br /> >>> import schedaddle<br /> >>> schedule1 = ('first', (2010, 1, 5), 'weekly')<br /> >>> schedule2 = ('second', (2007, 12, 31), 'monthly')<br /> >>> g = schedaddle.upcoming_m(<br /> ... (schedule1, schedule2),<br /> ... latest=(2010, 1, 12))<br /> >>> g.next()<br /> ('first', (2010, 1, 19, 0, 0, 0, 0))<br /> >>> g.next()<br /> ('first', (2010, 1, 26, 0, 0, 0, 0))<br /> >>> g.next()<br /> ('second', (2010, 1, 31, 0, 0, 0, 0))<br /><br />Notes<br /><br />Arguments<br /><br />When a date is accepted as an argument in a function, you may use a date or datetime object, or a tuple consisting of one to seven number values (year, month, day, hour, minute, second, microsecond). If using tuple and values are not provided for each of the places (eg, no second or microsecond as in (2010, 1, 31, 12, 30)), Schedaddle will fill in the blanks either with zeros or with the maximum value to end the day, whichever makes sense for the argument's context.<br /><br />When an interval is accepted as an argument in a function, you may use a string representing a known interval defined in the KNOWN_INTERVALS dictionary, OR you may represent an interval as a seven value tuple (years, months, days, hours, minutes, seconds, microseconds).<br /><br />Return Values<br /><br />The functions next and upcoming return and yield a tuple consisting of seven values (year, month, day, hour, minute, second, microsecond).<br /><br />The functions next_m and upcoming_m return and yield a tuple consisting of two values. The first value is the identifier that was passed as part of the schedule which was matched. The second is a tuple consisting of seven values (year, month, day, hour, minute, second, microsecond).

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Amount Finite Generated Notes Requiring Return Scenarios Upcoming Yields
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


SCHEDADDLE RELATED
Modules  -  Qivva Paypal Advanced Donation module 1.1
Qivva Paypal Advanced Donation module version 1.1 for Joomla 1.5.xFeatures:* Input box for entering an amount* Minimum amount* Currency Selector* Selectable Logo or Text or None* Pre and Post text - whatever you want including html* Settable...
10 KB  
Content Management  -  Kentico CMS 3.1a 1.0
It can be used to set up community and corporate web sites or on-line stores. Key features "Kentico CMS": - Easy-to-use editor - Blogs - Workflow - Forums - International Support - E-commerce - Advanced Security - Event Calendar and Booking...
 
Password Managers  -  Atory Password Generator 1.0
Atory Password Generator is a tool for random password generation. Atory Password Generator prepare random words of required type and allow to copy them to Window clipboard. Atory Password Generator allows you to create random passwords that...
533 KB  
Libraries  -  SNMP::BridgeQuery 0.61
BridgeQuery is a Perl extension for retrieving bridge tables. SYNOPSIS use SNMP::BridgeQuery; use SNMP::BridgeQuery qw(querymacs queryports queryat); $fdb = queryfdb(host => $address, comm => $community); unless (exists $fdb->{error}) {...
11.26 KB  
Business  -  Sticky Royale 1.0
Sticky Royale is a sticky note program written in Java. Sticky Royale allows users to create a helpful amount of sticky notes for their desktop to help with remembering tasks that must be done during the day. Why? ...because lists mean happiness.
468.74 KB  
Miscellaneous  -  Importing a dynamically generated module 1.0
This script will let you import a module from code that is dynamically generated. Code is the object containing the code (a string, a file handle or an actual compiled code object, same types as accepted by an exec statement). The name is the...
 
Networking  -  Simple Upcoming Events 1.1.1
Displays a list of posts for upcoming events. Event dates are specifed as "date" Custom Field. Depends on NO external services like Google Calendar.Installation: 1. Upload simple-upcoming-events.php to the /wp-content/plugins/ directory. 2....
10 KB  
Business  -  Freebie Notes 3.53
Freebie Notes is a easy to use reminder for Windows. With Freebie Notes you can create notes displaying on your desktop. Your notes can be displayed immediately after creation or in the certain moments of time. You can create notes of custom sizes...
2.3 MB  
Alarms & Reminders  -  Two Notes 1.67
Two Notes is a handy and easy to use desktop sticky notes program for home and office. It has user-friendly interface. Stick notes on your computer desktop as a visual reminder. The notes stick to the desktop and doesn't prevent your working....
224.97 KB  
Utilities  -  Simple Sticky Notes 1.1
It's a simple, easy-to-use, absolutely free, fast and efficient taking notes software. Simple Sticky Notes is 100% safe and ads free. Features; -Full unicode support -RichText support -Colourful and Transparent notes -Printable -Snap...
780.33 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB