Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Build RESTful APIs with minimal boilerplate

Project Description

# papi

## Low-Boilerplate RESTful APIs

## Introduction

papi is a library that allows you to build powerful RESTful web services on top of plain WSGI by writing backends as simple and semantic classes, and then feeding them to its equally simple WSGI wrapper function.

## Features

  • Proper RESTful semantics over HTTP(S): GET, PUT, POST, DELETE map to retrieve / list resources, create, update, delete
  • Automatic routing
  • Automatic HATEOAS decoration (adds links to parent, self, and children, on every JSON response)
  • Semi-automatic content type negotiation: JSON is handled transparently, other content types are easy to support in your backend code
  • Automatic translations of failures to HTTP error responses; uses the 4xx range of status codes correctly
  • Runs on any compliant WSGI host, making it suitable for deployment under a wide range of web servers and protocols
Release History

Release History

This version
History Node


Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting