DRF Case Middleware
Camel case to snake case and snake case to camel case for Django REST framework.
Getting Started
$ pip install drf-case-middleware
Add the render and parser to your django settings file.
MIDDLEWARE = [
# ... other middlewares
'drf_case_middleware.middlewares.CaseMiddleware',
]
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'drf_case_middleware.renders.CaseJSONRenderer',
'drf_case_middleware.renders.CaseBrowsableAPIRenderer',
# ... other renderers
),
'DEFAULT_PARSER_CLASSES': (
'drf_case_middleware.parsers.CaseFormParser',
'drf_case_middleware.parsers.CaseMultiPartParser',
'drf_case_middleware.parsers.CaseJSONParser',
# ... other renderers
),
}
Note
This project is based on the djangorestframework-camel-case project.
License
MIT License
Metadata
Release files for drf-case-middleware 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| drf-case-middleware-0.1.2.tar.gz | 3.2 kB | Without provenance | Details for drf-case-middleware-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drf_case_middleware-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for drf_case_middleware-0.1.2-py3-none-any.whl |
Total release size: 8.9 kB
Release files / drf-case-middleware-0.1.2.tar.gz
| Download URL | drf-case-middleware-0.1.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fe0196ea488edfb54d0fe5554a985707ade5da9e5e9be866b3db7f94cd5c942
|
|
BLAKE2b-256 checksum How to use checksums |
7fecf3093cd4c33c6084951a8452b32cbb88c20a031e4a654b6215ff570a79e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6
|
Release files / drf_case_middleware-0.1.2-py3-none-any.whl
| Download URL | drf_case_middleware-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c07def3facaa68a00328b04bad9bf04595b2aaf76d6ba439fe9f68917998d5f4
|
|
BLAKE2b-256 checksum How to use checksums |
20d9be2bd3da41bab5ed87cac11ca5a211a6ea82994a99bd7e8a3a961b1ea3f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6
|
Security for drf-case-middleware 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.