{ "info": { "author": "Stephen Moore", "author_email": "stephen@delfick.com", "bugtrack_url": null, "classifiers": [], "description": "TimePiece\n=========\n\nA DSL to assist with writing specifications describing intervals and durations\nof time with filters.\n\n.. image:: https://travis-ci.org/delfick/timepiece.png?branch=master\n :target: https://travis-ci.org/delfick/timepiece\n\nWhy the name?\n-------------\n\nBecause time_spec was uninspiring and a good friend suggested `timepiece`.\n\nNaming things is difficult!\n\nBut why?\n--------\n\nBecause I wanted to represent when scheduled actions should take place and I\nwas starting to have too many columns in my database representing everything I\nwanted to be able to do.\n\nInstallation\n------------\n\nUse pip!:\n\n.. code-block:: bash\n\n pip install timepiece\n\nOr if you're developing it:\n\n.. code-block:: bash\n\n pip install -e .\n pip install -e \".[tests]\"\n\nUsage\n-----\n\nJust create the timepiece and give it a specification!\n\n.. code-block:: python\n\n from timepiece.spec import make_timepiece\n\n from datetime import datetime\n\n timepiece = make_timepiece()\n\n obj = timepiece.time_spec_to_object(\"between(start: now()) & interval(every: amount(num:1 size: hour))\")\n\n print(\"Next time is: \", obj.following(datetime.utcnow()))\n\nSee The docs at https://timepiece.readthedocs.io for more information!\n\nTests\n-----\n\nTo run the tests in this project, just use the helpful script:\n\n.. code-block:: bash\n\n ./test.sh\n\nOr run tox:\n\n.. code-block:: bash\n\n tox\n\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://timepiece.readthedocs.io", "keywords": "scheduling time specification", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "timepiece", "package_url": "https://pypi.org/project/timepiece/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/timepiece/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://timepiece.readthedocs.io" }, "release_url": "https://pypi.org/project/timepiece/0.2.6/", "requires_dist": null, "requires_python": null, "summary": "Thin DSL for creating time scheduling specifications", "version": "0.2.6" }, "last_serial": 2889889, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5ea11fe8a4bf9b47d5ab1e3b74878050", "sha256": "2683f27b4506f63462e489f0d05b92676758a826ec7aef8effcb292538dc12d5" }, "downloads": -1, "filename": "timepiece-0.1.tar.gz", "has_sig": false, "md5_digest": "5ea11fe8a4bf9b47d5ab1e3b74878050", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7032, "upload_time": "2016-09-11T03:07:08", "url": "https://files.pythonhosted.org/packages/b9/9a/eb63d77bede70a8d2df86004b42226556ff1085492d42ce74823d7216570/timepiece-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e77ac2559d207f0803fff0fb37d315e1", "sha256": "fba275a83989810bcdadc489e69fa2b1f8788f96858dc2a37101121f1203d795" }, "downloads": -1, "filename": "timepiece-0.2.tar.gz", "has_sig": false, "md5_digest": "e77ac2559d207f0803fff0fb37d315e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9783, "upload_time": "2016-09-21T01:30:42", "url": "https://files.pythonhosted.org/packages/54/a4/640b52b999cb8bf1ccbca5b7c671e11fa990e16da5a2e445e6fa6c837e83/timepiece-0.2.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "fec273d116fdfae37de7b08c4c0da254", "sha256": "bbd8663ffbd93450c9b1b5495fb12f8cc1df3a7b0184d2e76cd546d462feda5e" }, "downloads": -1, "filename": "timepiece-0.2.5.tar.gz", "has_sig": false, "md5_digest": "fec273d116fdfae37de7b08c4c0da254", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9933, "upload_time": "2016-09-21T04:15:30", "url": "https://files.pythonhosted.org/packages/9d/6b/2c4905dde9b0502f835509e3fb2243bf67740de886bb140d4c6e09d24a8b/timepiece-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "5c74433086648b29094cb5655005b971", "sha256": "d189157d7af916945278564a3f5c51c5081ab20877c0faffda58af003d52dd08" }, "downloads": -1, "filename": "timepiece-0.2.6.tar.gz", "has_sig": false, "md5_digest": "5c74433086648b29094cb5655005b971", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9948, "upload_time": "2017-05-22T04:11:41", "url": "https://files.pythonhosted.org/packages/6b/17/7a16c9268bba13faaaf946cc375b9f6d5776bff661632e9450969f737527/timepiece-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5c74433086648b29094cb5655005b971", "sha256": "d189157d7af916945278564a3f5c51c5081ab20877c0faffda58af003d52dd08" }, "downloads": -1, "filename": "timepiece-0.2.6.tar.gz", "has_sig": false, "md5_digest": "5c74433086648b29094cb5655005b971", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9948, "upload_time": "2017-05-22T04:11:41", "url": "https://files.pythonhosted.org/packages/6b/17/7a16c9268bba13faaaf946cc375b9f6d5776bff661632e9450969f737527/timepiece-0.2.6.tar.gz" } ] }