django-ninja-aio-crud 2.3.0__py3-none-any.whl → 2.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of django-ninja-aio-crud might be problematic. Click here for more details.

@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-ninja-aio-crud
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Django Ninja AIO CRUD - Rest Framework
5
5
  Author: Giuseppe Casillo
6
- Requires-Python: >=3.10, <=3.14
6
+ Requires-Python: >=3.10, <3.15
7
7
  Description-Content-Type: text/markdown
8
8
  Classifier: Operating System :: OS Independent
9
9
  Classifier: Topic :: Internet
@@ -74,6 +74,7 @@ Add to your project’s dependencies and ensure Django Ninja is installed.
74
74
  ## 🚀 Quick Start
75
75
 
76
76
  models.py
77
+
77
78
  ```python
78
79
  from django.db import models
79
80
  from ninja_aio.models import ModelSerializer
@@ -93,6 +94,7 @@ class Book(ModelSerializer):
93
94
  ```
94
95
 
95
96
  views.py
97
+
96
98
  ```python
97
99
  from ninja_aio import NinjaAIO
98
100
  from ninja_aio.views import APIViewSet
@@ -126,6 +128,7 @@ class BookViewSet(APIViewSet):
126
128
  ```
127
129
 
128
130
  Request:
131
+
129
132
  ```
130
133
  GET /book/?published=true&title=python
131
134
  ```
@@ -168,6 +171,7 @@ class ArticleViewSet(APIViewSet):
168
171
  ```
169
172
 
170
173
  Endpoints:
174
+
171
175
  - `GET /article/{pk}/tag?name=dev`
172
176
  - `POST /article/{pk}/tag/` body: `{"add":[1,2],"remove":[3]}`
173
177
 
@@ -202,6 +206,7 @@ class SecureBookViewSet(APIViewSet):
202
206
  ## 📑 Lifecycle Hooks (ModelSerializer)
203
207
 
204
208
  Available on every save/delete:
209
+
205
210
  - `on_create_before_save`
206
211
  - `on_create_after_save`
207
212
  - `before_save`
@@ -250,9 +255,8 @@ class LargePagination(PageNumberPagination):
250
255
  page_size = 50
251
256
  max_page_size = 200
252
257
 
258
+ @api.viewset(Book)
253
259
  class BookViewSet(APIViewSet):
254
- model = Book
255
- api = api
256
260
  pagination_class = LargePagination
257
261
  ```
258
262
 
@@ -261,6 +265,7 @@ class BookViewSet(APIViewSet):
261
265
  ## 🛠 Project Structure & Docs
262
266
 
263
267
  Documentation (MkDocs + Material):
268
+
264
269
  ```
265
270
  docs/
266
271
  getting_started/
@@ -273,17 +278,19 @@ docs/
273
278
  ```
274
279
 
275
280
  Browse full reference:
281
+
276
282
  - APIViewSet: `docs/api/views/api_view_set.md`
277
283
  - APIView: `docs/api/views/api_view.md`
278
284
  - ModelSerializer: `docs/api/models/model_serializer.md`
279
285
  - Authentication: `docs/api/authentication.md`
280
- - Pagination: `docs/api/pagination.md`
286
+ - Example repository: https://github.com/caspel26/ninja-aio-blog-example
281
287
 
282
288
  ---
283
289
 
284
290
  ## 🧪 Tests
285
291
 
286
292
  Use Django test runner + async ORM patterns. Example async pattern:
