{ "info": { "author": "Alexander B\u00f6hm", "author_email": "alxndr.boehm@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Operating System :: Microsoft", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "# tsenum\n\nA timestamp generator.\n\n## commands\n\n```\nusage: tsenum.py [-h] [--utc] --offset OFFSET --count COUNT --step\n {day,week,hour,minute} --pattern PATTERN\n\nEnumerate timestamps from now with offset in different units.\n\noptional arguments:\n -h, --help show this help message and exit\n --utc, -u Current time is in UTC\n --offset OFFSET, -o OFFSET\n Offset to enumerate from\n --count COUNT, -c COUNT\n Count to enumerate\n --step {day,week,hour,minute}, -s {day,week,hour,minute}\n Step width\n --pattern PATTERN, -p PATTERN\n Date pattern to use (see Python's strftime in\n datetime)\n```\n## Usage (Module)\n\nCount 7 days back from yesterday.\n\n```\nfrom tsenum import enumerate_times\nfrom datetime import datetime\n\nenumerate_times(datetime.now(), -1, -7, 'day', '%Y-%m-%d')\n```\n\n## Usage (CLI)\n\nCount 7 days back from yesterday.\n\n```\ntsenum --offset -1 --count -7 --step day --pattern \"%Y-%m-%d: Hello world!\"\n2016-05-27: Hello world!\n2016-05-28: Hello world!\n2016-05-29: Hello world!\n2016-05-30: Hello world!\n2016-05-31: Hello world!\n2016-06-01: Hello world!\n2016-06-02: Hello world!\n```\n\nCount 3 weeks into future starting from now.\n\n```\ntsenum --offset 0 --count 3 --step day --pattern \"Week %V\"\nWeek 22\nWeek 22\nWeek 23\n```", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/aboehm/tsenum/archive/v1.0.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aboehm/tsenum", "keywords": "utils timestamp", "license": "", "maintainer": "", "maintainer_email": "", "name": "tsenum", "package_url": "https://pypi.org/project/tsenum/", "platform": "MacOS X,Linux,Windows", "project_url": "https://pypi.org/project/tsenum/", "project_urls": { "Download": "https://github.com/aboehm/tsenum/archive/v1.0.0.tar.gz", "Homepage": "https://github.com/aboehm/tsenum" }, "release_url": "https://pypi.org/project/tsenum/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Enumerate timestamps from now with offset in different units.", "version": "1.0.0" }, "last_serial": 2906392, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a9d18f389120db0a9c24bae32190ecb6", "sha256": "cc53aa422e3e93229cbbb7c813e5f4696acfad190655ce125f2ab58ff156beb3" }, "downloads": -1, "filename": "tsenum-0.1.tar.gz", "has_sig": false, "md5_digest": "a9d18f389120db0a9c24bae32190ecb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9575, "upload_time": "2017-05-29T10:18:06", "url": "https://files.pythonhosted.org/packages/fc/05/c0517c22b7a0582c416838183fce6692dd8931e45ec57725b4ff721cc80f/tsenum-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "3bccba8626f5537c996fa354a34f58df", "sha256": "c54ad085bd939a4eac4cc37a84adf21e4ffa745c61901325bbc551d04cc62a94" }, "downloads": -1, "filename": "tsenum-0.2.tar.gz", "has_sig": false, "md5_digest": "3bccba8626f5537c996fa354a34f58df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9599, "upload_time": "2017-05-29T10:25:50", "url": "https://files.pythonhosted.org/packages/c7/ac/1e42bddcb06c2e64f335837d0e139ed444b5d8c36874fe9abbc6dedae2f1/tsenum-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "59f051224ec47b930f38b01301f24dbb", "sha256": "4c66b798bc03dc51fe98f90574a8e4d912f1ad5feb47f3c15d0d235b5680ec86" }, "downloads": -1, "filename": "tsenum-0.2.1.tar.gz", "has_sig": false, "md5_digest": "59f051224ec47b930f38b01301f24dbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10229, "upload_time": "2017-05-29T10:36:03", "url": "https://files.pythonhosted.org/packages/b7/fd/8c647257097da758f458182a2e2b5ad603cf4e4802cbd6f4466de438b5ec/tsenum-0.2.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "48dc7943ed7054a6bc36d1ffaf9a111f", "sha256": "86a6da2d82256a7e4a97f0412d3fe6361ecab2be11171cfc817709a06a05926f" }, "downloads": -1, "filename": "tsenum-1.0.0.tar.gz", "has_sig": false, "md5_digest": "48dc7943ed7054a6bc36d1ffaf9a111f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10741, "upload_time": "2017-05-29T12:20:17", "url": "https://files.pythonhosted.org/packages/32/52/be4ecf0106bd73d817b3c64b56eaf34a56a9f0a00adc6bb966c53af5b5c4/tsenum-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48dc7943ed7054a6bc36d1ffaf9a111f", "sha256": "86a6da2d82256a7e4a97f0412d3fe6361ecab2be11171cfc817709a06a05926f" }, "downloads": -1, "filename": "tsenum-1.0.0.tar.gz", "has_sig": false, "md5_digest": "48dc7943ed7054a6bc36d1ffaf9a111f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10741, "upload_time": "2017-05-29T12:20:17", "url": "https://files.pythonhosted.org/packages/32/52/be4ecf0106bd73d817b3c64b56eaf34a56a9f0a00adc6bb966c53af5b5c4/tsenum-1.0.0.tar.gz" } ] }