zenpyre 0.0.1a0__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 (46) hide show
  1. zenpyre-0.0.1a0/.gitignore +218 -0
  2. zenpyre-0.0.1a0/LICENSE +28 -0
  3. zenpyre-0.0.1a0/PKG-INFO +116 -0
  4. zenpyre-0.0.1a0/README.md +56 -0
  5. zenpyre-0.0.1a0/pyproject.toml +311 -0
  6. zenpyre-0.0.1a0/zenpyre/__init__.py +13 -0
  7. zenpyre-0.0.1a0/zenpyre/embeddings/__init__.py +7 -0
  8. zenpyre-0.0.1a0/zenpyre/embeddings/factory/__init__.py +15 -0
  9. zenpyre-0.0.1a0/zenpyre/embeddings/factory/base.py +43 -0
  10. zenpyre-0.0.1a0/zenpyre/embeddings/factory/configurable.py +52 -0
  11. zenpyre-0.0.1a0/zenpyre/embeddings/factory/huggingface.py +55 -0
  12. zenpyre-0.0.1a0/zenpyre/embeddings/factory/vanilla.py +49 -0
  13. zenpyre-0.0.1a0/zenpyre/embeddings/resolve.py +62 -0
  14. zenpyre-0.0.1a0/zenpyre/hashing/__init__.py +7 -0
  15. zenpyre-0.0.1a0/zenpyre/hashing/chat_model.py +67 -0
  16. zenpyre-0.0.1a0/zenpyre/py.typed +0 -0
  17. zenpyre-0.0.1a0/zenpyre/testing/__init__.py +2 -0
  18. zenpyre-0.0.1a0/zenpyre/testing/fixtures.py +74 -0
  19. zenpyre-0.0.1a0/zenpyre/text_splitters/__init__.py +7 -0
  20. zenpyre-0.0.1a0/zenpyre/text_splitters/factory/__init__.py +9 -0
  21. zenpyre-0.0.1a0/zenpyre/text_splitters/factory/base.py +43 -0
  22. zenpyre-0.0.1a0/zenpyre/text_splitters/factory/configurable.py +53 -0
  23. zenpyre-0.0.1a0/zenpyre/text_splitters/factory/vanilla.py +49 -0
  24. zenpyre-0.0.1a0/zenpyre/text_splitters/resolve.py +68 -0
  25. zenpyre-0.0.1a0/zenpyre/utils/__init__.py +1 -0
  26. zenpyre-0.0.1a0/zenpyre/utils/fallback/__init__.py +1 -0
  27. zenpyre-0.0.1a0/zenpyre/utils/fallback/langchain_huggingface.py +34 -0
  28. zenpyre-0.0.1a0/zenpyre/utils/fallback/langchain_text_splitters.py +34 -0
  29. zenpyre-0.0.1a0/zenpyre/utils/imports/__init__.py +67 -0
  30. zenpyre-0.0.1a0/zenpyre/utils/imports/langchain_anthropic.py +90 -0
  31. zenpyre-0.0.1a0/zenpyre/utils/imports/langchain_google_genai.py +90 -0
  32. zenpyre-0.0.1a0/zenpyre/utils/imports/langchain_huggingface.py +90 -0
  33. zenpyre-0.0.1a0/zenpyre/utils/imports/langchain_ollama.py +89 -0
  34. zenpyre-0.0.1a0/zenpyre/utils/imports/langchain_openai.py +89 -0
  35. zenpyre-0.0.1a0/zenpyre/utils/imports/langchain_text_splitters.py +91 -0
  36. zenpyre-0.0.1a0/zenpyre/utils/rich/__init__.py +20 -0
  37. zenpyre-0.0.1a0/zenpyre/utils/rich/console.py +65 -0
  38. zenpyre-0.0.1a0/zenpyre/utils/rich/logging.py +106 -0
  39. zenpyre-0.0.1a0/zenpyre/utils/rich/print_.py +83 -0
  40. zenpyre-0.0.1a0/zenpyre/utils/rich/progressbar.py +66 -0
  41. zenpyre-0.0.1a0/zenpyre/vectorstores/__init__.py +7 -0
  42. zenpyre-0.0.1a0/zenpyre/vectorstores/factory/__init__.py +9 -0
  43. zenpyre-0.0.1a0/zenpyre/vectorstores/factory/base.py +44 -0
  44. zenpyre-0.0.1a0/zenpyre/vectorstores/factory/configurable.py +53 -0
  45. zenpyre-0.0.1a0/zenpyre/vectorstores/factory/vanilla.py +50 -0
  46. zenpyre-0.0.1a0/zenpyre/vectorstores/resolve.py +66 -0
