Skip to main content

RESTful HTTP Content Negotiation for Flask, Bottle, web.py and webapp2 (Google App Engine)

Project description

Fork for https://github.com/martinblech/mimerender/pull/36. This module provides a decorator that wraps a HTTP request handler to select the correct render function for a given HTTP Accept header. It uses mimeparse to parse the accept string and select the best available representation. Supports Flask, Bottle, web.py and webapp2 out of the box, and it’s easy to add support for other frameworks.

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

mimerender-pr36-0.0.2.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

mimerender_pr36-0.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file mimerender-pr36-0.0.2.tar.gz.

File metadata

  • Download URL: mimerender-pr36-0.0.2.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mimerender-pr36-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2d1f7bc4080132da7040518b2d613eb5e49b583231a9b2be3ac040860c233d80
MD5 6109d80c9012886e16f3600e7893430b
BLAKE2b-256 233925559ff5440e17aad0191e3034afa6e023150bc1e79edacb9268c22131f6

See more details on using hashes here.

Provenance

File details

Details for the file mimerender_pr36-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mimerender_pr36-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for mimerender_pr36-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 260eceeca204d11a4b43cc5d1fe60d757048e6b3dd51b87b64c68c153faadacc
MD5 65d3dcbec6276271cd5f0b5a0df1b6a5
BLAKE2b-256 48d54f84e7b14f115d49bde75babd13e67ec3b19d077bffc937cab2fc524eac5

See more details on using hashes here.

Provenance

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