drf-batch 0.1.0__tar.gz

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.
Files changed (53) hide show
  1. drf_batch-0.1.0/.gitignore +19 -0
  2. drf_batch-0.1.0/CHANGELOG.md +12 -0
  3. drf_batch-0.1.0/LICENSE +30 -0
  4. drf_batch-0.1.0/PKG-INFO +778 -0
  5. drf_batch-0.1.0/README.md +747 -0
  6. drf_batch-0.1.0/SECURITY.md +20 -0
  7. drf_batch-0.1.0/pyproject.toml +149 -0
  8. drf_batch-0.1.0/src/drf_batch/__init__.py +40 -0
  9. drf_batch-0.1.0/src/drf_batch/_utils.py +18 -0
  10. drf_batch-0.1.0/src/drf_batch/apps.py +22 -0
  11. drf_batch-0.1.0/src/drf_batch/collectors.py +94 -0
  12. drf_batch-0.1.0/src/drf_batch/config.py +76 -0
  13. drf_batch-0.1.0/src/drf_batch/conflicts.py +273 -0
  14. drf_batch-0.1.0/src/drf_batch/contrib/__init__.py +1 -0
  15. drf_batch-0.1.0/src/drf_batch/contrib/spectacular.py +222 -0
  16. drf_batch-0.1.0/src/drf_batch/exceptions.py +65 -0
  17. drf_batch-0.1.0/src/drf_batch/fields.py +485 -0
  18. drf_batch-0.1.0/src/drf_batch/loop.py +214 -0
  19. drf_batch-0.1.0/src/drf_batch/mixins.py +289 -0
  20. drf_batch-0.1.0/src/drf_batch/pipeline.py +676 -0
  21. drf_batch-0.1.0/src/drf_batch/py.typed +0 -0
  22. drf_batch-0.1.0/src/drf_batch/retry.py +91 -0
  23. drf_batch-0.1.0/src/drf_batch/serializers.py +217 -0
  24. drf_batch-0.1.0/src/drf_batch/settings.py +36 -0
  25. drf_batch-0.1.0/src/drf_batch/writers.py +215 -0
  26. drf_batch-0.1.0/tests/__init__.py +0 -0
  27. drf_batch-0.1.0/tests/apps/__init__.py +0 -0
  28. drf_batch-0.1.0/tests/apps/demo/__init__.py +0 -0
  29. drf_batch-0.1.0/tests/apps/demo/apps.py +10 -0
  30. drf_batch-0.1.0/tests/apps/demo/collectors.py +98 -0
  31. drf_batch-0.1.0/tests/apps/demo/migrations/0001_initial.py +84 -0
  32. drf_batch-0.1.0/tests/apps/demo/migrations/0002_symbol_symbolorder.py +52 -0
  33. drf_batch-0.1.0/tests/apps/demo/migrations/0003_ordernote.py +34 -0
  34. drf_batch-0.1.0/tests/apps/demo/migrations/0004_order_owner_external_ref.py +30 -0
  35. drf_batch-0.1.0/tests/apps/demo/migrations/__init__.py +0 -0
  36. drf_batch-0.1.0/tests/apps/demo/models.py +88 -0
  37. drf_batch-0.1.0/tests/apps/demo/serializers.py +167 -0
  38. drf_batch-0.1.0/tests/apps/demo/settings.py +61 -0
  39. drf_batch-0.1.0/tests/apps/demo/urls.py +62 -0
  40. drf_batch-0.1.0/tests/apps/demo/views.py +221 -0
  41. drf_batch-0.1.0/tests/conftest.py +64 -0
  42. drf_batch-0.1.0/tests/test_collector.py +251 -0
  43. drf_batch-0.1.0/tests/test_destroy.py +111 -0
  44. drf_batch-0.1.0/tests/test_drf_integration.py +440 -0
  45. drf_batch-0.1.0/tests/test_environment.py +28 -0
  46. drf_batch-0.1.0/tests/test_fields.py +395 -0
  47. drf_batch-0.1.0/tests/test_loop.py +138 -0
  48. drf_batch-0.1.0/tests/test_properties.py +95 -0
  49. drf_batch-0.1.0/tests/test_schema.py +72 -0
  50. drf_batch-0.1.0/tests/test_serializers.py +934 -0
  51. drf_batch-0.1.0/tests/test_settings.py +27 -0
  52. drf_batch-0.1.0/tests/test_update.py +207 -0
  53. drf_batch-0.1.0/tests/test_views.py +538 -0
@@ -0,0 +1,19 @@
1
+ .venv/
2
+ dist/
3
+ build/
4
+ __pycache__/
5
+ *.py[cod]
6
+ .mypy_cache/
7
+ .ruff_cache/
8
+ .pytest_cache/
9
+ .coverage
10
+ *.egg-info/
11
+ .idea/
12
+ .mcp.json
13
+ .claude/
14
+ .hypothesis/
15
+ # Internal working notes: never published.
16
+ REVIEW.md
17
+ road_map.md
18
+ initial_plan.md
19
+ site/
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file. Entries are
4
+ generated from [Conventional Commits](https://www.conventionalcommits.org/) by
5
+ `make bump`, and the project adheres to
6
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## v0.1.0 (2026-10-26)
9
+
10
+ ### Feat
11
+
12
+ - initial release
@@ -0,0 +1,30 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, matin
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice,
10
+ this list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
24
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30
+ POSSIBILITY OF SUCH DAMAGE.