Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

papi-0.0.1.tar.gz (22.8 kB view hashes)

Uploaded Source

Built Distribution

papi-0.0.1-py3.4.egg (33.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page