{ "info": { "author": "Anish Walawalkar", "author_email": "anish.sanjiv@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "========\nweekdays\n========\n\n|pypi|_\n|build status|_\n|pypi downloads|_\n|MIT License|_\n\n\nA python module that provides methods to work with weekdays\n\nInstallation\n============\n\n.. code-block:: bash\n\n $ pip install pyweekdays\n\nManual Installation\n===================\n\n.. code-block:: bash\n\n $ git clone https://github.com/AnishWalawalkar/weekdays.git\n $ cd weekdays/\n $ python setup.py install\n\nExamples\n========\n\n.. code-block:: python\n\n import time\n from datetime import datetime\n from weekdays import weekdays\n\n date = datetime(2016, 2, 10)\n\n # convert time object to datetime object to work with weekdays module\n weekdays.time_to_datetime(time_struct=time.gmtime()) # datetime.datetime(2016, 2, 22, 16, 42, 9)\n weekdays.time_to_datetime(time_struct=time.localtime()) # datetime.datetime(2016, 2, 22, 11, 42, 39)\n weekdays.time_to_datetime(time_in_seconds=time.time()) # datetime.datetime(2016, 2, 22, 11, 43, 14, 760845)\n\n weekdays.is_weekday(date) # True\n\n weekdays.next_weekday(date, num_days=2) # datetime.datetime(2016, 2, 12, 0, 0)\n weekdays.prev_weekday(date, num_days=2) # datetime.datetime(2016, 2, 8, 0, 0)\n\n weekdays.weekdays_until(datetime(2016,2,10), datetime(2016,2,28)) # 12.0\n weekdays.weekdays_passed(datetime(2016,2,28), datetime(2016,2,10)) # 12.0\n\n date_range = (datetime(2016, 2, 1), datetime(2016, 2, 15))\n\n for date in weekdays.date_range(*date_range):\n print(date)\n # 2016-02-01 00:00:00\n # 2016-02-02 00:00:00\n # 2016-02-03 00:00:00\n # 2016-02-04 00:00:00\n # 2016-02-05 00:00:00\n # 2016-02-08 00:00:00\n # 2016-02-09 00:00:00\n # 2016-02-10 00:00:00\n # 2016-02-11 00:00:00\n # 2016-02-12 00:00:00\n\n\n.. |build status| image:: https://travis-ci.org/AnishWalawalkar/weekdays.svg?branch=master\n.. _build status: https://travis-ci.org/AnishWalawalkar/weekdays\n.. |pypi| image:: https://img.shields.io/pypi/v/pyweekdays.svg\n.. _pypi: https://pypi.python.org/pypi/pyweekdays\n.. |MIT License| image:: https://img.shields.io/badge/license-MIT-blue.svg\n.. _MIT License: https://en.wikipedia.org/wiki/MIT_License\n.. |pypi downloads| image:: https://img.shields.io/pypi/dm/pyweekdays.svg\n.. _pypi downloads: https://pypi.python.org/pypi/pyweekdays\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AnishWalawalkar/weekdays.git", "keywords": "time datetime weekdays", "license": "https://opensource.org/licenses/MIT", "maintainer": null, "maintainer_email": null, "name": "pyweekdays", "package_url": "https://pypi.org/project/pyweekdays/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyweekdays/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/AnishWalawalkar/weekdays.git" }, "release_url": "https://pypi.org/project/pyweekdays/0.1.5/", "requires_dist": null, "requires_python": null, "summary": "a module to work with weekdays", "version": "0.1.5" }, "last_serial": 2004774, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9f510b0a00992878096e69875e2e368e", "sha256": "37c4e46a1496889e144493fb6617782be20974972a272dd0472f5283a47c6f9b" }, "downloads": -1, "filename": "pyweekdays-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9f510b0a00992878096e69875e2e368e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1939, "upload_time": "2016-02-12T04:09:44", "url": "https://files.pythonhosted.org/packages/10/fa/b8df3a1341b26677985a0f7a4d9f83085a406565feaf9ba32adf165994d6/pyweekdays-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7ed288b861f02c2775b8dd41bad65ddb", "sha256": "564b13de11b0c718087a615bf265187d5bf2b1d3c14abf6865fab6f6e6ee65fc" }, "downloads": -1, "filename": "pyweekdays-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7ed288b861f02c2775b8dd41bad65ddb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1990, "upload_time": "2016-02-12T04:27:34", "url": "https://files.pythonhosted.org/packages/e0/15/0405bc83fe920d6c66d37adc65a1b274ef71294ff3180add578b29b8aa6f/pyweekdays-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "796e5a2766826bbb954ea1cadf3d144a", "sha256": "4eff864895245eec51248a97624ecf7b79cda3a4f23dd768d128768c2f2d89ae" }, "downloads": -1, "filename": "pyweekdays-0.1.2.tar.gz", "has_sig": false, "md5_digest": "796e5a2766826bbb954ea1cadf3d144a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2283, "upload_time": "2016-02-22T17:08:17", "url": "https://files.pythonhosted.org/packages/92/31/824ba94bd7e7f68c6ccb6a04622d47fced33f4a5857a752f65517f1d7824/pyweekdays-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "0391d433b24b9911f3cd0f625dce3559", "sha256": "766c3e234ddb62d1b2e1c541dc26169b8f41521649b492fb21cead05fcd02c65" }, "downloads": -1, "filename": "pyweekdays-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0391d433b24b9911f3cd0f625dce3559", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2327, "upload_time": "2016-02-24T16:44:47", "url": "https://files.pythonhosted.org/packages/fd/91/321ce247feab7f315804e956fdd7e15cf7aacf71bf4bcfcc62804e0e832c/pyweekdays-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "49cba6dc846dc2af9aebae1717c02443", "sha256": "c81c457c36eece19c2c10c9aad7244f7f97dbdc796061ecc0d782d067c24b772" }, "downloads": -1, "filename": "pyweekdays-0.1.4.tar.gz", "has_sig": false, "md5_digest": "49cba6dc846dc2af9aebae1717c02443", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2406, "upload_time": "2016-03-12T22:59:04", "url": "https://files.pythonhosted.org/packages/4e/24/53645e4c2e64a0fccaa7f00bcc6bd74e7793043bb8f8706b5de5d96069c5/pyweekdays-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "451b824912c104ae02f18c7bf7a4c24a", "sha256": "861118161caadaf56eccd687a37b165d142782c37179e15f9f4b32f00e267cdd" }, "downloads": -1, "filename": "pyweekdays-0.1.5.tar.gz", "has_sig": false, "md5_digest": "451b824912c104ae02f18c7bf7a4c24a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2434, "upload_time": "2016-03-13T20:26:57", "url": "https://files.pythonhosted.org/packages/71/25/794e5ed7e3194c4a47d31bfa41264792bb23c99a010dc6100ed4edef1b2d/pyweekdays-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "451b824912c104ae02f18c7bf7a4c24a", "sha256": "861118161caadaf56eccd687a37b165d142782c37179e15f9f4b32f00e267cdd" }, "downloads": -1, "filename": "pyweekdays-0.1.5.tar.gz", "has_sig": false, "md5_digest": "451b824912c104ae02f18c7bf7a4c24a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2434, "upload_time": "2016-03-13T20:26:57", "url": "https://files.pythonhosted.org/packages/71/25/794e5ed7e3194c4a47d31bfa41264792bb23c99a010dc6100ed4edef1b2d/pyweekdays-0.1.5.tar.gz" } ] }