Integration guide

We provide multiple APIs to help you integrate with PyPI; see API Reference.

Many tools already integrate with PyPI, uploading packages or retrieving data; see the Python Packaging Guide’s tool recommendations.

Migrating to the new PyPI

Warehouse has now replaced the legacy site If your site/service used to link or upload to, it may continue to work due to redirects, but you should use instead.

A temporary installation of the legacy PyPI codebase is available at until 30 April 2018, when it will be shut down. It reads from the same database backend and file store as See the Warehouse roadmap for further details.

You should also watch our status page and subscribe to the PyPI announcement list (low-traffic) to find out about future changes.

Here are some tips.


{name} is the name of the package as represented in the URL; for, you’d insert arrow wherever you see {name}.

  • If your client correctly follows redirects, you can replace in your links with and everything should just work. For instance, the project detail page{name} (with or without a trailing slash) redirects to{name}/.
  • Shorter URL:{name}/ will redirect to{name}/.
  • All APIs: access is HTTPS-only (changed in October 2017). And honors an Accept-Encoding: gzip header, whereas ignored it.
  • JSON API:{name}/json returns the expected JSON response directly. See JSON API.
  • XML-RPC API: see Changes to Legacy API. Will be deprecated in the future (no specific end date set yet); switch to the RSS or JSON APIs. If you depend on an XML-RPC call that our other APIs do not support, please tell us.
  • Packages/updates RSS feeds: redirects to, and redirects to See Feeds for descriptions. The data differs from the legacy feed data because the new feeds are standards-compliant and fix inaccuracies in the publication date.
  • Documentation upload: Users can no longer use doc_upload in the API to upload documentation ZIP files, separate from packages, to be hosted at (discussion).
  • User-Agent Filtering: Some client user agents have been filtered to always use regardless of brownouts or redirects, in order to give them extra time to migrate. Once is shut down on 30 April, all clients will use regardless of their User-Agent. See the Warehouse Roadmap for a timeline.
  • Subscribe to the PyPI announcement list (low-traffic).

If you’re a PyPI end user or packager looking to migrate to the new PyPI, please see the official Python Packaging User Guide on migrating to PyPI.