{ "info": { "author": "Benoit Seignovert", "author_email": "benoit.a.seignovert@jpl.nasa.gov", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Astronomy" ], "description": "Flickr Apollo Archive\n=====================\n\n|Build| |Coverage| |PyPI| |Status| |Version| |Python| |License| |Tutorial|\n\n.. |Build| image:: https://travis-ci.org/seignovert/python-flickr-apollo-archive.svg?branch=master\n :target: https://travis-ci.org/seignovert/python-flickr-apollo-archive\n.. |Coverage| image:: https://coveralls.io/repos/github/seignovert/python-flickr-apollo-archive/badge.svg?branch=master\n :target: https://coveralls.io/github/seignovert/python-flickr-apollo-archive?branch=master\n.. |PyPI| image:: https://img.shields.io/badge/PyPI-apollo--archive-blue.svg\n :target: https://pypi.org/project/apollo-archive\n.. |Status| image:: https://img.shields.io/pypi/status/apollo-archive.svg?label=Status\n :target: https://pypi.org/project/apollo-archive\n.. |Version| image:: https://img.shields.io/pypi/v/apollo-archive.svg?label=Version\n :target: https://pypi.org/project/apollo-archive\n.. |Python| image:: https://img.shields.io/pypi/pyversions/apollo-archive.svg?label=Python\n :target: https://pypi.org/project/apollo-archive\n.. |License| image:: https://img.shields.io/pypi/l/apollo-archive.svg?label=License\n :target: https://pypi.org/project/apollo-archive\n.. |Tutorial| image:: https://img.shields.io/badge/Jupyter%20Notebook-tutorial-blue.svg\n :target: https://nbviewer.jupyter.org/github/seignovert/python-flickr-apollo-archive/blob/master/apolloarchive.ipynb\n\nPython package to list and download all original images from\n`Flickr Apollo Archive `_.\n\n|Moon|\n\n.. |Moon| image:: As11-40-5949.jpg\n :target: https://www.flickr.com/photos/projectapolloarchive/21660108915/in/album-72157658601662068/\n\n\n`Project Apollo Archive `_\n/\n`Apollo 11 Magazine 40/S (v1 / levels-adj) `_\n/\n`AS11-40-5949 `_\n\nInstall\n-------\nWith ``pip``:\n\n.. code:: bash\n\n $ pip install apollo-archive\n\nWith the ``source files``:\n\n.. code:: bash\n\n $ git clone https://github.com/seignovert/python-flickr-apollo-archive.git apollo-archive\n $ cd apollo-archive ; python setup.py install\n\n.. note::\n\n You need FlickrAPI ``key`` and ``secret`` tokens. They can be generated `here `_.\n\n Use the prompt input to init the key variables on the first load of the module:\n\n .. code:: bash\n\n Warning: Some environnement variables are missing.\n > Go to https://www.flickr.com/services/api/keys/ to setup your keys.\n FLICKR_API_KEY: 1234567890\n FLICKR_API_SECRET: ABCDEF\n\n or you can set then globally:\n\n .. code:: bash\n\n $ export FLICKR_API_KEY=1234567890\n $ export FLICKR_API_SECRET=ABCDEF\n\n\nPython usage\n------------\nQuery Flickr API:\n\n.. code:: python\n\n >>> from apolloarchive import User\n\n >>> user = User()\n Flickr User: Apollo Image Gallery (136485307@N06) | 107 albums\n\n >>> albums = user.albums\n [\n Album: \"Announcements\" (3 photos),\n Album: \"Apollo 7 Magazine 3/M\" (46 photos),\n Album: \"Apollo 7 Magazine 4/N\" (55 photos),\n ...\n Album: \"Apollo 17 Magazine 163/TT\" (72 photos)\n ]\n\n >>> albums[0].slug\n 'Announcements'\n\n >>> albums[0].photos\n [\n Photo: \"(also) Follow Project Apollo Archive on Facebook\",\n Photo: \"About the Project Apollo Archive Flickr Gallery\",\n Photo: \"The Project Apollo Archive is best experienced in the \"Albums\" view\"\n ]\n\n >>> albums[0].photos[0].url\n 'https://farm1.staticflickr.com/622/21878909302_a369c0c4de_o.jpg'\n\n >>> albums[0].photos[0].filename\n 'Also-follow-project-apollo-archive-on-facebook.jpg'\n\n\nSync Flickr photosets:\n\n.. code:: python\n\n >>> from apolloarchive import sync\n\n >>> sync(album=0, ncpu=4, overwrite=True)\n Sync Announcements: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 3/3 [00:00<00:00, 3.89it/s]\n > Download: Also-follow-project-apollo-archive-on-facebook\n > Download: About-the-project-apollo-archive-flickr-gallery\n > Download: The-project-apollo-archive-is-best-experienced-in-the-albums-view\n\n\nCLI usage\n---------\nSync Flickr photosets:\n\n.. code:: bash\n\n $ apollo-archive --help\n usage: apollo-archive [-h] [--user-id USER_ID] [--username USERNAME]\n [--album ALBUM] [--ncpu NCPU] [--overwrite]\n\n Sync Flickr folder(s)\n\n optional arguments:\n -h, --help show this help message and exit\n --user-id USER_ID, -i USER_ID User ID\n --username USERNAME, -u USERNAME Username\n --album ALBUM, -a ALBUM Album number to sync\n --ncpu NCPU, -n NCPU Number of thread during for download\n --overwrite, -o Re-download all\n\n $ apollo-archive --album 0 --ncpu 4 --overwrite\n Sync Announcements: 100%|\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 3/3 [00:00<00:00, 3.89it/s]\n > Download: Also-follow-project-apollo-archive-on-facebook\n > Download: About-the-project-apollo-archive-flickr-gallery\n > Download: The-project-apollo-archive-is-best-experienced-in-the-albums-view\n\n\n.. warning:: The complete archive is **very large** (~62 Gb).\n\nDependencies\n------------\n- flickrapi\n- python-slugify\n- wget\n- tqdm\n- argparse\n\nDisclaimer\n----------\nThis project is not supported or endorsed by either JPL or NASA.\nThe code is provided \"as is\", use at your own risk.\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/seignovert/python-flickr-apollo-archive", "keywords": "flickr,nasa,apollo,api,image", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "apollo-archive", "package_url": "https://pypi.org/project/apollo-archive/", "platform": "", "project_url": "https://pypi.org/project/apollo-archive/", "project_urls": { "Homepage": "https://github.com/seignovert/python-flickr-apollo-archive" }, "release_url": "https://pypi.org/project/apollo-archive/1.3/", "requires_dist": [ "flickrapi", "python-slugify", "wget", "tqdm", "argparse" ], "requires_python": "", "summary": "Python package to list and download all original images from Flickr Apollo Archive", "version": "1.3" }, "last_serial": 4692184, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "cf4e6d307a6c468f59fc6d6923947558", "sha256": "6fe796f4cfb87d1cce69f03b3dd5cfd84ecdf8325ac0b30bceb3f86a6f8804b3" }, "downloads": -1, "filename": "apollo_archive-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cf4e6d307a6c468f59fc6d6923947558", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8708, "upload_time": "2019-01-09T21:54:04", "url": "https://files.pythonhosted.org/packages/6a/fe/406121ffa640de41277f281fd85b10cd1b211004a7044e4254d0c857c471/apollo_archive-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1463779e6f16d4f1312504c4773b70de", "sha256": "da1c6b547acad4bf53cce8f8bd4415b5ea4fa71f6fed477ae35926249f35cfc8" }, "downloads": -1, "filename": "apollo-archive-1.0.tar.gz", "has_sig": false, "md5_digest": "1463779e6f16d4f1312504c4773b70de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11381, "upload_time": "2019-01-09T21:54:06", "url": "https://files.pythonhosted.org/packages/e2/f1/2cc219f0dd219ccf871249c0c855bcb544bd8dc259554eb76073445b6f3a/apollo-archive-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "40e8a750ffe82a3b27edaa44acb0af41", "sha256": "a4e0ffc329e10bc977ae44c2ccdcc5e61b53c189564821abcd08c51c942dede7" }, "downloads": -1, "filename": "apollo_archive-1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "40e8a750ffe82a3b27edaa44acb0af41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8878, "upload_time": "2019-01-10T16:45:40", "url": "https://files.pythonhosted.org/packages/76/d8/c57988db3ba44786346dc01d4b2d91c24f9cea86e1bf0207f9205347ecef/apollo_archive-1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0740577d0163efa0e93f9dc12fb6aeb0", "sha256": "6cd9ee5c2c4508d929ee4df7ba0ee66c49546bc98ed76365d1524b8e406c2355" }, "downloads": -1, "filename": "apollo-archive-1.1.tar.gz", "has_sig": false, "md5_digest": "0740577d0163efa0e93f9dc12fb6aeb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 281099, "upload_time": "2019-01-10T16:45:42", "url": "https://files.pythonhosted.org/packages/17/2f/1636961a8798096cf4ecc2954892b81540a91aef9f5d8616b295431492a3/apollo-archive-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "ad8fe3324af195737e63df262919dc27", "sha256": "d35e599a45ad8adcf36ee459589c0b00f9017c65c7d41cfadc25d6ac1f16b972" }, "downloads": -1, "filename": "apollo_archive-1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ad8fe3324af195737e63df262919dc27", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8912, "upload_time": "2019-01-10T19:18:49", "url": "https://files.pythonhosted.org/packages/d5/9d/c3a922ba63f656e646c96702c84daa27ceabb100741b4fde01b0ae0eb457/apollo_archive-1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e14c7f280ead48b26e6ab7b281dad5d4", "sha256": "7e90efd34deb7886711f422bf885ed35c3035a937bde79769ebae6eead0573b1" }, "downloads": -1, "filename": "apollo-archive-1.2.tar.gz", "has_sig": false, "md5_digest": "e14c7f280ead48b26e6ab7b281dad5d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 281214, "upload_time": "2019-01-10T19:18:51", "url": "https://files.pythonhosted.org/packages/df/ff/bec14100ef3f2524fa99e9eb317d6a4f375d1c8a0b802f6c7128c9d53a29/apollo-archive-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "3495f63ef7eeaf6025ad5dd9a60d0a81", "sha256": "9f35abb36dd6d2bcb8417cb3e8a113102a94a7e30fd203e708702068b92ab5d5" }, "downloads": -1, "filename": "apollo_archive-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3495f63ef7eeaf6025ad5dd9a60d0a81", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8981, "upload_time": "2019-01-14T00:25:18", "url": "https://files.pythonhosted.org/packages/12/40/0b522014d3a99db5b4b05b6a0117395f64fb5bea62c7df4cceaffc3f7d66/apollo_archive-1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95fa869bee85bb0907bf83810e9561ec", "sha256": "46d6fd88bfc3deacadc5edf274e82e26558df2e24eb4cd8858abbba0a1b14979" }, "downloads": -1, "filename": "apollo-archive-1.3.tar.gz", "has_sig": false, "md5_digest": "95fa869bee85bb0907bf83810e9561ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 281313, "upload_time": "2019-01-14T00:25:19", "url": "https://files.pythonhosted.org/packages/8f/e7/16e836f0670b48487195a842f194ca7ee9bec5cfd5b2cfcc4fd0a754c764/apollo-archive-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3495f63ef7eeaf6025ad5dd9a60d0a81", "sha256": "9f35abb36dd6d2bcb8417cb3e8a113102a94a7e30fd203e708702068b92ab5d5" }, "downloads": -1, "filename": "apollo_archive-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3495f63ef7eeaf6025ad5dd9a60d0a81", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8981, "upload_time": "2019-01-14T00:25:18", "url": "https://files.pythonhosted.org/packages/12/40/0b522014d3a99db5b4b05b6a0117395f64fb5bea62c7df4cceaffc3f7d66/apollo_archive-1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95fa869bee85bb0907bf83810e9561ec", "sha256": "46d6fd88bfc3deacadc5edf274e82e26558df2e24eb4cd8858abbba0a1b14979" }, "downloads": -1, "filename": "apollo-archive-1.3.tar.gz", "has_sig": false, "md5_digest": "95fa869bee85bb0907bf83810e9561ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 281313, "upload_time": "2019-01-14T00:25:19", "url": "https://files.pythonhosted.org/packages/8f/e7/16e836f0670b48487195a842f194ca7ee9bec5cfd5b2cfcc4fd0a754c764/apollo-archive-1.3.tar.gz" } ] }