Skip to main content

No project description provided

Project description

Django Rest Framework msgspec Renderer

Django Rest Framework renderer using msgspec

Installation

pip install drf_msgspec_json

You can then set the MsgspecJSONRenderer class as your default renderer in your settings.py

REST_FRAMEWORK = {
    'DEFAULT_RENDERER_CLASSES': (
        'drf_msgspec_json.renderers.MsgspecJSONRenderer',
    ),
    ...
}

Also you can set the MsgspecJSONParser class as your default parser in your settings.py

REST_FRAMEWORK = {
    'DEFAULT_PARSER_CLASSES': (
        'drf_msgspec_json.parsers.MsgspecJSONParser',
    ),
    ...
}

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

drf_msgspec_json_renderer-0.1.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

drf_msgspec_json_renderer-0.1.2-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

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