[Python] Obtenez des informations sur le package Python avec l'API PyPI

Comment obtenir des informations sur les packages Python à partir de PyPI à l'aide de l'API. Il y a deux façons de l'obtenir, l'une est d'accéder à l'URL et l'autre de l'obtenir via XML RPC.

Obtenir de l'URL

Vous pouvez obtenir les dernières informations sur le package au format JSON en accédant à https://pypi.org/pypi/ <package_name> / json. Vous pouvez également obtenir des informations sur une version spécifique sur https://pypi.org/pypi/ <nom_package> / <version> / json.

PyPIJSON - Python Wiki https://wiki.python.org/moin/PyPIJSON

Example Informations sur le paquet pip:

{
  "info": {
    "author": "Benjamin Peterson",
    "author_email": "[email protected]",
    "bugtrack_url": null,
    "classifiers": [
      "Intended Audience :: Developers",
      "License :: OSI Approved :: MIT License",
      "Programming Language :: Python :: 2",
      "Programming Language :: Python :: 3",
      "Topic :: Software Development :: Libraries",
      "Topic :: Utilities"
    ],
    "description": ".. image:: http://img.shields.io/pypi/v/six.svg\n   :target: https://pypi.python.org/pypi/six\n\n.. image:: https://travis-ci.org/benjaminp/six.svg?branch=master\n    :target: https://travis-ci.org/benjaminp/six\n\n.. image:: http://img.shields.io/badge/license-MIT-green.svg\n   :target: https://github.com/benjaminp/six/blob/master/LICENSE\n\nSix is a Python 2 and 3 compatibility library.  It provides utility functions\nfor smoothing over the differences between the Python versions with the goal of\nwriting Python code that is compatible on both Python versions.  See the\ndocumentation for more information on what is provided.\n\nSix supports every Python version since 2.6.  It is contained in only one Python\nfile, so it can be easily copied into your project. (The copyright and license\nnotice must be retained.)\n\nOnline documentation is at http://six.rtfd.org.\n\nBugs can be reported to https://github.com/benjaminp/six.  The code can also\nbe found there.\n\nFor questions about six or porting in general, email the python-porting mailing\nlist: https://mail.python.org/mailman/listinfo/python-porting\n\n\n",
    "description_content_type": null,
    "docs_url": "https://pythonhosted.org/six/",
    "download_url": "",
    "downloads": {
      "last_day": -1,
      "last_month": -1,
      "last_week": -1
    },
    "home_page": "http://pypi.python.org/pypi/six/",
    "keywords": "",
    "license": "MIT",
    "maintainer": "",
    "maintainer_email": "",
    "name": "six",
    "package_url": "https://pypi.org/project/six/",
    "platform": "",
    "project_url": "https://pypi.org/project/six/",
    "project_urls": {
      "Homepage": "http://pypi.python.org/pypi/six/"
    },
    "release_url": "https://pypi.org/project/six/1.11.0/",
    "requires_dist": null,
    "requires_python": "",
    "summary": "Python 2 and 3 compatibility utilities",
    "version": "1.11.0"
  },
  "last_serial": 3180827,
  "releases": {
    "0.9.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "5ce2947347101b9f54674c19ef88233d",
          "sha256": "14fd1ed3dd0e1a46cc53b8fc890b5a3b11737515aeb7f42c3af9f38e8d8975d7"
        },
        "downloads": -1,
        "filename": "six-0.9.0.tar.gz",
        "has_sig": true,
        "md5_digest": "5ce2947347101b9f54674c19ef88233d",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 13292,
        "upload_time": "2010-06-29T19:56:36",
        "url": "https://files.pythonhosted.org/packages/0e/f9/66471f9b7e9291cca697b2e61a10645a537f389a9d5c0679d50dd86b20f7/six-0.9.0.tar.gz"
      }
    ],
    "0.9.1": [
      {
        "comment_text": "",
        "digests": {
          "md5": "1b249e0011355722f569406135a8ac93",
          "sha256": "23a656e7db613f75d061570e3b2cf57d2a498501018593e6a01e24ed211a78dc"
        },
        "downloads": -1,
        "filename": "six-0.9.1.tar.gz",
        "has_sig": false,
        "md5_digest": "1b249e0011355722f569406135a8ac93",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 13653,
        "upload_time": "2010-06-30T22:32:11",
        "url": "https://files.pythonhosted.org/packages/4e/02/f08545a99829a04e841b6443267f216629c723c23fb9cfd17c99c068e33a/six-0.9.1.tar.gz"
      }
    ],
    "0.9.2": [
      {
        "comment_text": "",
        "digests": {
          "md5": "92ea7c870396dd9222029a188c6bbd7f",
          "sha256": "2a00a4b85b6a913f688e2dfd8febcef79926524ad10ac25cce25aca25a8a416d"
        },
        "downloads": -1,
        "filename": "six-0.9.2.tar.gz",
        "has_sig": false,
        "md5_digest": "92ea7c870396dd9222029a188c6bbd7f",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 13658,
        "upload_time": "2010-07-05T00:42:38",
        "url": "https://files.pythonhosted.org/packages/af/33/fa2097ac4bc7a9672517fdcb982bc7454fdd113f49f7ab353025b906a119/six-0.9.2.tar.gz"
      }
    ],
    "1.0.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "37c7ff036fdff2b1bb8d55e49ccb3b44",
          "sha256": "ca79c14c8cb5e58912d185f0e07ca9c687e232b7c68c4b73bf1c83ef5979333e"
        },
        "downloads": -1,
        "filename": "six-1.0.0.tar.gz",
        "has_sig": false,
        "md5_digest": "37c7ff036fdff2b1bb8d55e49ccb3b44",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 11694,
        "upload_time": "2011-03-15T16:55:50",
        "url": "https://files.pythonhosted.org/packages/a6/af/4506a069312018665b8936e5d51b3aa013971ef65eab5231ef151a482dcd/six-1.0.0.tar.gz"
      }
    ],
    "1.0b1": [
      {
        "comment_text": "",
        "digests": {
          "md5": "cbfcc64af1f27162a6a6b5510e262c9d",
          "sha256": "3ef868e4818fc3c7f1cf6827a20766d7596fc0d4ab50a74747538262ebf402d4"
        },
        "downloads": -1,
        "filename": "six-1.0b1.tar.gz",
        "has_sig": false,
        "md5_digest": "cbfcc64af1f27162a6a6b5510e262c9d",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 11251,
        "upload_time": "2010-11-20T22:57:30",
        "url": "https://files.pythonhosted.org/packages/8b/08/8f569ab2c81c1443ce43e29df2e7eec1ab7f005455f6c193793728b00f04/six-1.0b1.tar.gz"
      }
    ],
    "1.1.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "9e8099b57cd27493a6988e9c9b313e23",
          "sha256": "8c421a58100704148fd9ad2e38b05d5646f6d3139ac209dfda4c980d124c75ba"
        },
        "downloads": -1,
        "filename": "six-1.1.0.tar.gz",
        "has_sig": false,
        "md5_digest": "9e8099b57cd27493a6988e9c9b313e23",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 12573,
        "upload_time": "2011-11-23T06:43:24",
        "url": "https://files.pythonhosted.org/packages/54/d4/8f7d631f1c3defa2ff4bd7c3daddcc5ed6eb9df7631f3cf24cc376aa3231/six-1.1.0.tar.gz"
      }
    ],
    "1.10.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "3ab558cf5d4f7a72611d59a81a315dc8",
          "sha256": "0ff78c403d9bccf5a425a6d31a12aa6b47f1c21ca4dc2573a7e2f32a97335eb1"
        },
        "downloads": -1,
        "filename": "six-1.10.0-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "3ab558cf5d4f7a72611d59a81a315dc8",
        "packagetype": "bdist_wheel",
        "python_version": "py2.py3",
        "requires_python": null,
        "size": 10341,
        "upload_time": "2015-10-07T03:17:20",
        "url": "https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "34eed507548117b2ab523ab14b2f8b55",
          "sha256": "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
        },
        "downloads": -1,
        "filename": "six-1.10.0.tar.gz",
        "has_sig": false,
        "md5_digest": "34eed507548117b2ab523ab14b2f8b55",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 29630,
        "upload_time": "2015-10-07T03:17:49",
        "url": "https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"
      }
    ],
    "1.11.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "866ab722be6bdfed6830f3179af65468",
          "sha256": "832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"
        },
        "downloads": -1,
        "filename": "six-1.11.0-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "866ab722be6bdfed6830f3179af65468",
        "packagetype": "bdist_wheel",
        "python_version": "py2.py3",
        "requires_python": null,
        "size": 10702,
        "upload_time": "2017-09-17T18:46:53",
        "url": "https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "d12789f9baf7e9fb2524c0c64f1773f8",
          "sha256": "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
        },
        "downloads": -1,
        "filename": "six-1.11.0.tar.gz",
        "has_sig": false,
        "md5_digest": "d12789f9baf7e9fb2524c0c64f1773f8",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 29860,
        "upload_time": "2017-09-17T18:46:54",
        "url": "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz"
      }
    ],
    "1.2.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "2a5d1afc79912832ac78fd38e3d75d7e",
          "sha256": "4a86d87623f75811524f30832e092914d65af7ff2eb1d403e01ec235b0e19cb3"
        },
        "downloads": -1,
        "filename": "six-1.2.0.tar.gz",
        "has_sig": false,
        "md5_digest": "2a5d1afc79912832ac78fd38e3d75d7e",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 15316,
        "upload_time": "2012-08-28T19:55:23",
        "url": "https://files.pythonhosted.org/packages/e9/b4/0ccbc17cd49a812ab8363058bb12f0134cf2d3ba752391f309ddf567ae97/six-1.2.0.tar.gz"
      }
    ],
    "1.3.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "ec47fe6070a8a64c802363d2c2b1e2ee",
          "sha256": "d59793f9b255bd00de800b97f9a50cce4fc8a44c205f7defa5bb7d691d13b852"
        },
        "downloads": -1,
        "filename": "six-1.3.0.tar.gz",
        "has_sig": false,
        "md5_digest": "ec47fe6070a8a64c802363d2c2b1e2ee",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 17701,
        "upload_time": "2013-03-18T20:40:13",
        "url": "https://files.pythonhosted.org/packages/02/f8/d16f06e49b0d2ef40548bf42826f926c8964ad3b1d00f8098dcc6ef15aea/six-1.3.0.tar.gz"
      }
    ],
    "1.4.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "5fcab6a067b5ebf68ede2f4d02fe7547",
          "sha256": "2936d126f28ce59746c1a0a065580cd26d4a39127229124a4b4f9b076ebaaff9"
        },
        "downloads": -1,
        "filename": "six-1.4.0.tar.gz",
        "has_sig": false,
        "md5_digest": "5fcab6a067b5ebf68ede2f4d02fe7547",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 21367,
        "upload_time": "2013-09-01T21:14:06",
        "url": "https://files.pythonhosted.org/packages/99/25/2df8760d6902620cfca85e36f07de491d14f2c325ecc01c1a5590d8af22d/six-1.4.0.tar.gz"
      }
    ],
    "1.4.1": [
      {
        "comment_text": "",
        "digests": {
          "md5": "bdbb9e12d3336c198695aa4cf3a61d62",
          "sha256": "f045afd6dffb755cc0411acb7ce9acc4de0e71261d4b5f91de2e68d9aa5f8367"
        },
        "downloads": -1,
        "filename": "six-1.4.1.tar.gz",
        "has_sig": false,
        "md5_digest": "bdbb9e12d3336c198695aa4cf3a61d62",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 21409,
        "upload_time": "2013-09-02T13:12:05",
        "url": "https://files.pythonhosted.org/packages/4e/aa/73683ca0c4237891e33562e3f55bcaab972869959b97b397637519d92035/six-1.4.1.tar.gz"
      }
    ],
    "1.5.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "3307efe2bc4ca8556befc9afe297c530",
          "sha256": "7ba77770fedd5b84d6c67283912cad39856b5532dc1beb76182ccacee9ec41e0"
        },
        "downloads": -1,
        "filename": "six-1.5.0-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "3307efe2bc4ca8556befc9afe297c530",
        "packagetype": "bdist_wheel",
        "python_version": "3.3",
        "requires_python": null,
        "size": 8186,
        "upload_time": "2014-01-05T00:56:10",
        "url": "https://files.pythonhosted.org/packages/ca/15/e62a66024dded9640f8d39112330e6b108e7ab21a1b8618c2d1e2eea7e1d/six-1.5.0-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "72b33ff89f3b2f21dd2cb28fb94f7031",
          "sha256": "9fa05de9aa4e0042767dd666ce4905a097306b6291148e958162c4ca0b52d16d"
        },
        "downloads": -1,
        "filename": "six-1.5.0.tar.gz",
        "has_sig": false,
        "md5_digest": "72b33ff89f3b2f21dd2cb28fb94f7031",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 23775,
        "upload_time": "2014-01-05T00:56:07",
        "url": "https://files.pythonhosted.org/packages/0f/dd/379fa572b72da0b482545116139529af8da92e686ea136271beecddd4e81/six-1.5.0.tar.gz"
      }
    ],
    "1.5.1": [
      {
        "comment_text": "",
        "digests": {
          "md5": "2064b715201fa76a55dea75675ee19f2",
          "sha256": "a5f2b285f03dd620ea16d22d0986d82d16340ef684445c7ba9ce8a7c1d76046e"
        },
        "downloads": -1,
        "filename": "six-1.5.1-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "2064b715201fa76a55dea75675ee19f2",
        "packagetype": "bdist_wheel",
        "python_version": "3.3",
        "requires_python": null,
        "size": 8396,
        "upload_time": "2014-01-05T05:15:22",
        "url": "https://files.pythonhosted.org/packages/60/84/72c628d5a4efffb23e2fb46cdbf8ee669046d8208ba5dab08f989b7bfe9c/six-1.5.1-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "bb00c982fc0ec0dd6a760500b0941fa9",
          "sha256": "485e543ba816b631f15b3b217f5cc190da1ea2cb4a8c66dbacdc030aef0ba380"
        },
        "downloads": -1,
        "filename": "six-1.5.1.tar.gz",
        "has_sig": false,
        "md5_digest": "bb00c982fc0ec0dd6a760500b0941fa9",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 24000,
        "upload_time": "2014-01-05T05:15:14",
        "url": "https://files.pythonhosted.org/packages/0b/5e/4b3f417a85d9cd30b172a1512a2d3cdd0ffb05a5deacb8adf2ef30db100d/six-1.5.1.tar.gz"
      }
    ],
    "1.5.2": [
      {
        "comment_text": "",
        "digests": {
          "md5": "ba32222ad0c5c7057a7c42e66e81289d",
          "sha256": "01f1bfe26d8b2c2c19b6c6bd1974746667038c7b45601ee510b7b3867fd14b7e"
        },
        "downloads": -1,
        "filename": "six-1.5.2-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "ba32222ad0c5c7057a7c42e66e81289d",
        "packagetype": "bdist_wheel",
        "python_version": "3.3",
        "requires_python": null,
        "size": 8429,
        "upload_time": "2014-01-06T15:57:56",
        "url": "https://files.pythonhosted.org/packages/c7/a4/35520d20a8e4b3c28c9db705fffd4c7053e0236928951da32167e5078faa/six-1.5.2-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "322b86d0c50a7d165c05600154cecc0a",
          "sha256": "fc6beeffdd8fc76b783287eb77d093425d0710920aae2c70acd693c52d7e8cf8"
        },
        "downloads": -1,
        "filename": "six-1.5.2.tar.gz",
        "has_sig": false,
        "md5_digest": "322b86d0c50a7d165c05600154cecc0a",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 24081,
        "upload_time": "2014-01-06T15:57:54",
        "url": "https://files.pythonhosted.org/packages/1d/8e/220ce5a36dac3aabccee871a34561ceba82ce14b53760143cf5e01bb4d2c/six-1.5.2.tar.gz"
      }
    ],
    "1.6.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "e2755cf8a1d8e4eda44a8e3436c458ca",
          "sha256": "511372cb98f84471fcaa0fb2ebdd7e359ebc0c6cfee7b1d8cb38853607f9b25a"
        },
        "downloads": -1,
        "filename": "six-1.6.0-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "e2755cf8a1d8e4eda44a8e3436c458ca",
        "packagetype": "bdist_wheel",
        "python_version": "3.3",
        "requires_python": null,
        "size": 8513,
        "upload_time": "2014-03-14T03:11:13",
        "url": "https://files.pythonhosted.org/packages/54/45/8b5eef1ba0b79acbdab01435359f37ae13dc6c4aafaa444b805e3867386d/six-1.6.0-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "eb22a24e8be9497dd71930bf2321b6ec",
          "sha256": "8741b7f4e25ea45da739d0ffcff086293d3c8b406dc2941342b9368aac56638a"
        },
        "downloads": -1,
        "filename": "six-1.6.0.tar.gz",
        "has_sig": false,
        "md5_digest": "eb22a24e8be9497dd71930bf2321b6ec",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 24716,
        "upload_time": "2014-03-14T03:11:10",
        "url": "https://files.pythonhosted.org/packages/02/c3/8e2a38edaac777ee2bbe479b3a65b020ade549efd6a224c2f4e95c818799/six-1.6.0.tar.gz"
      }
    ],
    "1.6.1": [
      {
        "comment_text": "",
        "digests": {
          "md5": "ca195cc2271b03ae1c8750a88081c7f1",
          "sha256": "8f34f5b89e17fa8a6e3945310318cbd5c8cbb16fa288f78ea96dbc70344cb1bf"
        },
        "downloads": -1,
        "filename": "six-1.6.1-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "ca195cc2271b03ae1c8750a88081c7f1",
        "packagetype": "bdist_wheel",
        "python_version": "3.3",
        "requires_python": null,
        "size": 8557,
        "upload_time": "2014-03-14T03:39:37",
        "url": "https://files.pythonhosted.org/packages/ba/19/aa48edcff9d0c396a4d009d362d0a0a1ac3db6f9d7d5736e0175b94d7ef8/six-1.6.1-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "07d606ac08595d795bf926cc9985674f",
          "sha256": "d4392a7c8d91b005c002568a85faf617c67241c8cd8399cc395e8f1005aff80d"
        },
        "downloads": -1,
        "filename": "six-1.6.1.tar.gz",
        "has_sig": false,
        "md5_digest": "07d606ac08595d795bf926cc9985674f",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 24792,
        "upload_time": "2014-03-14T03:39:35",
        "url": "https://files.pythonhosted.org/packages/e8/70/b9c441d8c02b70eb3bf923c49944b8fc656f78a43c084d2a98534d7404e2/six-1.6.1.tar.gz"
      }
    ],
    "1.7.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "e5ca7e89cc79d755ea128fc7e2cb136e",
          "sha256": "1fb268a43932782f6ca51f1ee922c22b13b47f54f6919e9331db4972b6699490"
        },
        "downloads": -1,
        "filename": "six-1.7.0-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "e5ca7e89cc79d755ea128fc7e2cb136e",
        "packagetype": "bdist_wheel",
        "python_version": "py2.py3",
        "requires_python": null,
        "size": 9340,
        "upload_time": "2014-06-08T02:35:46",
        "url": "https://files.pythonhosted.org/packages/20/0a/617bf23511160454995bf1cbe6789f22beeb8b49c1f3b1bbf4b5cd6a55ca/six-1.7.0-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "92f7210da3db1e988979fa394aa41d7a",
          "sha256": "836335d85210d5dd0f33716b15cc8103bb4f5ec34e2a8809d43bd26d4b6083a1"
        },
        "downloads": -1,
        "filename": "six-1.7.0.tar.gz",
        "has_sig": false,
        "md5_digest": "92f7210da3db1e988979fa394aa41d7a",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 26124,
        "upload_time": "2014-06-08T02:35:49",
        "url": "https://files.pythonhosted.org/packages/7e/16/792311d76b8e23da84e1b177fb973679de1c963391d0dcd7e963634bed4b/six-1.7.0.tar.gz"
      }
    ],
    "1.7.1": [
      {
        "comment_text": "",
        "digests": {
          "md5": "c3c1e251733acc9db947e75c9a02cf06",
          "sha256": "b01d8b5e340f30c89ec1e129292c90853abb449877698bb09b4aa2ebca2730a3"
        },
        "downloads": -1,
        "filename": "six-1.7.1-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "c3c1e251733acc9db947e75c9a02cf06",
        "packagetype": "bdist_wheel",
        "python_version": "py2.py3",
        "requires_python": null,
        "size": 9610,
        "upload_time": "2014-06-09T03:57:48",
        "url": "https://files.pythonhosted.org/packages/aa/ec/e6954e19e617c1b9860325f0995d456d8416c84a6cb9bce1c10998280b59/six-1.7.1-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "f9fbad970c6e855cabde7ec1144b9058",
          "sha256": "c9bf95b1204a9965d94b5c8c486cc92e84b33a339dc1ebc846e2ad8761656986"
        },
        "downloads": -1,
        "filename": "six-1.7.1.tar.gz",
        "has_sig": false,
        "md5_digest": "f9fbad970c6e855cabde7ec1144b9058",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 26375,
        "upload_time": "2014-06-09T03:57:54",
        "url": "https://files.pythonhosted.org/packages/1b/2a/ad686ae156581a70a7be28e7762f7d956bec30d62dafe9295b78dc019692/six-1.7.1.tar.gz"
      }
    ],
    "1.7.2": [
      {
        "comment_text": "",
        "digests": {
          "md5": "0e10f8d8e65257408e4428632859dad9",
          "sha256": "d51ab8b2b0402b3c93f5cfff3906e6d4c957a90e9af640a7ce8cf7da85115111"
        },
        "downloads": -1,
        "filename": "six-1.7.2-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "0e10f8d8e65257408e4428632859dad9",
        "packagetype": "bdist_wheel",
        "python_version": "py2.py3",
        "requires_python": null,
        "size": 9614,
        "upload_time": "2014-06-09T04:15:38",
        "url": "https://files.pythonhosted.org/packages/6b/30/839b8059d1225dbd3a0dd97c3c370bbb978cde505e160b30515fb7be17d8/six-1.7.2-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "4c26276583b01dfc73474cb32327af91",
          "sha256": "c7b85e433ecf2f2df37edb017b954c468342991e1883c8a1e8d8616584b69998"
        },
        "downloads": -1,
        "filename": "six-1.7.2.tar.gz",
        "has_sig": false,
        "md5_digest": "4c26276583b01dfc73474cb32327af91",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 26399,
        "upload_time": "2014-06-09T04:15:44",
        "url": "https://files.pythonhosted.org/packages/a4/ed/a1410f4a3ae1492d87cbc7acdeea819db3caf6e526ef7032dd6fe50d2083/six-1.7.2.tar.gz"
      }
    ],
    "1.7.3": [
      {
        "comment_text": "",
        "digests": {
          "md5": "5f34fe522765d398b21decdce62ebd1d",
          "sha256": "3388fc1a2ca7a5d4261b4d1e3d8b7342cbf4bf1cfb3702311c609321432ced78"
        },
        "downloads": -1,
        "filename": "six-1.7.3-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "5f34fe522765d398b21decdce62ebd1d",
        "packagetype": "bdist_wheel",
        "python_version": "3.3",
        "requires_python": null,
        "size": 9503,
        "upload_time": "2014-06-29T19:30:30",
        "url": "https://files.pythonhosted.org/packages/2e/a4/6dcb84af409b7bc0c258a0d6bd7e14231724d9a46b750c048f09d74d870c/six-1.7.3-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "784c6e5541c3c4952de9c0a966a0a80b",
          "sha256": "7a842c9f882c0b2ab1064d567bb9fff6a21c9efbc3d9992083ad6193787ed393"
        },
        "downloads": -1,
        "filename": "six-1.7.3.tar.gz",
        "has_sig": false,
        "md5_digest": "784c6e5541c3c4952de9c0a966a0a80b",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 26339,
        "upload_time": "2014-06-29T19:30:27",
        "url": "https://files.pythonhosted.org/packages/2b/4a/233721f6c6afeed5a2034f617f120fa646da935039f08e67ab8dc008a3e6/six-1.7.3.tar.gz"
      }
    ],
    "1.8.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "2f5f96148c68f3c1611f489678a8b445",
          "sha256": "facfe0c7cceafd49e8f7e472111294566605fdfddc23011da06cc3a4601c9f7d"
        },
        "downloads": -1,
        "filename": "six-1.8.0-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "2f5f96148c68f3c1611f489678a8b445",
        "packagetype": "bdist_wheel",
        "python_version": "py2.py3",
        "requires_python": null,
        "size": 9697,
        "upload_time": "2014-09-11T21:48:44",
        "url": "https://files.pythonhosted.org/packages/a2/4b/2b4532b4eba116a02fc0b5e0b3540a073a61c003b7b6293b7b884afa8ff1/six-1.8.0-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "1626eb24cc889110c38f7e786ec69885",
          "sha256": "047bbbba41bac37c444c75ddfdf0573dd6e2f1fbd824e6247bb26fa7d8fa3830"
        },
        "downloads": -1,
        "filename": "six-1.8.0.tar.gz",
        "has_sig": false,
        "md5_digest": "1626eb24cc889110c38f7e786ec69885",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 26925,
        "upload_time": "2014-09-11T21:48:46",
        "url": "https://files.pythonhosted.org/packages/11/3f/2b3c217c5427cdd12619024b1ee1b04d49e27fde5c29df2a0b92c26677c2/six-1.8.0.tar.gz"
      }
    ],
    "1.9.0": [
      {
        "comment_text": "",
        "digests": {
          "md5": "9ac7e129a80f72d6fc1f0216f6e9627b",
          "sha256": "418a93c397a7edab23e5588dbc067ac74a723edb3d541bd4936f79476e7645da"
        },
        "downloads": -1,
        "filename": "six-1.9.0-py2.py3-none-any.whl",
        "has_sig": false,
        "md5_digest": "9ac7e129a80f72d6fc1f0216f6e9627b",
        "packagetype": "bdist_wheel",
        "python_version": "3.3",
        "requires_python": null,
        "size": 10222,
        "upload_time": "2015-01-02T16:38:13",
        "url": "https://files.pythonhosted.org/packages/10/e3/a7f8eea80a9fa8358c1cd89ef489bc03675e69e54ed2982cd6f2a28d8295/six-1.9.0-py2.py3-none-any.whl"
      },
      {
        "comment_text": "",
        "digests": {
          "md5": "476881ef4012262dfc8adc645ee786c4",
          "sha256": "e24052411fc4fbd1f672635537c3fc2330d9481b18c0317695b46259512c91d5"
        },
        "downloads": -1,
        "filename": "six-1.9.0.tar.gz",
        "has_sig": false,
        "md5_digest": "476881ef4012262dfc8adc645ee786c4",
        "packagetype": "sdist",
        "python_version": "source",
        "requires_python": null,
        "size": 29127,
        "upload_time": "2015-01-02T16:38:06",
        "url": "https://files.pythonhosted.org/packages/16/64/1dc5e5976b17466fd7d712e59cbe9fb1e18bec153109e5ba3ed6c9102f1a/six-1.9.0.tar.gz"
      }
    ]
  },
  "urls": [
    {
      "comment_text": "",
      "digests": {
        "md5": "866ab722be6bdfed6830f3179af65468",
        "sha256": "832dc0e10feb1aa2c68dcc57dbb658f1c7e65b9b61af69048abc87a2db00a0eb"
      },
      "downloads": -1,
      "filename": "six-1.11.0-py2.py3-none-any.whl",
      "has_sig": false,
      "md5_digest": "866ab722be6bdfed6830f3179af65468",
      "packagetype": "bdist_wheel",
      "python_version": "py2.py3",
      "requires_python": null,
      "size": 10702,
      "upload_time": "2017-09-17T18:46:53",
      "url": "https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl"
    },
    {
      "comment_text": "",
      "digests": {
        "md5": "d12789f9baf7e9fb2524c0c64f1773f8",
        "sha256": "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
      },
      "downloads": -1,
      "filename": "six-1.11.0.tar.gz",
      "has_sig": false,
      "md5_digest": "d12789f9baf7e9fb2524c0c64f1773f8",
      "packagetype": "sdist",
      "python_version": "source",
      "requires_python": null,
      "size": 29860,
      "upload_time": "2017-09-17T18:46:54",
      "url": "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz"
    }
  ]
}

