drf-dark-shade
Enhance your Django Rest Framework (DRF) browsing experience with the drf-dark-shade package. This lightweight and easy-to-use extension bring a sleek dark theme to the DRF browsable API, reducing eye strain and providing a modern, visually appealing interface for developers.
Deep Forest Theme:
Installation:
- Install
drf-dark-shadepackage using pip or poetry
pip install drf_dark_shade
- Add
drf_dark_shadeto yourINSTALLED_APPSin your Django project's settings.
INSTALLED_APPS = [
# other packages
'rest_framework', # drf required
'drf_dark_shade',
]
- Add
drf_dark_shaderenderer toREST_FRAMEWORKconfig
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'rest_framework.renderers.JSONRenderer',
'drf_dark_shade.renderers.DeepForestBrowsableAPIRenderer',
)
}
Override templates
To override providing templates:
- Configure root
templatesdir in your django app
TEMPLATES = [
{
...
# configure root templates
'DIRS': [os.path.join(BASE_DIR, "templates")],
'APP_DIRS': True,
...
},
]
- Create template to override with name of the theme you want, like:
templates/drf_dark_shade/deep-forest.html
All set! now run app and visit your API endpoint.
Enjoy Dark 🌃
Contribution
Contributions are welcome!
If you encounter issues or want to add new features, feel free to open pull requests.
Give a ⭐️ if you find this project interesting and useful!
Metadata
Release files for drf-dark-shade 0.1.5
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_dark_shade-0.1.5.tar.gz | 3.7 kB | Without provenance | Details for drf_dark_shade-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drf_dark_shade-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for drf_dark_shade-0.1.5-py3-none-any.whl |
Total release size: 8.4 kB
Release files / drf_dark_shade-0.1.5.tar.gz
| Download URL | drf_dark_shade-0.1.5.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d48e5738f103e3a8b046ca62c6ce68086e782dce7a3f013264ada806155833bf
|
|
BLAKE2b-256 checksum How to use checksums |
72b7a484623b1b93544ed0933baf0e0a641369d20ca91c67a3cf584308ca642b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.0 CPython/3.11.6 Linux/6.1.71-1-MANJARO
|
Release files / drf_dark_shade-0.1.5-py3-none-any.whl
| Download URL | drf_dark_shade-0.1.5-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52dbe448b3ad17a7c33eebdf1f1e023b645e0532115b2b589f04721d04dba7d9
|
|
BLAKE2b-256 checksum How to use checksums |
72b12ce00660767cd587b34143e516ac406fe2cd44a455d52ed69ca95f9d7451
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.0 CPython/3.11.6 Linux/6.1.71-1-MANJARO
|
Security for drf-dark-shade 0.1.5
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.