{ "info": { "author": "David Marin", "author_email": "dave@yelp.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "dateglob\r\n========\r\n\r\n``dateglob`` converts a set of dates into a list of globs. For example:\r\n\r\n>>> import dateglob; from datetime import date, timedelta\r\n>>> # build list of dates from 2009-12-31 thru 2011-02-01\r\n>>> dates = [date(2009, 12, 31) + timedelta(i) for i in xrange(1+365+31+1)]\r\n>>> dateglob.strftime(dates, '%Y-%m-%d')\r\n['2009-12-31', '2010-*-*', '2011-01-*', '2011-02-01']\r\n\r\nThe original use case for this library was to generate compact command lines\r\nfor command that take daily log files as input, for example:\r\n\r\n>>> args += dateglob.strftime(dates, '/logs/foo/%Y/%m/%d/*.gz')\r\n\r\n``dateglob.strftime()`` handles all of the standard arguments to ``datetime.strftime()``. Currently, it only does something special with\r\nfull months, years, and full ten-day periods (we don't glob weeks).\r\n\r\n* source: \r\n* documentation: \r\n* datetime.strftime(): ", "description_content_type": null, "docs_url": "https://pythonhosted.org/dateglob/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/Yelp/dateglob", "keywords": "", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "dateglob", "package_url": "https://pypi.org/project/dateglob/", "platform": "", "project_url": "https://pypi.org/project/dateglob/", "project_urls": { "Homepage": "http://github.com/Yelp/dateglob" }, "release_url": "https://pypi.org/project/dateglob/0.2/", "requires_dist": null, "requires_python": null, "summary": "Convert a set of dates into a compact list of globs", "version": "0.2" }, "last_serial": 2118506, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "dfcbf0af177485f79ebe41d63523b867", "sha256": "364a2b5e76db1d82ae4d04b0b55658554991b24fd4039b8087e9053c519ff8ce" }, "downloads": -1, "filename": "dateglob-0.1.tar.gz", "has_sig": false, "md5_digest": "dfcbf0af177485f79ebe41d63523b867", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4053, "upload_time": "2011-06-14T19:45:52", "url": "https://files.pythonhosted.org/packages/1a/c8/dabd60ca61a2430205db2367f16119bd88935f1ce7d430a39c11e504ef85/dateglob-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "75b7b0e0aee528f54d765985d069189d", "sha256": "f56ab04c2de1f7bac07452860589fd03dc35e0b6fefab679750628d1575f88f2" }, "downloads": -1, "filename": "dateglob-0.2.zip", "has_sig": false, "md5_digest": "75b7b0e0aee528f54d765985d069189d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8264, "upload_time": "2016-05-16T18:24:00", "url": "https://files.pythonhosted.org/packages/67/2e/8b0f405eab42f51981f4a9bc8d87e240072285ce9567bb97af77f3e61913/dateglob-0.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75b7b0e0aee528f54d765985d069189d", "sha256": "f56ab04c2de1f7bac07452860589fd03dc35e0b6fefab679750628d1575f88f2" }, "downloads": -1, "filename": "dateglob-0.2.zip", "has_sig": false, "md5_digest": "75b7b0e0aee528f54d765985d069189d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8264, "upload_time": "2016-05-16T18:24:00", "url": "https://files.pythonhosted.org/packages/67/2e/8b0f405eab42f51981f4a9bc8d87e240072285ce9567bb97af77f3e61913/dateglob-0.2.zip" } ] }