async-batch-llm 0.5.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 (63) hide show
  1. async_batch_llm-0.5.0/.gitignore +157 -0
  2. async_batch_llm-0.5.0/CHANGELOG.md +801 -0
  3. async_batch_llm-0.5.0/LICENSE +21 -0
  4. async_batch_llm-0.5.0/PKG-INFO +815 -0
  5. async_batch_llm-0.5.0/README.md +762 -0
  6. async_batch_llm-0.5.0/docs/API.md +1404 -0
  7. async_batch_llm-0.5.0/docs/GEMINI_INTEGRATION.md +718 -0
  8. async_batch_llm-0.5.0/docs/MIGRATION_V0_4.md +265 -0
  9. async_batch_llm-0.5.0/docs/api/core.md +21 -0
  10. async_batch_llm-0.5.0/docs/api/observers.md +13 -0
  11. async_batch_llm-0.5.0/docs/api/strategies.md +17 -0
  12. async_batch_llm-0.5.0/docs/archive/BATCH_LLM_FEEDBACK.md +331 -0
  13. async_batch_llm-0.5.0/docs/archive/BATCH_LLM_FEEDBACK_OLD.md +874 -0
  14. async_batch_llm-0.5.0/docs/archive/IMPLEMENTATION_PLAN_V0_2.md +1327 -0
  15. async_batch_llm-0.5.0/docs/archive/IMPLEMENTATION_PLAN_V0_3.md +741 -0
  16. async_batch_llm-0.5.0/docs/archive/IMPROVEMENT_PLAN.md +1192 -0
  17. async_batch_llm-0.5.0/docs/archive/MIGRATION.md +218 -0
  18. async_batch_llm-0.5.0/docs/archive/MIGRATION_V0_1.md +546 -0
  19. async_batch_llm-0.5.0/docs/archive/MIGRATION_V0_2.md +413 -0
  20. async_batch_llm-0.5.0/docs/archive/MIGRATION_V0_3.md +725 -0
  21. async_batch_llm-0.5.0/docs/archive/README.md +38 -0
  22. async_batch_llm-0.5.0/docs/contributing.md +160 -0
  23. async_batch_llm-0.5.0/docs/examples/advanced.md +205 -0
  24. async_batch_llm-0.5.0/docs/examples/basic.md +184 -0
  25. async_batch_llm-0.5.0/docs/examples/custom-strategies.md +163 -0
  26. async_batch_llm-0.5.0/docs/getting-started.md +130 -0
  27. async_batch_llm-0.5.0/docs/index.md +102 -0
  28. async_batch_llm-0.5.0/docs/migration/v0.1.md +91 -0
  29. async_batch_llm-0.5.0/docs/migration/v0.4.md +63 -0
  30. async_batch_llm-0.5.0/examples/README.md +69 -0
  31. async_batch_llm-0.5.0/examples/__init__.py +1 -0
  32. async_batch_llm-0.5.0/examples/example.py +414 -0
  33. async_batch_llm-0.5.0/examples/example_anthropic.py +359 -0
  34. async_batch_llm-0.5.0/examples/example_context_manager.py +61 -0
  35. async_batch_llm-0.5.0/examples/example_gemini_direct.py +233 -0
  36. async_batch_llm-0.5.0/examples/example_gemini_smart_retry.py +418 -0
  37. async_batch_llm-0.5.0/examples/example_langchain.py +400 -0
  38. async_batch_llm-0.5.0/examples/example_llm_strategies.py +306 -0
  39. async_batch_llm-0.5.0/examples/example_model_escalation.py +436 -0
  40. async_batch_llm-0.5.0/examples/example_openai.py +318 -0
  41. async_batch_llm-0.5.0/examples/example_smart_model_escalation.py +393 -0
  42. async_batch_llm-0.5.0/pyproject.toml +206 -0
  43. async_batch_llm-0.5.0/src/async_batch_llm/__init__.py +198 -0
  44. async_batch_llm-0.5.0/src/async_batch_llm/base.py +607 -0
  45. async_batch_llm-0.5.0/src/async_batch_llm/classifiers/__init__.py +5 -0
  46. async_batch_llm-0.5.0/src/async_batch_llm/classifiers/gemini.py +140 -0
  47. async_batch_llm-0.5.0/src/async_batch_llm/core/__init__.py +14 -0
  48. async_batch_llm-0.5.0/src/async_batch_llm/core/config.py +201 -0
  49. async_batch_llm-0.5.0/src/async_batch_llm/core/protocols.py +53 -0
  50. async_batch_llm-0.5.0/src/async_batch_llm/llm_strategies.py +937 -0
  51. async_batch_llm-0.5.0/src/async_batch_llm/middleware/__init__.py +5 -0
  52. async_batch_llm-0.5.0/src/async_batch_llm/middleware/base.py +82 -0
  53. async_batch_llm-0.5.0/src/async_batch_llm/observers/__init__.py +6 -0
  54. async_batch_llm-0.5.0/src/async_batch_llm/observers/base.py +51 -0
  55. async_batch_llm-0.5.0/src/async_batch_llm/observers/metrics.py +192 -0
  56. async_batch_llm-0.5.0/src/async_batch_llm/parallel.py +1323 -0
  57. async_batch_llm-0.5.0/src/async_batch_llm/strategies/__init__.py +25 -0
  58. async_batch_llm-0.5.0/src/async_batch_llm/strategies/errors.py +202 -0
  59. async_batch_llm-0.5.0/src/async_batch_llm/strategies/rate_limit.py +122 -0
  60. async_batch_llm-0.5.0/src/async_batch_llm/testing/__init__.py +6 -0
  61. async_batch_llm-0.5.0/src/async_batch_llm/testing/mocks.py +146 -0
  62. async_batch_llm-0.5.0/src/async_batch_llm/testing/strategies.py +34 -0
  63. async_batch_llm-0.5.0/uv.lock +3225 -0