XML RPC Obtenez des informations sur PyPI en utilisant la bibliothèque xmlrpclib. En plus des informations sur les packages, vous pouvez obtenir une liste de tous les packages, et ainsi de suite. Voir ci-dessous pour une liste des méthodes disponibles.

PyPIXmlRpc - Python Wiki https://wiki.python.org/moin/PyPIXmlRpc

Exemple: obtenir des informations spécifiques sur le package

Vous pouvez l'obtenir avec release_data.

try:
     import xmlrpclib
except ImportError:
     import xmlrpc.client as xmlrpclib

client = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
print(client.release_data('SimpleSQLite', '0.2.3'))
{'_pypi_hidden': False,
 '_pypi_ordering': 4,
 'author': 'Tsuyoshi Hombashi',
 'author_email': '[email protected]',
 'bugtrack_url': None,
 'cheesecake_code_kwalitee_id': None,
 'cheesecake_documentation_id': None,
 'cheesecake_installability_id': None,
 'classifiers': ['Development Status :: 4 - Beta',
                 'Intended Audience :: Developers',
                 'License :: OSI Approved :: MIT License',
                 'Operating System :: Microsoft :: Windows',
                 'Operating System :: POSIX',
                 'Operating System :: POSIX :: Linux',
                 'Programming Language :: Python :: 2',
                 'Programming Language :: Python :: 2.6',
                 'Programming Language :: Python :: 2.7',
                 'Programming Language :: Python :: 3',
                 'Programming Language :: Python :: 3.3',
                 'Programming Language :: Python :: 3.4',
                 'Programming Language :: Python :: 3.5',
                 'Topic :: Database',
                 'Topic :: Software Development :: Libraries',
                 'Topic :: Software Development :: Libraries :: Python '
                 'Modules'],
 'description': 'SimpleSQLite\n'
                '============\n'
                '\n'
                '.. image:: '
                'https://img.shields.io/pypi/pyversions/SimpleSQLite.svg\n'
                '   :target: https://pypi.python.org/pypi/SimpleSQLite\n'
                '.. image:: '
                'https://travis-ci.org/thombashi/SimpleSQLite.svg?branch=master\n'
                '    :target: https://travis-ci.org/thombashi/SimpleSQLite\n'
                '.. image:: '
                'https://ci.appveyor.com/api/projects/status/b564t8y34lkcd1hq/branch/master?svg=true\n'
                '    :target: '
                'https://ci.appveyor.com/project/thombashi/simplesqlite/branch/master\n'
                '.. image:: '
                'https://coveralls.io/repos/github/thombashi/SimpleSQLite/badge.svg?branch=master\n'
                '    :target: '
                'https://coveralls.io/github/thombashi/SimpleSQLite?branch=master\n'
                '\n'
                '\n'
                'Summary\n'
                '-------\n'
                '\n'
                'SimpleSQLite is a python library to simplify the table '
                'creation and data insertion in SQLite database.\n'
                '\n'
                '\n'
                'Feature\n'
                '-------\n'
                '\n'
                '- Automatic table creation from data\n'
                '- Support various data types of record(s) insertion into a '
                'table:\n'
                '    - dictionary\n'
                '    - namedtuple\n'
                '    - list\n'
                '    - tuple\n'
                '- Create a table from a csv file\n'
                '\n'
                '\n'
                'Examples\n'
                '========\n'
                '\n'
                'Create a table\n'
                '--------------\n'
                '\n'
                'Create a table from data matrix\n'
                '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n'
                '\n'
                '.. code:: python\n'
                '\n'
                '    from simplesqlite import SimpleSQLite\n'
                '    import six\n'
                '\n'
                '    con = SimpleSQLite("sample.sqlite", "w")\n'
                '    table_name = "sample_table"\n'
                '\n'
                '    # create table -----\n'
                '    data_matrix = [\n'
                '        [1, 1.1, "aaa", 1,   1],\n'
                '        [2, 2.2, "bbb", 2.2, 2.2],\n'
                '        [3, 3.3, "ccc", 3,   "ccc"],\n'
                '    ]\n'
                '    con.create_table_with_data(\n'
                '        table_name="sample_table",\n'
                '        attribute_name_list=["attr_a", "attr_b", "attr_c", '
                '"attr_d", "attr_e"],\n'
                '        data_matrix=data_matrix)\n'
                '\n'
                '    # display values in the table -----\n'
                '    six.print_(con.get_attribute_name_list(table_name))\n'
                '    result = con.select(select="*", table_name=table_name)\n'
                '    for record in result.fetchall():\n'
                '        six.print_(record)\n'
                '\n'
                '    # display data type for each column in the table -----\n'
                '    six.print_(con.get_attribute_type_list(table_name))\n'
                '\n'
                '.. code:: console\n'
                '\n'
                "    ['attr_a', 'attr_b', 'attr_c', 'attr_d', 'attr_e']\n"
                "    (1, 1.1, u'aaa', 1.0, u'1')\n"
                "    (2, 2.2, u'bbb', 2.2, u'2.2')\n"
                "    (3, 3.3, u'ccc', 3.0, u'ccc')\n"
                "    (u'integer', u'real', u'text', u'real', u'text')\n"
                '\n'
                'Insert records into a table\n'
                '---------------------------\n'
                '\n'
                'Insert dictionary\n'
                '~~~~~~~~~~~~~~~~~\n'
                '\n'
                '.. code:: python\n'
                '\n'
                '    from simplesqlite import SimpleSQLite\n'
                '    import six\n'
                '\n'
                '    table_name = "sample_table"\n'
                '    con = SimpleSQLite("sample.sqlite", "w")\n'
                '    con.create_table_with_data(\n'
                '        table_name,\n'
                '        attribute_name_list=["attr_a", "attr_b", "attr_c", '
                '"attr_d", "attr_e"],\n'
                '        data_matrix=[[1, 1.1, "aaa", 1,   1]])\n'
                '\n'
                '    con.insert(\n'
                '        table_name,\n'
                '        insert_record={\n'
                '            "attr_a": 4,\n'
                '            "attr_b": 4.4,\n'
                '            "attr_c": "ddd",\n'
                '            "attr_d": 4.44,\n'
                '            "attr_e": "hoge",\n'
                '        }\n'
                '    )\n'
                '    con.insert_many(\n'
                '        table_name,\n'
                '        insert_record_list=[\n'
                '            {\n'
                '                "attr_a": 5,\n'
                '                "attr_b": 5.5,\n'
                '                "attr_c": "eee",\n'
                '                "attr_d": 5.55,\n'
                '                "attr_e": "foo",\n'
                '            },\n'
                '            {\n'
                '                "attr_a": 6,\n'
                '                "attr_c": "fff",\n'
                '            },\n'
                '        ]\n'
                '    )\n'
                '\n'
                '    result = con.select(select="*", table_name=table_name)\n'
                '    for record in result.fetchall():\n'
                '        six.print_(record)\n'
                '\n'
                '.. code:: console\n'
                '\n'
                "    (1, 1.1, u'aaa', 1, 1)\n"
                "    (4, 4.4, u'ddd', 4.44, u'hoge')\n"
                "    (5, 5.5, u'eee', 5.55, u'foo')\n"
                "    (6, u'NULL', u'fff', u'NULL', u'NULL')\n"
                '\n'
                'Insert list/tuple/namedtuple\n'
                '~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n'
                '\n'
                '.. code:: python\n'
                '\n'
                '    from collections import namedtuple\n'
                '    from simplesqlite import SimpleSQLite\n'
                '    import six\n'
                '\n'
                '    table_name = "sample_table"\n'
                '    con = SimpleSQLite("sample.sqlite", "w")\n'
                '    con.create_table_with_data(\n'
                '        table_name,\n'
                '        attribute_name_list=["attr_a", "attr_b", "attr_c", '
                '"attr_d", "attr_e"],\n'
                '        data_matrix=[[1, 1.1, "aaa", 1,   1]])\n'
                '\n'
                '    SampleTuple = namedtuple(\n'
                '        "SampleTuple", "attr_a attr_b attr_c attr_d attr_e")\n'
                '\n'
                '    con.insert(table_name, insert_record=[7, 7.7, "fff", '
                '7.77, "bar"])\n'
                '    con.insert_many(\n'
                '        table_name,\n'
                '        insert_record_list=[\n'
                '            (8, 8.8, "ggg", 8.88, "foobar"),\n'
                '            SampleTuple(9, 9.9, "ggg", 9.99, "hogehoge"),\n'
                '        ]\n'
                '    )\n'
                '\n'
                '    result = con.select(select="*", table_name=table_name)\n'
                '    for record in result.fetchall():\n'
                '        six.print_(record)\n'
                '\n'
                '.. code:: console\n'
                '\n'
                "    (1, 1.1, u'aaa', 1, 1)\n"
                "    (7, 7.7, u'fff', 7.77, u'bar')\n"
                "    (8, 8.8, u'ggg', 8.88, u'foobar')\n"
                "    (9, 9.9, u'ggg', 9.99, u'hogehoge')\n"
                '\n'
                'For more information\n'
                '--------------------\n'
                'More examples are available at \n'
                'http://simplesqlite.readthedocs.org/en/latest/pages/examples/index.html\n'
                '\n'
                '\n'
                'Installation\n'
                '============\n'
                '\n'
                '::\n'
                '\n'
                '    pip install SimpleSQLite\n'
                '\n'
                '\n'
                'Dependencies\n'
                '============\n'
                '\n'
                'Python 2.6+ or 3.3+\n'
                '\n'
                '-  `DataPropery '
                '<https://github.com/thombashi/DataProperty>`__ (Used to '
                'extract data types)\n'
                '-  `pathvalidate '
                '<https://github.com/thombashi/pathvalidate>`__\n'
                '-  `six <https://pypi.python.org/pypi/six/>`__\n'
                '\n'
                'Test dependencies\n'
                '-----------------\n'
                '\n'
                '-  `pytest <http://pytest.org/latest/>`__\n'
                '-  `pytest-runner '
                '<https://pypi.python.org/pypi/pytest-runner>`__\n'
                '-  `tox <https://testrun.org/tox/latest/>`__\n'
                '\n'
                'Documentation\n'
                '=============\n'
                '\n'
                'http://simplesqlite.readthedocs.org/en/latest/',
 'docs_url': None,
 'download_url': 'UNKNOWN',
 'downloads': {'last_day': 86, 'last_month': 2277, 'last_week': 353},
 'home_page': 'https://github.com/thombashi/SimpleSQLite',
 'keywords': 'SQLite',
 'license': 'MIT License',
 'maintainer': None,
 'maintainer_email': None,
 'name': 'SimpleSQLite',
 'package_url': 'http://pypi.python.org/pypi/SimpleSQLite',
 'platform': 'UNKNOWN',
 'release_url': 'http://pypi.python.org/pypi/SimpleSQLite/0.2.3',
 'requires_python': None,
 'summary': 'SimpleSQLite is a python library to simplify the table creation '
            'and data insertion in SQLite database.',
 'version': '0.2.3'}

