{ "info": { "author": "Paul G\u00f6tze", "author_email": "paul.christoph.goetze@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python", "Topic :: Utilities" ], "description": "# whattime\n\n[![PyPI version](https://badge.fury.io/py/whattime.svg)](https://badge.fury.io/py/whattime)\n[![Build Status](https://travis-ci.org/grammofy/whattime.svg?branch=master)](https://travis-ci.org/grammofy/whattime)\n\nChecking of what kind a datetime object is: it let\u2019s you explore whether a certain datetime object is e.g. a Sunday morning in summer or a Wednesday night in winter. It also consideres hemispheres.\n\n## Getting started\n\nInstall it with:\n\n```bash\npip install whattime\n```\n\nor \n\n```bash\npipenv install whattime\n```\n\nFor quickly getting started, just import the `whattime` function and explore a date\u2019s properties (also see the [Get started example](https://github.com/grammofy/whattime/blob/master/examples/get_started.py)):\n\n```python\nfrom datetime import datetime\nfrom whattime import whattime, Hemisphere\n\nnow = datetime.now()\ninfo = whattime(now, Hemisphere.SOUTHERN)\n\ninfo.is_weekday\ninfo.is_monday\ninfo.is_summer\n# ...\n```\n\nBesides checking all the time types you can also only check a certain category of types, e.g. info about the current day, or the time within a day seperately (also see the [Single info type example](https://github.com/grammofy/whattime/blob/master/examples/using_certain_descriptors_only.py)).\n\n```python\nfrom datetime import datetime\nfrom whattime import week_info, day_time_info, season_info, Hemisphere\n\nnow = datetime.now()\n\n# There will only be properties available concerning the week time info when using week_info():\ninfo = week_info(now)\ninfo.is_weekday\ninfo.is_monday\n# ...\n\n# There will only be properties available concerning the day time info when using day_time_info():\ninfo = day_time_info(now)\ninfo.is_afternoon\ninfo.is_evening\n# ...\n\n# There will only be properties available concerning the season info when using season_info():\ninfo = season_info(now, Hemisphere.SOUTHERN)\ninfo.is_spring\ninfo.is_summer\n# ...\n```\n\n## Development\n\n* Check out the repo with `git clone git@github.com:grammofy/whattime.git`.\n* To set up the project for development you need to [install Pipenv](https://pipenv.readthedocs.io/en/latest/install/#installing-pipenv) and run: \n ```bash\n pipenv install --dev\n ```\n in order to install the needed development requirements.\n\n* Tests can be run with: \n ```bash\n python setup.py test\n ```\n\n## Contributing\n\nBug reports, feature discussions and pull requests are welcome on GitHub at https://github.com/grammofy/whattime. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant Code of Conduct](https://github.com/grammofy/whattime/blob/master/CODE_OF_CONDUCT.md).\n\nHere\u2019s how to contribute:\n\n* Fork it (https://github.com/grammofy/whattime/fork)\n* Create your feature branch (`git checkout -b feature/my-new-feature master`)\n* Commit your changes (`git commit -am 'Add some feature'`)\n* Push to the branch (`git push origin feature/my-new-feature`)\n* Create a new Pull Request\n\nPlease try to add [Pytest tests](https://pytest.org/en/latest/getting-started.html) along with your new feature. This will ensure that your code does not break existing functionality and that your feature is working as expected.\n\n## License\n\nThe software is available as open source under the terms of the [MIT License](https://github.com/grammofy/whattime/blob/master/LICENSE.txt).", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/grammofy/whattime", "keywords": "", "license": "MIT", "maintainer": "Paul G\u00f6tze", "maintainer_email": "paul.christoph.goetze@gmail.com", "name": "whattime", "package_url": "https://pypi.org/project/whattime/", "platform": "any", "project_url": "https://pypi.org/project/whattime/", "project_urls": { "Homepage": "https://github.com/grammofy/whattime" }, "release_url": "https://pypi.org/project/whattime/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Checking what kind of time a date is.", "version": "0.2.0", "yanked": false, "yanked_reason": null }, "last_serial": 6080310, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e9678f37370ee99e2a438308e389f53e", "sha256": "cc3dcd4da47f62323af4c404870a587eaa8b13330dcd20c4d3f450c562f1b0c1" }, "downloads": -1, "filename": "whattime-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e9678f37370ee99e2a438308e389f53e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5699, "upload_time": "2019-03-11T11:22:35", "upload_time_iso_8601": "2019-03-11T11:22:35.827870Z", "url": "https://files.pythonhosted.org/packages/e7/1d/19472f2716c25dc4fd554a922823dce5e48a99548eb2ab8d8ee2f6bfa610/whattime-0.1.0-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "d0beee339b69af53cef2f72af827e36f", "sha256": "ea4115925e3c7b500543f962536d85e622e879e390e6ad4e9e1d169fb8dc5344" }, "downloads": -1, "filename": "whattime-0.1.0.tar.gz", "has_sig": false, "md5_digest": "d0beee339b69af53cef2f72af827e36f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20301, "upload_time": "2019-03-11T11:22:37", "upload_time_iso_8601": "2019-03-11T11:22:37.940614Z", "url": "https://files.pythonhosted.org/packages/b7/c2/df9fc0f9b4f6798a5b38f52cb650d04fb72e5f9642e069b4946b68ad3c56/whattime-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "936eb13cc57d6cdb13317e1a72fcf190", "sha256": "9baf896a022ed8397b58f44fb0fdee04a560f39028e59528ab0b03d5f6cd0d14" }, "downloads": -1, "filename": "whattime-0.1.1.tar.gz", "has_sig": false, "md5_digest": "936eb13cc57d6cdb13317e1a72fcf190", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25560, "upload_time": "2019-10-25T13:09:24", "upload_time_iso_8601": "2019-10-25T13:09:24.454778Z", "url": "https://files.pythonhosted.org/packages/16/9a/f5d0c12013584e0aa3514f1650063bca7d7614b4561c536ab1806a2b9f68/whattime-0.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "64d09c56f06b503b75f94ad9f78f3b40", "sha256": "c5afce6441217f076344a86463de465b4abee170b015308ddded9fe38a0a7b09" }, "downloads": -1, "filename": "whattime-0.2.0.tar.gz", "has_sig": false, "md5_digest": "64d09c56f06b503b75f94ad9f78f3b40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28774, "upload_time": "2019-11-05T10:32:30", "upload_time_iso_8601": "2019-11-05T10:32:30.429196Z", "url": "https://files.pythonhosted.org/packages/81/27/49b35052605fb88d9d30ffa7d26ca82adf2a7b498adf65f6d0f457d5d226/whattime-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64d09c56f06b503b75f94ad9f78f3b40", "sha256": "c5afce6441217f076344a86463de465b4abee170b015308ddded9fe38a0a7b09" }, "downloads": -1, "filename": "whattime-0.2.0.tar.gz", "has_sig": false, "md5_digest": "64d09c56f06b503b75f94ad9f78f3b40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28774, "upload_time": "2019-11-05T10:32:30", "upload_time_iso_8601": "2019-11-05T10:32:30.429196Z", "url": "https://files.pythonhosted.org/packages/81/27/49b35052605fb88d9d30ffa7d26ca82adf2a7b498adf65f6d0f457d5d226/whattime-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }