{ "info": { "author": "dazuling", "author_email": "azuline@riseup.net", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "=========\npixiv-api\n=========\n\n|PyPI| |Pyversions| |Docs|\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/pixiv-api.svg\n :target: https://pypi.python.org/pypi/pixiv-api\n.. |Pyversions| image:: https://img.shields.io/pypi/pyversions/pixiv-api.svg\n :target: https://pypi.python.org/pypi/pixiv-api\n.. |Docs| image:: https://readthedocs.org/projects/pixiv-api/badge/?version=latest\n :target: https://pixiv-api.readthedocs.io/en/latest/?badge=latest\n\nA library for the Pixiv API. Uses Pixiv's App API.\n\nInstall with:\n\n.. code-block:: bash\n\n $ pip install pixiv-api\n\nQuickstart\n==========\n\nTo start making requests to the Pixiv API, instantiate a client object.\n\n.. code-block:: python\n\n from pixivapi import Client\n\n client = Client()\n\nThe client can be authenticated to Pixiv's API in multiple ways. One is by\nlogging in with a username and password:\n\n.. code-block:: python\n\n client.login('username', 'password')\n\nAnd another is with a refresh token.\n\n.. code-block:: python\n\n client.authenticate('refresh_token')\n\nOnce authenticated, a refresh token can be saved for future authorizations.\n\n.. code-block:: python\n\n refresh_token = client.refresh_token\n\nAfter authenticating, the client can begin making requests to all of the\nPixiv endpoints. For example, the following code block downloads an\nimage from Pixiv.\n\n.. code-block:: python\n\n from pathlib import Path\n from pixivapi import Size\n\n illustration = client.fetch_illustration(75523989)\n illustration.download(\n directory=Path.home() / 'my_pixiv_images',\n size=Size.ORIGINAL,\n )\n\nAnd the next code block downloads all illustrations of an artist.\n\n.. code-block:: python\n\n from pathlib import Path\n from pixivapi import Size\n\n artist_id = 2188232\n directory = Path.home() / 'wlop'\n\n response = client.fetch_user_illustrations(artist_id)\n while response['next']:\n for illust in response['illustrations']:\n illust.download(directory=directory, size=Size.ORIGINAL)\n\n if response['next']:\n response = client.fetch_user_illustrations(\n artist_id,\n offset=response['next'],\n )\n\nRead the complete documentation at https://pixiv-api.readthedocs.io.\n\nChangelog\n=========\n\nv0.2\n----\n\n- Change ``Client.account`` from a dict to an ``Account`` model.\n- Remove ``None`` attributes from User that only applied to responses from\n ``Client.fetch_user`` and move them to a ``FullUser`` subclass.\n- Change return type of ``Client.fetch_user`` to a ``FullUser``. No attributes\n were changed.\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dazuling/pixiv-api", "keywords": "", "license": "Apache-2.0", "maintainer": "dazuling", "maintainer_email": "azuline@riseup.net", "name": "pixiv-api", "package_url": "https://pypi.org/project/pixiv-api/", "platform": "", "project_url": "https://pypi.org/project/pixiv-api/", "project_urls": { "Homepage": "https://github.com/dazuling/pixiv-api", "Repository": "https://github.com/dazuling/pixiv-api" }, "release_url": "https://pypi.org/project/pixiv-api/0.2.1/", "requires_dist": [ "requests (>=2.0.0,<3.0.0)" ], "requires_python": ">=3.6,<4.0", "summary": "A library for the Pixiv API.", "version": "0.2.1" }, "last_serial": 5793857, "releases": { "0.0.1a1": [ { "comment_text": "", "digests": { "md5": "324ce524393322546b814e936062ffaa", "sha256": "d4af232663e3fbe8a88c5fcf89042b5346c914e690cdb0ea28735c81d3b12cd7" }, "downloads": -1, "filename": "pixiv_api-0.0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "324ce524393322546b814e936062ffaa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 10310, "upload_time": "2019-08-01T05:46:24", "url": "https://files.pythonhosted.org/packages/5e/ef/1d423a96df4ad04a7931760c234080fa788a567f35c47ac7e75ce9a3c3db/pixiv_api-0.0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "240357b4bf595eb1bfce24af8d36924f", "sha256": "f4df1e88b4dc8ed6dcb279c1d6b4b79b8d6325074e4f1fe11f4d62d8bdd821f8" }, "downloads": -1, "filename": "pixiv-api-0.0.1a1.tar.gz", "has_sig": false, "md5_digest": "240357b4bf595eb1bfce24af8d36924f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 9194, "upload_time": "2019-08-01T05:46:22", "url": "https://files.pythonhosted.org/packages/fb/14/e29029752c6a5624e3783160768635f4ad10f78e145ce4dccd89cda44dcd/pixiv-api-0.0.1a1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "c7d606ae65f52fc48cf70621a738323f", "sha256": "888157e79e8228173346f2adb2c2f9eee741c0fb2ed91addde8ac5dcf68e9597" }, "downloads": -1, "filename": "pixiv_api-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c7d606ae65f52fc48cf70621a738323f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 17285, "upload_time": "2019-08-02T17:35:07", "url": "https://files.pythonhosted.org/packages/49/29/899166628e7b5e563ad51b62d69eeb2b3d70f026a7196628cd51a20117ba/pixiv_api-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0edac296991fc9e6431976d921b1a3a5", "sha256": "8af4b39b5f4c4b9dd191fbdac1eab5b7fb4712376d5a814e1fd3ae4226b94c6e" }, "downloads": -1, "filename": "pixiv-api-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0edac296991fc9e6431976d921b1a3a5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 16539, "upload_time": "2019-08-02T17:35:06", "url": "https://files.pythonhosted.org/packages/f8/de/7d4a760cb29d998433996eedcbf88418e4fcab9deeb2add3d67407cdf36e/pixiv-api-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7f31faa7e264bd7f22e33bae97536a33", "sha256": "a06f74bd9b7188db939b758dc51bfebb5dbdc7060b2f37f0c467189a12c1a3a7" }, "downloads": -1, "filename": "pixiv_api-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7f31faa7e264bd7f22e33bae97536a33", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 17291, "upload_time": "2019-08-04T06:18:58", "url": "https://files.pythonhosted.org/packages/91/6e/b0b675e14e8219c1b86e44336d6d536ad44930d8b9728eebbc13510c9ca4/pixiv_api-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02965feb7ed2c13c0970176d435a5610", "sha256": "0ad02491cb48d9cfc40dfc76fe23139ebb0b82ecc03f4ffd962b8faf1b39b01a" }, "downloads": -1, "filename": "pixiv-api-0.1.1.tar.gz", "has_sig": false, "md5_digest": "02965feb7ed2c13c0970176d435a5610", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 16547, "upload_time": "2019-08-04T06:18:57", "url": "https://files.pythonhosted.org/packages/4c/08/41f68cfbde96c557c11604105480ed94ee426172f8a6e4481874ae371f0e/pixiv-api-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6f7f4d0528535ed9657adbfd1ff5faf6", "sha256": "e1ab4163efe1354102a879081e9dfef54889456f4653291675dc2f1d1ca0ccde" }, "downloads": -1, "filename": "pixiv_api-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6f7f4d0528535ed9657adbfd1ff5faf6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 17391, "upload_time": "2019-08-05T19:48:33", "url": "https://files.pythonhosted.org/packages/6e/bd/04f1f8b09c4ad8bbee54444982bedbb303430430eef87f3177becc16031c/pixiv_api-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "529aa5cc06a5026faa39b72505f1d859", "sha256": "9536f35db8af55c29651e7411d9929e05a3e5620ed48307d10e759cf014e636c" }, "downloads": -1, "filename": "pixiv-api-0.2.0.tar.gz", "has_sig": false, "md5_digest": "529aa5cc06a5026faa39b72505f1d859", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 16770, "upload_time": "2019-08-05T19:48:31", "url": "https://files.pythonhosted.org/packages/b5/50/c52fd4c37af7df595ff1bacb397c621d1ada6465443714e717c2aebcab83/pixiv-api-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "d8e05b89309fb87cdebfb7a4024c9460", "sha256": "3db0765a3aa8a5435dc01150d1143b8b53e4ccb4d703e1974997726f017aa140" }, "downloads": -1, "filename": "pixiv_api-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d8e05b89309fb87cdebfb7a4024c9460", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 17389, "upload_time": "2019-08-09T15:47:37", "url": "https://files.pythonhosted.org/packages/0f/1c/bde25a09564489c933c037511efc3346d05b8adde45dd076fb7e1a9df25b/pixiv_api-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d78c35b85b7e16aba128e5ae7ec8cfa", "sha256": "5b7fa1ffc5ea93680278c4db0595ab08282e78e92f1705ba64964f372a6352b4" }, "downloads": -1, "filename": "pixiv-api-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2d78c35b85b7e16aba128e5ae7ec8cfa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 16774, "upload_time": "2019-08-09T15:47:35", "url": "https://files.pythonhosted.org/packages/d6/d4/a2c4aae1f2fc34f38fa2a6a5b9649b58868026268e6052fc707e3f45b0c2/pixiv-api-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d8e05b89309fb87cdebfb7a4024c9460", "sha256": "3db0765a3aa8a5435dc01150d1143b8b53e4ccb4d703e1974997726f017aa140" }, "downloads": -1, "filename": "pixiv_api-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d8e05b89309fb87cdebfb7a4024c9460", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 17389, "upload_time": "2019-08-09T15:47:37", "url": "https://files.pythonhosted.org/packages/0f/1c/bde25a09564489c933c037511efc3346d05b8adde45dd076fb7e1a9df25b/pixiv_api-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d78c35b85b7e16aba128e5ae7ec8cfa", "sha256": "5b7fa1ffc5ea93680278c4db0595ab08282e78e92f1705ba64964f372a6352b4" }, "downloads": -1, "filename": "pixiv-api-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2d78c35b85b7e16aba128e5ae7ec8cfa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 16774, "upload_time": "2019-08-09T15:47:35", "url": "https://files.pythonhosted.org/packages/d6/d4/a2c4aae1f2fc34f38fa2a6a5b9649b58868026268e6052fc707e3f45b0c2/pixiv-api-0.2.1.tar.gz" } ] }