@@ -0,0 +1,218 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
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
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Thibaut Durand
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,116 @@
1
+ Metadata-Version: 2.4
2
+ Name: zenpyre
3
+ Version: 0.0.1a0
4
+ Dynamic: Maintainer
5
+ Dynamic: Maintainer-email
6
+ Summary: Utilities for LangChain
7
+ Project-URL: Homepage, https://github.com/durandtibo/zenpyre
8
+ Project-URL: Repository, https://github.com/durandtibo/zenpyre
9
+ Project-URL: Documentation, https://durandtibo.github.io/zenpyre/
10
+ Project-URL: Changelog, https://github.com/durandtibo/zenpyre/releases
11
+ Project-URL: Issues, https://github.com/durandtibo/zenpyre/issues
12
+ Author-email: Thibaut Durand <durand.tibo+gh@gmail.com>
13
+ License-Expression: BSD-3-Clause
14
+ License-File: LICENSE
15
+ Keywords: agent,langchain
16
+ Classifier: Development Status :: 4 - Beta
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: License :: OSI Approved :: BSD License
20
+ Classifier: Operating System :: MacOS
21
+ Classifier: Operating System :: POSIX :: Linux
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Topic :: Scientific/Engineering
28
+ Classifier: Topic :: Software Development :: Libraries
29
+ Classifier: Topic :: Software Development :: Testing
30
+ Requires-Python: >=3.10
31
+ Requires-Dist: coola<2.0,>=1.1.8a3
32
+ Requires-Dist: langchain-core<2.0,>=1.4
33
+ Requires-Dist: langchain<2.0,>=1.3
34
+ Requires-Dist: langgraph<2.0,>=1.2
35
+ Requires-Dist: objectory<1.0,>=0.3.0
36
+ Requires-Dist: rich<16.0,>=15.0
37
+ Provides-Extra: all
38
+ Requires-Dist: langchain-anthropic<2.0,>=1.4; extra == 'all'
39
+ Requires-Dist: langchain-google-genai<5.0,>=4.2; extra == 'all'
40
+ Requires-Dist: langchain-huggingface<2.0,>=1.2; extra == 'all'
41
+ Requires-Dist: langchain-ollama<2.0,>=1.1; extra == 'all'
42
+ Requires-Dist: langchain-openai<2.0,>=1.2; extra == 'all'
43
+ Requires-Dist: langchain-text-splitters<2.0,>=1.0; extra == 'all'
44
+ Requires-Dist: sentence-transformers<6.0,>=5.0; extra == 'all'
45
+ Provides-Extra: anthropic
46
+ Requires-Dist: langchain-anthropic<2.0,>=1.4; extra == 'anthropic'
47
+ Provides-Extra: google-genai
48
+ Requires-Dist: langchain-google-genai<5.0,>=4.2; extra == 'google-genai'
49
+ Provides-Extra: huggingface
50
+ Requires-Dist: langchain-huggingface<2.0,>=1.2; extra == 'huggingface'
51
+ Provides-Extra: ollama
52
+ Requires-Dist: langchain-ollama<2.0,>=1.1; extra == 'ollama'
53
+ Provides-Extra: openai
54
+ Requires-Dist: langchain-openai<2.0,>=1.2; extra == 'openai'
55
+ Provides-Extra: sentence-transformers
56
+ Requires-Dist: sentence-transformers<6.0,>=5.0; extra == 'sentence-transformers'
57
+ Provides-Extra: text-splitters
58
+ Requires-Dist: langchain-text-splitters<2.0,>=1.0; extra == 'text-splitters'
59
+ Description-Content-Type: text/markdown
60
+
61
+ # zenpyre
62
+
63
+ <p align="center">
64
+ <a href="https://github.com/durandtibo/zenpyre/actions/workflows/ci.yaml">
65
+ <img alt="CI" src="https://github.com/durandtibo/zenpyre/actions/workflows/ci.yaml/badge.svg">
66
+ </a>
67
+ <a href="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-tests.yaml">
68
+ <img alt="Nightly Tests" src="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-tests.yaml/badge.svg">
69
+ </a>
70
+ <a href="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-package.yaml">
71
+ <img alt="Nightly Package Tests" src="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-package.yaml/badge.svg">
72
+ </a>
73
+ <a href="https://codecov.io/gh/durandtibo/zenpyre">
74
+ <img alt="Codecov" src="https://codecov.io/gh/durandtibo/zenpyre/branch/main/graph/badge.svg">
75
+ </a>
76
+ <br/>
77
+ <a href="https://durandtibo.github.io/zenpyre/">
78
+ <img alt="Documentation" src="https://github.com/durandtibo/zenpyre/actions/workflows/docs.yaml/badge.svg">
79
+ </a>
80
+ <a href="https://durandtibo.github.io/zenpyre/dev/">
81
+ <img alt="Documentation" src="https://github.com/durandtibo/zenpyre/actions/workflows/docs-dev.yaml/badge.svg">
82
+ </a>
83
+ <br/>
84
+ <a href="https://github.com/psf/black">
85
+ <img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg">
86
+ </a>
87
+ <a href="https://google.github.io/styleguide/pyguide.html#s3.8-comments-and-docstrings">
88
+ <img alt="Doc style: google" src="https://img.shields.io/badge/%20style-google-3666d6.svg">
89
+ </a>
90
+ <a href="https://github.com/astral-sh/ruff">
91
+ <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff" style="max-width:100%;">
92
+ </a>
93
+ <a href="https://github.com/guilatrova/tryceratops">
94
+ <img alt="try/except style: tryceratops" src="https://img.shields.io/badge/try%2Fexcept%20style-tryceratops%20%F0%9F%A6%96%E2%9C%A8-black">
95
+ </a>
96
+ <br/>
97
+ <a href="https://pypi.org/project/zenpyre/">
98
+ <img alt="PYPI version" src="https://img.shields.io/pypi/v/zenpyre">
99
+ </a>
100
+ <a href="https://pypi.org/project/zenpyre/">
101
+ <img alt="Python" src="https://img.shields.io/pypi/pyversions/zenpyre.svg">
102
+ </a>
103
+ <a href="https://opensource.org/licenses/BSD-3-Clause">
104
+ <img alt="BSD-3-Clause" src="https://img.shields.io/pypi/l/zenpyre">
105
+ </a>
106
+ <br/>
107
+ <a href="https://pepy.tech/project/zenpyre">
108
+ <img alt="Downloads" src="https://static.pepy.tech/badge/zenpyre">
109
+ </a>
110
+ <a href="https://pepy.tech/project/zenpyre">
111
+ <img alt="Monthly downloads" src="https://static.pepy.tech/badge/zenpyre/month">
112
+ </a>
113
+ <br/>
114
+ </p>
115
+
116
+ Utilities for LangChain
@@ -0,0 +1,56 @@
1
+ # zenpyre
2
+
3
+ <p align="center">
4
+ <a href="https://github.com/durandtibo/zenpyre/actions/workflows/ci.yaml">
5
+ <img alt="CI" src="https://github.com/durandtibo/zenpyre/actions/workflows/ci.yaml/badge.svg">
6
+ </a>
7
+ <a href="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-tests.yaml">
8
+ <img alt="Nightly Tests" src="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-tests.yaml/badge.svg">
9
+ </a>
10
+ <a href="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-package.yaml">
11
+ <img alt="Nightly Package Tests" src="https://github.com/durandtibo/zenpyre/actions/workflows/nightly-package.yaml/badge.svg">
12
+ </a>
13
+ <a href="https://codecov.io/gh/durandtibo/zenpyre">
14
+ <img alt="Codecov" src="https://codecov.io/gh/durandtibo/zenpyre/branch/main/graph/badge.svg">
15
+ </a>
16
+ <br/>
17
+ <a href="https://durandtibo.github.io/zenpyre/">
18
+ <img alt="Documentation" src="https://github.com/durandtibo/zenpyre/actions/workflows/docs.yaml/badge.svg">
19
+ </a>
20
+ <a href="https://durandtibo.github.io/zenpyre/dev/">
21
+ <img alt="Documentation" src="https://github.com/durandtibo/zenpyre/actions/workflows/docs-dev.yaml/badge.svg">
22
+ </a>
23
+ <br/>
24
+ <a href="https://github.com/psf/black">
25
+ <img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg">
26
+ </a>
27
+ <a href="https://google.github.io/styleguide/pyguide.html#s3.8-comments-and-docstrings">
28
+ <img alt="Doc style: google" src="https://img.shields.io/badge/%20style-google-3666d6.svg">
29
+ </a>
30
+ <a href="https://github.com/astral-sh/ruff">
31
+ <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff" style="max-width:100%;">
32
+ </a>
33
+ <a href="https://github.com/guilatrova/tryceratops">
34
+ <img alt="try/except style: tryceratops" src="https://img.shields.io/badge/try%2Fexcept%20style-tryceratops%20%F0%9F%A6%96%E2%9C%A8-black">
35
+ </a>
36
+ <br/>
37
+ <a href="https://pypi.org/project/zenpyre/">
38
+ <img alt="PYPI version" src="https://img.shields.io/pypi/v/zenpyre">
39
+ </a>
40
+ <a href="https://pypi.org/project/zenpyre/">
41
+ <img alt="Python" src="https://img.shields.io/pypi/pyversions/zenpyre.svg">
42
+ </a>
43
+ <a href="https://opensource.org/licenses/BSD-3-Clause">
44
+ <img alt="BSD-3-Clause" src="https://img.shields.io/pypi/l/zenpyre">
45
+ </a>
46
+ <br/>
47
+ <a href="https://pepy.tech/project/zenpyre">
48
+ <img alt="Downloads" src="https://static.pepy.tech/badge/zenpyre">
49
+ </a>
50
+ <a href="https://pepy.tech/project/zenpyre">
51
+ <img alt="Monthly downloads" src="https://static.pepy.tech/badge/zenpyre/month">
52
+ </a>
53
+ <br/>
54
+ </p>
55
+
56
+ Utilities for LangChain