{ "info": { "author": "Rustam Gilyazov", "author_email": "gilyazov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": ".. image:: https://img.shields.io/aur/license/yaourt.svg\n :target: https://opensource.org/licenses/GPL-3.0\n :alt: License\n\n==========\nDate Magic\n==========\n\n``datemagic`` module provides convenience function for operating with dates and\ntime types.\n\nInstall the module the usual way using ``pip`` to start using it.\n\nExample\n-------\n\nSplitting year in 30-day chunks\n\n.. code:: python\n\n >>> import datetime\n >>> import datemagic\n >>> datemagic.split_interval(datetime.date(2016,1,1),\n ... datetime.date(2016,12,31))\n [(datetime.date(2016, 1, 1), datetime.date(2016, 1, 30)),\n (datetime.date(2016, 1, 31), datetime.date(2016, 2, 29)),\n (datetime.date(2016, 3, 1), datetime.date(2016, 3, 30)),\n (datetime.date(2016, 3, 31), datetime.date(2016, 4, 29)),\n (datetime.date(2016, 4, 30), datetime.date(2016, 5, 29)),\n (datetime.date(2016, 5, 30), datetime.date(2016, 6, 28)),\n (datetime.date(2016, 6, 29), datetime.date(2016, 7, 28)),\n (datetime.date(2016, 7, 29), datetime.date(2016, 8, 27)),\n (datetime.date(2016, 8, 28), datetime.date(2016, 9, 26)),\n (datetime.date(2016, 9, 27), datetime.date(2016, 10, 26)),\n (datetime.date(2016, 10, 27), datetime.date(2016, 11, 25)),\n (datetime.date(2016, 11, 26), datetime.date(2016, 12, 25)),\n (datetime.date(2016, 12, 26), datetime.date(2016, 12, 31))]\n\nDefault chunk size is 30 days.\n\nFor detailed description see the Python docstrings in the code.", "description_content_type": null, "docs_url": "https://pythonhosted.org/datemagic/", "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rusq/datemagic", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "datemagic", "package_url": "https://pypi.org/project/datemagic/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/datemagic/", "project_urls": { "Homepage": "https://github.com/rusq/datemagic" }, "release_url": "https://pypi.org/project/datemagic/0.1/", "requires_dist": null, "requires_python": null, "summary": "Convenience functions to work with dates", "version": "0.1" }, "last_serial": 2624538, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f737b4b7701d5f6e7b8d328f5747be30", "sha256": "52b0937657626c60746d514c04d7162c4a308300183f72ca14c1a22b95ad0ad7" }, "downloads": -1, "filename": "datemagic-0.1.tar.gz", "has_sig": false, "md5_digest": "f737b4b7701d5f6e7b8d328f5747be30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 447322, "upload_time": "2017-02-07T08:35:59", "url": "https://files.pythonhosted.org/packages/05/90/b857aa24bedc080372677db3b493df00facf2552e3feaf6ea1303b0cee95/datemagic-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f737b4b7701d5f6e7b8d328f5747be30", "sha256": "52b0937657626c60746d514c04d7162c4a308300183f72ca14c1a22b95ad0ad7" }, "downloads": -1, "filename": "datemagic-0.1.tar.gz", "has_sig": false, "md5_digest": "f737b4b7701d5f6e7b8d328f5747be30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 447322, "upload_time": "2017-02-07T08:35:59", "url": "https://files.pythonhosted.org/packages/05/90/b857aa24bedc080372677db3b493df00facf2552e3feaf6ea1303b0cee95/datemagic-0.1.tar.gz" } ] }