This package provides custom metadata class for Django Rest Framework to enrich data returned by OPTIONS requests in easy way.
Project description
DRF complete metadata
About
This package provides custom metadata class for Django Rest Framework to enrich data returned by OPTIONS requests in easy way.
Install
pip install drf-complete-metadata
Usage
Just set the DEFAULT_METADATA_CLASS option in the REST_FRAMEWORK configuration dict in Django settings.
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
],
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated'
],
'DEFAULT_METADATA_CLASS': 'complete_metadata.ApiMetadata',
}
License
The DRF complete autocomplete package is licensed under the FreeBSD License.
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-complete-metadata-1.0.0.tar.gz.
File metadata
- Download URL: drf-complete-metadata-1.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c416d38f1ab992b86238426a954c5295daeee3e12078ed3c0aaa629429f2a3f4
|
|
| MD5 |
f7463d107ae414243e7d8c0c6fd391a0
|
|
| BLAKE2b-256 |
872a8dc4b41e7963357d2f45cf6421c27da28f43defe0a81879f747091227183
|
File details
Details for the file drf_complete_metadata-1.0.0-py3-none-any.whl.
File metadata
- Download URL: drf_complete_metadata-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
520d673d5e648d2fe2d6bf12ceef9f97aeca8b5822ccb18a71ba17fd96b0173b
|
|
| MD5 |
1fb3bf8392c8176f08e11ea422e40cc2
|
|
| BLAKE2b-256 |
df33da5aec959e8af55d8c84b92a5a62ddd8d73d46493c4981e8c38d6f258e3d
|