@@ -0,0 +1,157 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ *.manifest
31
+ *.spec
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .nox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ *.py,cover
48
+ .hypothesis/
49
+ .pytest_cache/
50
+ cover/
51
+
52
+ # Translations
53
+ *.mo
54
+ *.pot
55
+
56
+ # Django stuff:
57
+ *.log
58
+ local_settings.py
59
+ db.sqlite3
60
+ db.sqlite3-journal
61
+
62
+ # Flask stuff:
63
+ instance/
64
+ .webassets-cache
65
+
66
+ # Scrapy stuff:
67
+ .scrapy
68
+
69
+ # Sphinx documentation
70
+ docs/_build/
71
+
72
+ # PyBuilder
73
+ .pybuilder/
74
+ target/
75
+
76
+ # Jupyter Notebook
77
+ .ipynb_checkpoints
78
+
79
+ # IPython
80
+ profile_default/
81
+ ipython_config.py
82
+
83
+ # pyenv
84
+ .python-version
85
+
86
+ # pipenv
87
+ Pipfile.lock
88
+
89
+ # poetry
90
+ poetry.lock
91
+
92
+ # pdm
93
+ .pdm.toml
94
+
95
+ # PEP 582
96
+ __pypackages__/
97
+
98
+ # Celery stuff
99
+ celerybeat-schedule
100
+ celerybeat.pid
101
+
102
+ # SageMath parsed files
103
+ *.sage.py
104
+
105
+ # Environments
106
+ .env
107
+ .venv
108
+ env/
109
+ venv/
110
+ ENV/
111
+ env.bak/
112
+ venv.bak/
113
+
114
+ # Spyder project settings
115
+ .spyderproject
116
+ .spyproject
117
+
118
+ # Rope project settings
119
+ .ropeproject
120
+
121
+ # mkdocs documentation
122
+ /site
123
+
124
+ # mypy
125
+ .mypy_cache/
126
+ .dmypy.json
127
+ dmypy.json
128
+
129
+ # Pyre type checker
130
+ .pyre/
131
+
132
+ # pytype static type analyzer
133
+ .pytype/
134
+
135
+ # Cython debug symbols
136
+ cython_debug/
137
+
138
+ # IDEs
139
+ .vscode/
140
+ .idea/
141
+ .claude/settings.local.json
142
+ *.swp
143
+ *.swo
144
+ *~
145
+
146
+ # OS
147
+ .DS_Store
148
+ Thumbs.db
149
+
150
+ # uv
151
+ .uv/
152
+
153
+ # Node
154
+ node_modules/
155
+
156
+ # Internal documentation (development history)
157
+ docs/internal/