Redirected from page "PyPiXmlRpc"

Clear message

PyPI APIs: Simple, JSON, XMLRPC.

PyPI's XML-RPC methods

Example usage:

>>> try:
>>>     import xmlrpclib
>>> except ImportError:
>>>     import xmlrpc.client as xmlrpclib
>>> import pprint
>>> client = xmlrpclib.ServerProxy('https://pypi.python.org/pypi')
>>> client.package_releases('roundup')
['1.4.10']
>>> pprint.pprint(client.release_urls('roundup', '1.4.10'))
[{'comment_text': '',
  'downloads': 3163,
  'filename': 'roundup-1.1.2.tar.gz',
  'has_sig': True,
  'md5_digest': '7c395da56412e263d7600fa7f0afa2e5',
  'packagetype': 'sdist',
  'python_version': 'source',
  'size': 876455,
  'upload_time': <DateTime '20060427T06:22:35' at 912fecc>,
  'url': 'http://pypi.python.org/packages/source/r/roundup/roundup-1.1.2.tar.gz'},
 {'comment_text': '',
  'downloads': 2067,
  'filename': 'roundup-1.1.2.win32.exe',
  'has_sig': True,
  'md5_digest': '983d565b0b87f83f1b6460e54554a845',
  'packagetype': 'bdist_wininst',
  'python_version': 'any',
  'size': 614270,
  'upload_time': <DateTime '20060427T06:26:04' at 912fdec>,
  'url': 'http://pypi.python.org/packages/any/r/roundup/roundup-1.1.2.win32.exe'}]

list_packages()

package_releases(package_name, show_hidden=False)

package_roles(package_name)

user_packages(user)

release_downloads(package_name, version)

release_urls(package_name, version)

release_data(package_name, version)

search(spec[, operator])

browse(classifiers)

changelog(since, with_ids=False)

changelog_last_serial()

changelog_since_serial(since_serial)


CategoryDocumentation CategoryDocumentation

PyPIXmlRpc (last edited 2014-10-03 09:39:22 by PaulMoore)

Unable to edit the page? See the FrontPage for instructions.