Skip to main content

No project description provided

Project description

MimeProvider

Small framework component for pyramid to serialize/deserializer resources depending on mimetypes.

This project is suitable for data driven REST api’s, it adapts to the standard negotation in HTTPs, or specifically the Accept and Content-Type headers to decide the format and type of incoming and outgoing resources.

Example

see examples/small_application.py

If you boot up the example application, you will see the magic in action.

curl http://localhost:8080/missing -H “Accept: /” -v

or surf to the same address, notice that it serves a minimal html page describing the resource.

curl http://localhost:8080/missing -H “Accept: /” -H “Content-Type: application/somedata+json” –data ‘{“string”: “Oh No”, “integer”: 42, “somelist”: [1, 2, 3, 4]}’

The sole responsibility for this project is to assert that types are negotiated correctly, and are clearly distinguished from formats. In order to build a fully functional API there are still a few steps necessary.

  • Schema validation

  • Database access (if applicable)

  • Data binding (from front-end data types to backend)

Project details


Download files

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

Source Distributions

mimey3000-0.1.5.zip (11.7 kB view details)

Uploaded Source

mimey3000-0.1.5.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file mimey3000-0.1.5.zip.

File metadata

  • Download URL: mimey3000-0.1.5.zip
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mimey3000-0.1.5.zip
Algorithm Hash digest
SHA256 fa78891482196322c53fe6ab1558fad01f2bcf82c061cbb4c88027c46a595336
MD5 9d8d8bedcdb94c722705d293f8a06d5a
BLAKE2b-256 6228c77244176c78e3a91502b8eff15b31d30f85dd40339d4bbe5ce334787562

See more details on using hashes here.

File details

Details for the file mimey3000-0.1.5.tar.gz.

File metadata

  • Download URL: mimey3000-0.1.5.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mimey3000-0.1.5.tar.gz
Algorithm Hash digest
SHA256 bbdc2322affaf2a50a667101fc3da35351060d7c8d222f6ee02a86380f0b7de2
MD5 74239619f23aca41fea94d7a5a0923e7
BLAKE2b-256 0f7e0d1a37938bf929116574164e67a81aa50710e32cc9b8caa513bea605d704

See more details on using hashes here.

Supported by

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