293
+
287
294
  ```python
288
295
  obj = await Book.objects.acreate(title="T1", published=True)
289
296
  count = await Book.objects.acount()
@@ -323,6 +330,7 @@ class ReadOnlyBookViewSet(APIViewSet):
323
330
  ## ⭐ Support
324
331
 
325
332
  Star the repo or donate:
333
+
326
334
  - [Buy me a coffee](https://buymeacoffee.com/caspel26)
327
335
 
328
336
  ---
@@ -335,11 +343,12 @@ MIT License. See [LICENSE](LICENSE).
335
343
 
336
344
  ## 🔗 Quick Links
337
345
 
338
- | Item | Link |
339
- |------|------|
340
- | PyPI | https://pypi.org/project/django-ninja-aio-crud/ |
341
- | Docs | https://django-ninja-aio.com
342
- | Issues | https://github.com/caspel26/django-ninja-aio-crud/issues |
346
+ | Item | Link |
347
+ | ------- | -------------------------------------------------------- |
348
+ | PyPI | https://pypi.org/project/django-ninja-aio-crud/ |
349
+ | Docs | https://django-ninja-aio.com |
350
+ | Issues | https://github.com/caspel26/django-ninja-aio-crud/issues |
351
+ | Example | https://github.com/caspel26/ninja-aio-blog-example |
343
352
 
344
353
  ---
345
354
 
@@ -1,4 +1,4 @@
1
- ninja_aio/__init__.py,sha256=E3q86wZJvkl9LIkWh-fNxr_uH_7pT-x4KJC-WMIjMY0,119
1
+ ninja_aio/__init__.py,sha256=gBYKYp-SDpKV643SKBBLVlAZrsk3j6ndnV-oOP-Z56U,119
2
2
  ninja_aio/api.py,sha256=tuC7vdvn7s1GkCnSFy9Kn1zv0glZfYptRQVvo8ZRtGQ,2429
3
3
  ninja_aio/auth.py,sha256=4sWdFPjKiQgUL1d_CSGDblVjnY5ptP6LQha6XXdluJA,9157
4
4
  ninja_aio/exceptions.py,sha256=_3xFqfFCOfrrMhSA0xbMqgXy8R0UQjhXaExrFvaDAjY,3891
@@ -21,7 +21,7 @@ ninja_aio/schemas/helpers.py,sha256=W6IeHi5Tmbjh3FXwDYqjqlLBTVj5uTYq3_JVkNUWayo,
21
21
  ninja_aio/views/__init__.py,sha256=DEzjWA6y3WF0V10nNF8eEurLNEodgxKzyFd09AqVp3s,148
22
22
  ninja_aio/views/api.py,sha256=jJ0Awl9ynuvM6rWetgp9KHTKlnwREyjl2cxCobY4I_4,20158
23
23
  ninja_aio/views/mixins.py,sha256=Jh6BG8Cs823nurVlODlzCquTxKrLH7Pmo5udPqUGZek,11378
24
- django_ninja_aio_crud-2.3.0.dist-info/licenses/LICENSE,sha256=yrDAYcm0gRp_Qyzo3GQa4BjYjWRkAhGC8QRva__RYq0,1073
25
- django_ninja_aio_crud-2.3.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
26
- django_ninja_aio_crud-2.3.0.dist-info/METADATA,sha256=6NxeKxjsDeOO3Zp7E-keTspm6tEzzSvXlcpthS0OVYI,8790
27
- django_ninja_aio_crud-2.3.0.dist-info/RECORD,,
24
+ django_ninja_aio_crud-2.3.1.dist-info/licenses/LICENSE,sha256=yrDAYcm0gRp_Qyzo3GQa4BjYjWRkAhGC8QRva__RYq0,1073
25
+ django_ninja_aio_crud-2.3.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
26
+ django_ninja_aio_crud-2.3.1.dist-info/METADATA,sha256=74hdMdbaOSFTfpFXJVgZ_0bydVBGNsO8rnZHOBDTvZg,9047
27
+ django_ninja_aio_crud-2.3.1.dist-info/RECORD,,
ninja_aio/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """Django Ninja AIO CRUD - Rest Framework"""
2
2
 
3
- __version__ = "2.3.0"
3
+ __version__ = "2.3.1"
4
4
 
5
5
  from .api import NinjaAIO
6
6