{ "info": { "author": "Krzysztof Stopa", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# SunTime\nSimple sunset and sunrise time calculation python library.\n\n## Installation\n\nUsing pip:\n\n pip3 install suntime\n\nOr download and type:\n\n python3 setup.py install\n\n## Usage\n\nYou can use the library to get UTC and local time sunrise and sunset times typing:\n\n```python3\nimport datetime\nfrom suntime import Sun, SunTimeException\n\nlatitude = 51.21\nlongitude = 21.01\n\nsun = Sun(latitude, longitude)\n\n# Get today's sunrise and sunset in UTC\ntoday_sr = sun.get_sunrise_time()\ntoday_ss = sun.get_sunset_time()\nprint('Today at Warsaw the sun raised at {} and get down at {} UTC'.\n format(today_sr.strftime('%H:%M'), today_ss.strftime('%H:%M')))\n\n# On a special date in your machine's local time zone\nabd = datetime.date(2014, 10, 3)\nabd_sr = sun.get_local_sunrise_time(abd)\nabd_ss = sun.get_local_sunset_time(abd)\nprint('On {} the sun at Warsaw raised at {} and get down at {}.'.\n format(abd, abd_sr.strftime('%H:%M'), abd_ss.strftime('%H:%M')))\n\n# Error handling (no sunset or sunrise on given location)\nlatitude = 87.55\nlongitude = 0.1\nsun = Sun(latitude, longitude)\ntry:\n abd_sr = sun.get_local_sunrise_time(abd)\n abd_ss = sun.get_local_sunset_time(abd)\n print('On {} at somewhere in the north the sun raised at {} and get down at {}.'.\n format(abd, abd_sr.strftime('%H:%M'), abd_ss.strftime('%H:%M')))\nexcept SunTimeException as e:\n print(\"Error: {0}.\".format(e))\n```\n\n## License\n\nCopyright \u00a9 2019 SatAgro Sp. z o.o. and contributors:\n\n* Krzysztof Stopa ([kstopa](https://github.com/kstopa))\n* Andrey Kobyshev ([yokotoka](https://github.com/yokotoka))\n* Matthias ([palto42](https://github.com/plato42))\n* Hadrien Bertrand ([hbertrand](https://github.com/hbertrand))\n\n\nThis file is part of SunTime library for python (SunTime).\n\nSunTime is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.\n\nSunTime is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License along with CAMS tools. If not, see http://www.gnu.org/licenses/.\n\n\n", "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/SatAgro/suntime", "keywords": "", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "suntime", "package_url": "https://pypi.org/project/suntime/", "platform": "", "project_url": "https://pypi.org/project/suntime/", "project_urls": { "Homepage": "https://github.com/SatAgro/suntime" }, "release_url": "https://pypi.org/project/suntime/1.2.5/", "requires_dist": [ "python-dateutil" ], "requires_python": "", "summary": "Simple sunset and sunrise time calculation python library", "version": "1.2.5" }, "last_serial": 5731015, "releases": { "1.2.1": [ { "comment_text": "", "digests": { "md5": "63950a365321dfd5fcbaf8205f675459", "sha256": "42a353096115b2c1db7c6df49e5717be2e76c98bc761f011dd6701c32ef5a5fa" }, "downloads": -1, "filename": "suntime-1.2.1-py3.6.egg", "has_sig": false, "md5_digest": "63950a365321dfd5fcbaf8205f675459", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 6243, "upload_time": "2019-02-03T21:08:14", "url": "https://files.pythonhosted.org/packages/b0/51/c568d5f6e3d1e97f72c2bafb1f1152115f4751d95dfd054a07946ca06997/suntime-1.2.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "594793e24d6c42d535821f96463a46cb", "sha256": "249e16f818edd4a5c15bdbe9c9ce5cf1a5bdffe04dd64c01adb731e1d2435a61" }, "downloads": -1, "filename": "suntime-1.2.1.tar.gz", "has_sig": false, "md5_digest": "594793e24d6c42d535821f96463a46cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3701, "upload_time": "2019-02-03T21:08:16", "url": "https://files.pythonhosted.org/packages/22/4d/bb26f54d5830544798a6d94ad0bd059bb0099ee22421a4c5f558c556a278/suntime-1.2.1.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "2ef10ff7746ab0ed73071a64f6589d66", "sha256": "f6380139b6d5dad03d55c341bd5d5a2ea95775eaeb72b7f9dcdcb5a898fe36f7" }, "downloads": -1, "filename": "suntime-1.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "2ef10ff7746ab0ed73071a64f6589d66", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7120, "upload_time": "2019-05-05T20:38:41", "url": "https://files.pythonhosted.org/packages/8c/33/fc03b1c99de6a425e18af2101135cff6278cba0a97e5a455d45696895b3b/suntime-1.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b83560b3b8f1d26ff0e4e03b77c7bfb3", "sha256": "282a804ef80f87041d3d3177b24f19b1358d6df51b3a59492e492297121647c0" }, "downloads": -1, "filename": "suntime-1.2.4.tar.gz", "has_sig": false, "md5_digest": "b83560b3b8f1d26ff0e4e03b77c7bfb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3961, "upload_time": "2019-05-05T20:38:42", "url": "https://files.pythonhosted.org/packages/fe/40/723c8c7f4776fa267b898804633e631a5f51a06b44ef36e879775661b06e/suntime-1.2.4.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "27a6393d50cdb5225753ab2d2ecd94c4", "sha256": "ac03cc8bb6e6457c946139e24928300762e60236e8623f3e0e5f4944a582e0dd" }, "downloads": -1, "filename": "suntime-1.2.5-py3.7.egg", "has_sig": false, "md5_digest": "27a6393d50cdb5225753ab2d2ecd94c4", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 7338, "upload_time": "2019-08-26T13:53:08", "url": "https://files.pythonhosted.org/packages/5f/15/f8f8aa84f02bafa143e8fc7b3a0a5d5f013119b1b8c79b0195813fe788c6/suntime-1.2.5-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "69000b4f9ba45b211fb1b498b1a399fc", "sha256": "d957e9ca786ab3cd80bf624b007fed7d07f07c6fa33f3ccc5ec34c9bb0c380c6" }, "downloads": -1, "filename": "suntime-1.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "69000b4f9ba45b211fb1b498b1a399fc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7221, "upload_time": "2019-08-26T13:53:07", "url": "https://files.pythonhosted.org/packages/93/95/a4eec0b36daeda6fa84b804da308211141d4a6ada13da228ecdf49600434/suntime-1.2.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fdcd5b10700d29494a6a326f86597a95", "sha256": "e4df651dfcde332f905e57da6be49a1cc696499f11853fb0395df29104274649" }, "downloads": -1, "filename": "suntime-1.2.5.tar.gz", "has_sig": false, "md5_digest": "fdcd5b10700d29494a6a326f86597a95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4074, "upload_time": "2019-08-26T13:53:10", "url": "https://files.pythonhosted.org/packages/ee/0a/3c8cf603700e2d9987ce5dcf06845fbf889eaa1b781f6b7b028773e3b765/suntime-1.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "27a6393d50cdb5225753ab2d2ecd94c4", "sha256": "ac03cc8bb6e6457c946139e24928300762e60236e8623f3e0e5f4944a582e0dd" }, "downloads": -1, "filename": "suntime-1.2.5-py3.7.egg", "has_sig": false, "md5_digest": "27a6393d50cdb5225753ab2d2ecd94c4", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 7338, "upload_time": "2019-08-26T13:53:08", "url": "https://files.pythonhosted.org/packages/5f/15/f8f8aa84f02bafa143e8fc7b3a0a5d5f013119b1b8c79b0195813fe788c6/suntime-1.2.5-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "69000b4f9ba45b211fb1b498b1a399fc", "sha256": "d957e9ca786ab3cd80bf624b007fed7d07f07c6fa33f3ccc5ec34c9bb0c380c6" }, "downloads": -1, "filename": "suntime-1.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "69000b4f9ba45b211fb1b498b1a399fc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7221, "upload_time": "2019-08-26T13:53:07", "url": "https://files.pythonhosted.org/packages/93/95/a4eec0b36daeda6fa84b804da308211141d4a6ada13da228ecdf49600434/suntime-1.2.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fdcd5b10700d29494a6a326f86597a95", "sha256": "e4df651dfcde332f905e57da6be49a1cc696499f11853fb0395df29104274649" }, "downloads": -1, "filename": "suntime-1.2.5.tar.gz", "has_sig": false, "md5_digest": "fdcd5b10700d29494a6a326f86597a95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4074, "upload_time": "2019-08-26T13:53:10", "url": "https://files.pythonhosted.org/packages/ee/0a/3c8cf603700e2d9987ce5dcf06845fbf889eaa1b781f6b7b028773e3b765/suntime-1.2.5.tar.gz" } ] }