{ "info": { "author": "Sadie Parker", "author_email": "sadiemparker@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Other Audience", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "# moon \n\nThis is a small python package that simply gets an image of a given date's moon phase. It uses numpy, opencv and Ernie Wright's moon visualizations from the Dial-a-Moon project at Nasa Visualization Studio.\n\nThis package doesn't do much other than download an image from a predefined source, but I hope it's useful for someone else out there. \n\nAt time of publishing, this package can access any of the moon visualizations from 2011-2019. I suppose the way it's set up now, it'll need an update when the end of 2019 grows closer, and perhaps I'll find a better way to set it up by then.\n\n# Installation \n\nTo install this package, just run \n\n```pip install moon```\n\n# Usage\n\nCurrently, this package will return a numpy array representing the lunar phase, as well as some json of the lunar stats from the Dial-a-Moon Nasa site. This array is usable as an image using openCV, or can be saved to disk as a .jpg file.\n\nYou can test it out using terminal:\n\n```\nfrom moon.terminal_ui import TerminalUi\n\nui = TerminalUi()\nui.set_moon_image() #defaults to today's date\nui.show()\n```\n\nYou can alternately test it out using Jupyter notebooks:\n\n```\nfrom moon.jupyter_ui import Jupyter\n\nui = JupyterUi()\nui.set_moon_image() #defaults to today's date\nui.show()\n```\n\nTo just use it in a project, you can use it like this:\n\n```\nfrom moon.dialamoon import Moon\n\nmoon = Moon()\nmoon.set_moon_phase()\n\n```\nand access the image array itself with\n\n```\nmoon.image\n```\n\nAt the moment, there isn't any built in method for converting the numpy array to a Pillow image. I had this set up with Pillow originally, but it fell by the wayside when I moved over to playing around with openCV. \n\n# Updates\n\nPlease feel free to post bugs, suggestions and feature requests on this repo. Through some trial and error, I think I finally have the package as simple as possible, but I'm open to evolution. This will be my first time creating and maintaining a python package, and I am receptive to any tips or PRs as far as best-practices go.\n\n# Resources:\n- [nasa moon visualization studio](https://svs.gsfc.nasa.gov/4442)\n- [how to publish a python package on pypi](https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56)\n\n\nmoon ascii art courtesy of [jsg](http://www.ascii-art.de/ascii/mno/moon.txt)\n```\n _..._ _..._ _..._ _..._ _..._\n .:::::::. .::::. `. .:::: `. .::' `. .' `.\n ::::::::::: :::::::. : :::::: : ::: : : : \n ::::::::::: :::::::: : :::::: : ::: : : :\n `:::::::::' `::::::' .' `::::: .' `::. .' `. .'\n `':::'' `'::'-' `'::.-' `':..-' `-...-'\n\n _..._ _..._ _..._ _..._ _..._\n .' `. .' `::. .' ::::. .' .::::. .:::::::.\n : : : ::: : :::::: : :::::::: ::::::::::: \n : : : ::: : :::::: : :::::::: :::::::::::\n `. .' `. .::' `. :::::' `. '::::::' `:::::::::'\n `-...-' `-..:'' `-.::'' `-.::'' `':::''\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/spacerest/moon/archive/v_1_0_2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/spacerest/moon", "keywords": "MOON,ART", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "moon", "package_url": "https://pypi.org/project/moon/", "platform": "", "project_url": "https://pypi.org/project/moon/", "project_urls": { "Download": "https://github.com/spacerest/moon/archive/v_1_0_2.tar.gz", "Homepage": "https://github.com/spacerest/moon" }, "release_url": "https://pypi.org/project/moon/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Gets moon visualizations courtesy of NASA/Ernie Wright", "version": "1.0.2" }, "last_serial": 5785809, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "b81930db9644d633d77f9c2c88cc4e4c", "sha256": "f4d53dfca8efcf7894cc7eefe48d906a808f3e09f0968abcf9e015003fe884a7" }, "downloads": -1, "filename": "moon-1.0.tar.gz", "has_sig": false, "md5_digest": "b81930db9644d633d77f9c2c88cc4e4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4755, "upload_time": "2019-09-05T09:58:13", "url": "https://files.pythonhosted.org/packages/35/f9/d48b44171608456103d74c14fc22963fffb65bd4e9ee579c295cb576e0ba/moon-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "4bbae70620f475d7b0ff978853599323", "sha256": "fa78cd32993f64dea37694da5e1ab2b02a2650e21de02557e774c22249ebfd78" }, "downloads": -1, "filename": "moon-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4bbae70620f475d7b0ff978853599323", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4748, "upload_time": "2019-09-05T10:21:49", "url": "https://files.pythonhosted.org/packages/ec/c9/d35317cf84c4a2d9131d3ba75333c34ac2582bc1c91c58d05daa84b6863b/moon-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "28c08b2c1f7ac4b149a36ce247d4b645", "sha256": "3fd60266802ec6a7ed27c0eb782a67842dbd8b989309ad39959286dd3da55f96" }, "downloads": -1, "filename": "moon-1.0.2.tar.gz", "has_sig": false, "md5_digest": "28c08b2c1f7ac4b149a36ce247d4b645", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4758, "upload_time": "2019-09-05T10:27:52", "url": "https://files.pythonhosted.org/packages/84/cb/4841f3f45be1e6234378be4ad3e0ede2e53bb10dd50eeb472d27ecdf7690/moon-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "28c08b2c1f7ac4b149a36ce247d4b645", "sha256": "3fd60266802ec6a7ed27c0eb782a67842dbd8b989309ad39959286dd3da55f96" }, "downloads": -1, "filename": "moon-1.0.2.tar.gz", "has_sig": false, "md5_digest": "28c08b2c1f7ac4b149a36ce247d4b645", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4758, "upload_time": "2019-09-05T10:27:52", "url": "https://files.pythonhosted.org/packages/84/cb/4841f3f45be1e6234378be4ad3e0ede2e53bb10dd50eeb472d27ecdf7690/moon-1.0.2.tar.gz" } ] }