Compare commits
4 Commits
stable
...
stable-0.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f26c16b15 | |||
| c1fd01a6d8 | |||
| c234f7b1ce | |||
| 5b77cab243 |
22
pyproject.toml
Normal file
22
pyproject.toml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "starfields-drf-generics"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = [
|
||||||
|
{ name="Anastasios Svolis", email="support@starfields.gr" },
|
||||||
|
]
|
||||||
|
description = "Extends the django-rest-framework generics with automated caching and new filters"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
classifiers = [
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.urls]
|
||||||
|
"Homepage" = "https://git.vickys-corner.xyz/ace/starfields-drf-generics"
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
from libraries.utils import sorted_params_string
|
from starfields_drf_generics.utils import sorted_params_string
|
||||||
|
|
||||||
# TODO classes below that involve create, update, destroy don't delete the caches properly, they need a regex cache delete
|
# TODO classes below that involve create, update, destroy don't delete the caches properly, they need a regex cache delete
|
||||||
# TODO put more reasonable asserts and feedback
|
# TODO put more reasonable asserts and feedback
|
||||||
@@ -10,7 +10,7 @@ from rest_framework import views
|
|||||||
from rest_framework.generics import GenericAPIView
|
from rest_framework.generics import GenericAPIView
|
||||||
from rest_framework.settings import api_settings
|
from rest_framework.settings import api_settings
|
||||||
|
|
||||||
from libraries import mixins
|
from starfields_drf_generics import mixins
|
||||||
|
|
||||||
|
|
||||||
# Concrete view classes that provide method handlers
|
# Concrete view classes that provide method handlers
|
||||||
@@ -8,7 +8,7 @@ from rest_framework import status
|
|||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
from rest_framework.settings import api_settings
|
from rest_framework.settings import api_settings
|
||||||
from rest_framework import mixins
|
from rest_framework import mixins
|
||||||
from libraries.cache_mixins import CacheGetMixin, CacheSetMixin, CacheDeleteMixin
|
from starfields_drf_generics.cache_mixins import CacheGetMixin, CacheSetMixin, CacheDeleteMixin
|
||||||
|
|
||||||
|
|
||||||
# Mixin classes to be included in the generic classes
|
# Mixin classes to be included in the generic classes
|
||||||
Reference in New Issue
Block a user