Exemple: obtenir une liste de tous les packages

Vous pouvez l'obtenir avec list_packages.

try:
     import xmlrpclib
except ImportError:
     import xmlrpc.client as xmlrpclib

client = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
for package in client.list_packages()[::10000]:
    print(package)
0-._.-._.-._.-._.-._.-._.-0
compares
django-uikit-admin
hashwrapper
mmh3
proxychecker
regressive-imagery-dictionary
tiny_xslt

Recommended Posts

[Python] Obtenez des informations sur le package Python avec l'API PyPI
Obtenir des informations avec l'API Zabbix
Obtenez des informations sur l'alambic avec Python
[Python] Obtenez des informations sur les utilisateurs et des articles sur l'API de Qiita
Obtenez des avis avec l'API googlemap de python
Obtenez des informations météorologiques avec Python et le grattage
Collecter des informations sur Twitter avec Python (API Twitter)
Obtenez des informations sur la propriété en grattant avec python
Obtenez des informations sur la monnaie virtuelle Coincheck avec l'API ♪
Obtenez date avec python
Obtenez des données sur le cours de l'action avec l'API Quandl [Python]
Obtenez des informations sur le processeur de Raspberry Pi avec Python
Obtenez l'objet et le corps de Gmail avec Python et l'API Gmail
Script Python pour obtenir des informations de note avec REAPER
J'ai essayé d'obtenir les informations sur le film de l'API TMDb avec Python
Utiliser l'API Trello avec python
Obtenez la chronologie Twitter avec Python
Utiliser l'API Twitter avec Python
Obtenez des données Youtube avec python
Obtenir le calendrier de l'API Garoon SOAP avec Python + Zeep
API Web avec Python + Falcon
Obtenir l'ID de thread avec python
Commencez avec Python! ~ ② Grammaire ~
Appelez l'API avec python3.
Utiliser l'API subsonique avec python3
Obtenez des stocks avec Python
Obtenir le répertoire personnel avec python
Obtenir un événement de clavier avec python
Obtenez un classement avec l'API Rakuten
Obtenez la version du package pour vous inscrire à PyPI à partir de Git
Obtenez des données de l'API d'analyse avec le client API Google pour python
[Python x Zapier] Obtenez des informations d'alerte et notifiez avec Slack
Essayez Juniper JUNOS PyEz (bibliothèque python) Note 2 ~ Obtenez des informations avec PyEz ~
Appelez l'API github en python pour obtenir des informations sur la demande d'extraction
[Package cloud] Gérez les packages python avec le package cloud
Obtenez des informations sur les fichiers vidéo avec ffmpeg-python
Commencez avec Python! ~ ① Construction de l'environnement ~
Créer Awaitable avec l'API Python / C
Lien pour commencer avec python
Exécutez Rotrics DexArm avec l'API Python
Quine Post avec l'API Qiita (Python)
Obtenez la météo avec les requêtes Python
Obtenez une capture d'écran Web avec python
[Python] Obtenez des données économiques avec DataReader
Comment démarrer avec Python
Accédez à l'API Etherpad-lite avec Python
[Petite histoire] Obtenez l'horodatage avec Python
Obtenez les tendances Qiita avec le scraping Python
python Obtenez la météo à venir de l'API météo
Démarrez avec Python avec Blender
[Python] J'ai essayé d'obtenir diverses informations en utilisant l'API de données YouTube!
PhytoMine-I a essayé d'obtenir les informations génétiques de la plante avec Python
Obtenez des données supplémentaires vers LDAP avec python
Obtenir le code HTML de l'élément avec du sélénium Python
Créez automatiquement la documentation de l'API Python avec Sphinx
Client API Slack simple réalisé avec Python