Permalink
Browse files

Initial commit

  • Loading branch information...
jgorset committed Dec 16, 2011
0 parents commit 1bea44f43dd37bc419f00a84fb96d6c34a9f9f41
Showing with 78 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +3 −0 CHANGELOG
  3. +21 −0 LICENSE
  4. +35 −0 README.md
  5. +1 −0 kronos/version.py
  6. +15 −0 setup.py
@@ -0,0 +1,3 @@
+build
+*.pyc
+dist
@@ -0,0 +1,3 @@
+0.0.0
+
+* Everything
21 LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2012 Johannes Gorset
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
@@ -0,0 +1,35 @@
+# Kronos
+
+## About
+
+Kronos is a Django application that makes it easy to define and schedule tasks with *cron*.
+
+## Usage
+
+### Define tasks
+
+Kronos collects tasks from `cron` modules in each of your applications:
+
+ # cookies/cron.py
+
+ import cron
+
+ # Register a task and schedule it with a timedelta-compatible format
+ @cron.register(minutes=15)
+ def complain():
+ complaints = [
+ "I forgot to migrate our applications's cron jobs to our new server! Darn!",
+ "I'm out of complaints! Damnit!"
+ ]
+
+ print random.choice(complaints)
+
+ # Register a task with cron's native scheduling format
+ @cron.register('0 0 * * *')
+ def praise():
+ print "Kronos makes it really easy to define and schedule recurring tasks!"
+
+
+### Register tasks with cron
+
+ $ django cron install
@@ -0,0 +1 @@
+__version__ = '0.0.0'
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+from setuptools import setup
+
+from kronos.version import __version__
+
+setup(
+ name = 'kronos',
+ version = __version__,
+ description = ''
+ author = 'Johannes Gorset',
+ author_email = 'jgorset@gmail.com',
+ url = '',
+ packages = ['libraryname']
+)

0 comments on commit 1bea44f

Please sign in to comment.