Skip to main content

Django JSON Utils

Project description

Helper library that can be used in combination with Django Class-Based views to return JSON responses.

Warning: this is a work in progress, pending code refactoring and documentation

Features

  • JSONApiResponseMixin providing render_api_response and render_api_error_response methods

  • Accept JSON request payload

  • JSONApiFormView that can be used for simple JSON APIs using django.forms

  • JSON Web token validation (custom django middleware&auth backend)

  • JSONTestClient providing utilities that can be used to test created APIs

  • Default JSONEncoder handling Decimal numbers

  • Simple jsonify template filter (add ‘jsonis’ to your application list in settings)

License

This software is licensed under MIT.

TODO

  • Examples!

  • Documentation

  • Code Cleanup

  • Tests

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

django-jsonis-0.1.12.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file django-jsonis-0.1.12.tar.gz.

File metadata

File hashes

Hashes for django-jsonis-0.1.12.tar.gz
Algorithm Hash digest
SHA256 d3a52b4494b8cd27bf37bdc47fe677ada750a76722a427509f375d49054e1984
MD5 ddb326293a4c635bd51ab46fea146c70
BLAKE2b-256 15130a48ed6035ae6527622ee570ba5f83118f42a7007992d43014f889e3bc4f

See more details on using hashes here.

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