{ "info": { "author": "Matsumoto Taichi, kiorky", "author_email": "taichino@gmail.com, kiorky@cryptelium.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\n.. contents::\n\n\ncroniter provides iteration for datetime object with cron like format.\n\n::\n\n _ _\n ___ _ __ ___ _ __ (_) |_ ___ _ __\n / __| '__/ _ \\| '_ \\| | __/ _ \\ '__|\n | (__| | | (_) | | | | | || __/ |\n \\___|_| \\___/|_| |_|_|\\__\\___|_|\n\n\nWebsite: https://github.com/kiorky/croniter\n\nTravis badge\n=============\n.. image:: https://travis-ci.org/kiorky/croniter.png\n :target: http://travis-ci.org/kiorky/croniter\n\nUsage\n============\n\nSimple example of usage is followings::\n\n >>> from croniter import croniter\n >>> from datetime import datetime\n >>> base = datetime(2010, 1, 25, 4, 46)\n >>> iter = croniter('*/5 * * * *', base) # every 5 minites\n >>> print iter.get_next(datetime) # 2010-01-25 04:50:00\n >>> print iter.get_next(datetime) # 2010-01-25 04:55:00\n >>> print iter.get_next(datetime) # 2010-01-25 05:00:00\n >>>\n >>> iter = croniter('2 4 * * mon,fri', base) # 04:02 on every Monday and Friday\n >>> print iter.get_next(datetime) # 2010-01-26 04:02:00\n >>> print iter.get_next(datetime) # 2010-01-30 04:02:00\n >>> print iter.get_next(datetime) # 2010-02-02 04:02:00\n\nAll you need to know is constructor and get_next, these signature are following::\n\n >>> def __init__(self, cron_format, start_time=time.time())\n\ncroniter iterate along with 'cron_format' from 'start_time'.\ncron_format is 'min hour day month day_of_week', and please refer to\nhttp://en.wikipedia.org/wiki/Cron for details.::\n\n >>> def get_next(self, ret_type=float)\n\nget_next return next time in iteration with 'ret_type'.\nAnd ret_type accept only 'float' or 'datetime'.\n\nNow, supported get_prev method. (>= 0.2.0)::\n\n >>> base = datetime(2010, 8, 25)\n >>> itr = croniter('0 0 1 * *', base)\n >>> print itr.get_prev(datetime) # 2010-08-01 00:00:00\n >>> print itr.get_prev(datetime) # 2010-07-01 00:00:00\n >>> print itr.get_prev(datetime) # 2010-06-01 00:00:00\n\n\nDevelop this package\n====================\n\n::\n\n git clone https://github.com/kiorky/croniter.git\n cd croniter\n python bootstrap.py -d\n bin/buildout -vvvvvvN\n bin/test\n\n\nMake a new release\n====================\nWe use zest.fullreleaser, a great releaser infrastructure.\n\nDo and follow the instructions\n::\n\n bin/fullrelease\n\n\nContributors\n===============\nThank you to all who have contributed to this project!\nIf you contributed and not listed below please let me know.\n\n - mrmachine\n - Hinnack\n - shazow\n - kiorky\n - jlsandell\n - mag009\n - djmitche\n - GreatCombinator\n - chris-baynes\n - ipartola\n - yuzawa-san\n\n\n\nChangelog\n==============\n\n0.3.12 (unreleased)\n-------------------\n\n- Nothing changed yet.\n\n\n0.3.11 (2016-01-13)\n-------------------\n\n- Bug fix: The get_prev API crashed when last day of month token was used. Some\n essential logic was missing.\n [Iddo Aviram ]\n\n\n0.3.10 (2015-11-29)\n-------------------\n\n- The fuctionality of 'l' as day of month was broken, since the month variable\n was not properly updated\n [Iddo Aviram ]\n\n0.3.9 (2015-11-19)\n------------------\n\n- Don't use datetime functions python 2.6 doesn't support\n [petervtzand]\n\n0.3.8 (2015-06-23)\n------------------\n- Truncate microseconds by setting to 0\n [Corey Wright]\n\n\n0.3.7 (2015-06-01)\n------------------\n\n- converting sun in range sun-thu transforms to int 0 which is\n recognized as empty string; the solution was to convert sun to string \"0\"\n\n0.3.6 (2015-05-29)\n------------------\n\n- Fix default behavior when no start_time given\n Default value for `start_time` parameter is calculated at module init time rather than call time.\n- Fix timezone support and stop depending on the system time zone\n\n\n\n0.3.5 (2014-08-01)\n------------------\n\n- support for 'l' (last day of month)\n\n\n0.3.4 (2014-01-30)\n------------------\n\n- Python 3 compat\n- QA Relase\n\n\n0.3.3 (2012-09-29)\n------------------\n- proper packaging", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/kiorky/croniter", "keywords": "datetime,iterator,cron", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "croniter-hpx", "package_url": "https://pypi.org/project/croniter-hpx/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/croniter-hpx/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/kiorky/croniter" }, "release_url": "https://pypi.org/project/croniter-hpx/0.3.12.dev0/", "requires_dist": null, "requires_python": null, "summary": "croniter provides iteration for datetime object with cron like format", "version": "0.3.12.dev0" }, "last_serial": 1982957, "releases": { "0.3.12.dev0": [ { "comment_text": "", "digests": { "md5": "cd7fc59a1149cc3679e29df7f6f0a7fa", "sha256": "4d9780e0e94779f8897e2ae33781f3cda50a6cb47e3dc1ed1a2e9ab517a3ed36" }, "downloads": -1, "filename": "croniter-hpx-0.3.12.dev0.tar.gz", "has_sig": false, "md5_digest": "cd7fc59a1149cc3679e29df7f6f0a7fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14055, "upload_time": "2016-02-29T22:37:00", "url": "https://files.pythonhosted.org/packages/eb/98/d22b1b808b5c855025ee18d79de7e99b5d0436ab23826b134e48cded5cbf/croniter-hpx-0.3.12.dev0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd7fc59a1149cc3679e29df7f6f0a7fa", "sha256": "4d9780e0e94779f8897e2ae33781f3cda50a6cb47e3dc1ed1a2e9ab517a3ed36" }, "downloads": -1, "filename": "croniter-hpx-0.3.12.dev0.tar.gz", "has_sig": false, "md5_digest": "cd7fc59a1149cc3679e29df7f6f0a7fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14055, "upload_time": "2016-02-29T22:37:00", "url": "https://files.pythonhosted.org/packages/eb/98/d22b1b808b5c855025ee18d79de7e99b5d0436ab23826b134e48cded5cbf/croniter-hpx-0.3.12.dev0.tar.gz" } ] }