Skip to main content

A small Django DRF extension library which includes some useful utilities, APIs, Serializers and Services.

Project description

drf-misc

drf-misc is a Django DRF (Django Rest Framework) extension library that provides additional functionality to enhance your REST API development experience. This library offers features such as caching, service provision, and various REST API enhancements.

Features

  • Caching: drf-misc simplifies caching in Django DRF by providing easy-to-use caching decorators and utilities. You can easily cache the responses of your API views or individual methods to improve performance and reduce unnecessary database queries.

  • Service Provision: With drf-misc, you can leverage the service provision pattern to encapsulate business logic and separate it from your views. This promotes code reusability, maintainability, and testability. By utilizing services, you can keep your views lean and focused on handling request/response operations.

  • REST API Enhancements: drf-misc offers various enhancements to Django DRF for building robust REST APIs. It provides additional mixins, serializers, and utility classes to streamline common tasks such as filtering, pagination, sorting, and more. These enhancements aim to reduce boilerplate code and enhance the development process.

Installation

You can install drf-misc using pip:

pip install drf-misc

Make sure you have Django and Django Rest Framework installed as well.

Usage

Once installed, you can import and use the functionalities provided by drf-misc in your Django DRF projects.

For detailed usage instructions and available features, please refer to the documentation.

Contributing

Contributions to drf-misc are welcome! If you encounter any issues, have suggestions, or would like to contribute new features, please feel free to open an issue or submit a pull request on the GitHub repository.

When contributing, please ensure that you follow the existing coding style, write tests for new functionality, and update the documentation accordingly.

License

This project is licensed under the MIT License.


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_misc-0.5.0.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

drf_misc-0.5.0-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file drf_misc-0.5.0.tar.gz.

File metadata

  • Download URL: drf_misc-0.5.0.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for drf_misc-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3765f825c807c6384e22f4292057fbc06a3026a785109ff7c0c6d68fd8b00e3a
MD5 a94586d24ac4742ae9419517e3b9bcbe
BLAKE2b-256 a74322997176bfa166e7923da19e4a1abdf35b72a1ae8bb0b22aa33782c3c0b4

See more details on using hashes here.

File details

Details for the file drf_misc-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: drf_misc-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for drf_misc-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67debcb9b27f089a38ba405fe7b62c7c32972363335b89e3af835d6d3b646761
MD5 937eacc84ee0e78415ae9bcb809a9351
BLAKE2b-256 029ad64333adf7e11d2bf8adc95daae955ffee8a99ee42a83e6ce43feb8f5eae

See more details on using hashes here.

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