Parser for nested params in multipart file upload
Project description
# drf-nested-field-multipart
Parser for nested params in multipart file upload
# Usage
```python
from drf_nested_field_multipart import NestedMultipartParser
from rest_framework import viewsets
class YourViewSet(viewsets.ViewSet):
parser_classes = (NestedMultipartParser,)
```
To enable JSON and multipart
```python
from drf_nested_field_multipart import NestedMultipartParser
from rest_framework.parsers import JSONParser
from rest_framework import viewsets
class YourViewSet(viewsets.ViewSet):
parser_classes = (JSONParser, NestedMultipartParser)
```
# Installation
`pip install drf-nested-field-multipart`
Parser for nested params in multipart file upload
# Usage
```python
from drf_nested_field_multipart import NestedMultipartParser
from rest_framework import viewsets
class YourViewSet(viewsets.ViewSet):
parser_classes = (NestedMultipartParser,)
```
To enable JSON and multipart
```python
from drf_nested_field_multipart import NestedMultipartParser
from rest_framework.parsers import JSONParser
from rest_framework import viewsets
class YourViewSet(viewsets.ViewSet):
parser_classes = (JSONParser, NestedMultipartParser)
```
# Installation
`pip install drf-nested-field-multipart`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file drf-nested-field-multipart-0.0.3.tar.gz.
File metadata
- Download URL: drf-nested-field-multipart-0.0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f726847a558e807d239392bb4e1c910bcd995157388fef83e70c506c0265549a
|
|
| MD5 |
60b99295c121085b17aff0fbeddc9678
|
|
| BLAKE2b-256 |
1b1e8294c8eabe22646e6c97349caffc1e9191719c278287616f6bd3710008b0
|
File details
Details for the file drf_nested_field_multipart-0.0.3-py3-none-any.whl.
File metadata
- Download URL: drf_nested_field_multipart-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f957d3071f24d7c94ae7e6f9b299fde046e90653930f31f1114df377651ede4
|
|
| MD5 |
11baeb079816fc613e6bbd601b0eb766
|
|
| BLAKE2b-256 |
0fadd266f478d47730d3b29e062b022481c801b451949e3bd73b7746af9e5b0c
|