4 Commits

Author SHA1 Message Date
0f26c16b15 Fixed some import bugs 2023-09-01 21:11:54 +03:00
c1fd01a6d8 Typos make the world go round 2023-08-30 03:57:38 +03:00
c234f7b1ce Reorganized the repository files for packaging purposes 2023-08-30 03:35:56 +03:00
5b77cab243 Added pyproject.toml for packaging purposes 2023-08-30 02:43:55 +03:00
6 changed files with 25 additions and 3 deletions

22
pyproject.toml Normal file
View 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"

View File

@@ -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 put more reasonable asserts and feedback

View File

@@ -10,7 +10,7 @@ from rest_framework import views
from rest_framework.generics import GenericAPIView
from rest_framework.settings import api_settings
from libraries import mixins
from starfields_drf_generics import mixins
# Concrete view classes that provide method handlers

View File

@@ -8,7 +8,7 @@ from rest_framework import status
from rest_framework.response import Response
from rest_framework.settings import api_settings
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