botanu 0.1.dev60__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.
@@ -0,0 +1,207 @@
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
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
@@ -0,0 +1,200 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. Please also get the
186
+ boilerplate text of the NOTICE file for your work.
187
+
188
+ Copyright [yyyy] [name of copyright owner]
189
+
190
+ Licensed under the Apache License, Version 2.0 (the "License");
191
+ you may not use this file except in compliance with the License.
192
+ You may obtain a copy of the License at
193
+
194
+ http://www.apache.org/licenses/LICENSE-2.0
195
+
196
+ Unless required by applicable law or agreed to in writing, software
197
+ distributed under the License is distributed on an "AS IS" BASIS,
198
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
199
+ See the License for the specific language governing permissions and
200
+ limitations under the License.
@@ -0,0 +1,17 @@
1
+ Botanu SDK for Python
2
+ Copyright 2026 The Botanu Authors
3
+
4
+ This product includes software developed at
5
+ Botanu, Inc. (https://botanu.ai/).
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ This product includes software from the following open source projects:
14
+
15
+ - OpenTelemetry Python (https://github.com/open-telemetry/opentelemetry-python)
16
+ Copyright The OpenTelemetry Authors
17
+ Licensed under the Apache License, Version 2.0
@@ -0,0 +1,208 @@
1
+ Metadata-Version: 2.4
2
+ Name: botanu
3
+ Version: 0.1.dev60
4
+ Summary: OpenTelemetry-native run-level cost attribution for AI workflows
5
+ Project-URL: Homepage, https://github.com/botanu-ai/botanu-sdk-python
6
+ Project-URL: Documentation, https://docs.botanu.ai
7
+ Project-URL: Repository, https://github.com/botanu-ai/botanu-sdk-python
8
+ Project-URL: Changelog, https://github.com/botanu-ai/botanu-sdk-python/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/botanu-ai/botanu-sdk-python/issues
10
+ Author-email: The Botanu Authors <oss@botanu.ai>
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ License-File: NOTICE
14
+ Keywords: ai,cost-attribution,llm,mlops,observability,opentelemetry,tracing
15
+ Classifier: Development Status :: 3 - Alpha
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: License :: OSI Approved :: Apache Software License
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Classifier: Topic :: System :: Monitoring
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.9
28
+ Requires-Dist: opentelemetry-api>=1.20.0
29
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.20.0
30
+ Requires-Dist: opentelemetry-instrumentation-aio-pika>=0.41b0
31
+ Requires-Dist: opentelemetry-instrumentation-aiohttp-client>=0.41b0
32
+ Requires-Dist: opentelemetry-instrumentation-aiohttp-server>=0.41b0
33
+ Requires-Dist: opentelemetry-instrumentation-aiokafka>=0.41b0
34
+ Requires-Dist: opentelemetry-instrumentation-aiopg>=0.41b0
35
+ Requires-Dist: opentelemetry-instrumentation-anthropic>=0.1b0; python_version >= '3.10'
36
+ Requires-Dist: opentelemetry-instrumentation-asyncpg>=0.41b0
37
+ Requires-Dist: opentelemetry-instrumentation-boto3sqs>=0.41b0
38
+ Requires-Dist: opentelemetry-instrumentation-botocore>=0.41b0
39
+ Requires-Dist: opentelemetry-instrumentation-cassandra>=0.41b0
40
+ Requires-Dist: opentelemetry-instrumentation-celery>=0.41b0
41
+ Requires-Dist: opentelemetry-instrumentation-confluent-kafka>=0.41b0
42
+ Requires-Dist: opentelemetry-instrumentation-crewai>=0.1b0; python_version >= '3.10'
43
+ Requires-Dist: opentelemetry-instrumentation-django>=0.41b0
44
+ Requires-Dist: opentelemetry-instrumentation-elasticsearch>=0.41b0
45
+ Requires-Dist: opentelemetry-instrumentation-falcon>=0.41b0
46
+ Requires-Dist: opentelemetry-instrumentation-fastapi>=0.41b0
47
+ Requires-Dist: opentelemetry-instrumentation-flask>=0.41b0
48
+ Requires-Dist: opentelemetry-instrumentation-google-generativeai>=0.1b0; python_version >= '3.10'
49
+ Requires-Dist: opentelemetry-instrumentation-grpc>=0.41b0
50
+ Requires-Dist: opentelemetry-instrumentation-httpx>=0.41b0
51
+ Requires-Dist: opentelemetry-instrumentation-kafka-python>=0.41b0
52
+ Requires-Dist: opentelemetry-instrumentation-langchain>=0.1b0; python_version >= '3.10'
53
+ Requires-Dist: opentelemetry-instrumentation-logging>=0.41b0
54
+ Requires-Dist: opentelemetry-instrumentation-mysql>=0.41b0
55
+ Requires-Dist: opentelemetry-instrumentation-mysqlclient>=0.41b0
56
+ Requires-Dist: opentelemetry-instrumentation-ollama>=0.1b0
57
+ Requires-Dist: opentelemetry-instrumentation-openai-v2>=2.0b0
58
+ Requires-Dist: opentelemetry-instrumentation-pika>=0.41b0
59
+ Requires-Dist: opentelemetry-instrumentation-psycopg2>=0.41b0
60
+ Requires-Dist: opentelemetry-instrumentation-psycopg>=0.41b0
61
+ Requires-Dist: opentelemetry-instrumentation-pymemcache>=0.41b0
62
+ Requires-Dist: opentelemetry-instrumentation-pymongo>=0.41b0
63
+ Requires-Dist: opentelemetry-instrumentation-pymysql>=0.41b0
64
+ Requires-Dist: opentelemetry-instrumentation-pyramid>=0.41b0
65
+ Requires-Dist: opentelemetry-instrumentation-redis>=0.41b0
66
+ Requires-Dist: opentelemetry-instrumentation-requests>=0.41b0
67
+ Requires-Dist: opentelemetry-instrumentation-sqlalchemy>=0.41b0
68
+ Requires-Dist: opentelemetry-instrumentation-sqlite3>=0.41b0
69
+ Requires-Dist: opentelemetry-instrumentation-starlette>=0.41b0
70
+ Requires-Dist: opentelemetry-instrumentation-threading>=0.41b0
71
+ Requires-Dist: opentelemetry-instrumentation-tornado>=0.41b0
72
+ Requires-Dist: opentelemetry-instrumentation-tortoiseorm>=0.41b0
73
+ Requires-Dist: opentelemetry-instrumentation-urllib3>=0.41b0
74
+ Requires-Dist: opentelemetry-instrumentation-urllib>=0.41b0
75
+ Requires-Dist: opentelemetry-instrumentation-vertexai>=0.1b0; python_version >= '3.10'
76
+ Requires-Dist: opentelemetry-instrumentation>=0.41b0
77
+ Requires-Dist: opentelemetry-sdk>=1.20.0
78
+ Provides-Extra: aws
79
+ Requires-Dist: opentelemetry-resource-detector-aws>=0.1b0; extra == 'aws'
80
+ Provides-Extra: azure
81
+ Requires-Dist: opentelemetry-resource-detector-azure>=0.1b0; extra == 'azure'
82
+ Provides-Extra: cloud
83
+ Requires-Dist: opentelemetry-resource-detector-aws>=0.1b0; extra == 'cloud'
84
+ Requires-Dist: opentelemetry-resource-detector-azure>=0.1b0; extra == 'cloud'
85
+ Requires-Dist: opentelemetry-resource-detector-container>=0.1b0; extra == 'cloud'
86
+ Requires-Dist: opentelemetry-resource-detector-gcp>=0.1b0; extra == 'cloud'
87
+ Provides-Extra: container
88
+ Requires-Dist: opentelemetry-resource-detector-container>=0.1b0; extra == 'container'
89
+ Provides-Extra: dev
90
+ Requires-Dist: coverage[toml]>=7.0; extra == 'dev'
91
+ Requires-Dist: httpx<0.28.0,>=0.24.0; extra == 'dev'
92
+ Requires-Dist: mypy>=1.7.0; extra == 'dev'
93
+ Requires-Dist: pre-commit>=3.5.0; extra == 'dev'
94
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
95
+ Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
96
+ Requires-Dist: pytest>=7.4.0; extra == 'dev'
97
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
98
+ Requires-Dist: starlette<0.30.0,>=0.27.0; extra == 'dev'
99
+ Provides-Extra: gcp
100
+ Requires-Dist: opentelemetry-resource-detector-gcp>=0.1b0; extra == 'gcp'
101
+ Description-Content-Type: text/markdown
102
+
103
+ # Botanu SDK for Python
104
+
105
+ [![CI](https://github.com/botanu-ai/botanu-sdk-python/actions/workflows/ci.yml/badge.svg)](https://github.com/botanu-ai/botanu-sdk-python/actions/workflows/ci.yml)
106
+ [![PyPI version](https://img.shields.io/pypi/v/botanu)](https://pypi.org/project/botanu/)
107
+ [![Python](https://img.shields.io/badge/python-3.9%2B-blue)](https://www.python.org/)
108
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE)
109
+
110
+
111
+ Event-level cost attribution for AI workflows, built on [OpenTelemetry](https://opentelemetry.io/).
112
+
113
+ An **event** is one business transaction — resolving a support ticket, processing
114
+ an order, generating a report. Each event may involve multiple **runs** (LLM calls,
115
+ retries, sub-workflows) across multiple services. By correlating every run to a
116
+ stable `event_id`, Botanu gives you per-event cost attribution and outcome
117
+ tracking without sampling artifacts.
118
+
119
+ ## Getting Started
120
+
121
+ ```bash
122
+ pip install botanu
123
+ ```
124
+
125
+ One install. Includes OTel SDK, OTLP exporter, and auto-instrumentation for
126
+ 50+ libraries.
127
+
128
+ ```python
129
+ from botanu import enable, botanu_workflow, emit_outcome
130
+
131
+ enable() # reads config from environment variables
132
+
133
+ @botanu_workflow("my-workflow", event_id="evt-001", customer_id="cust-42")
134
+ async def do_work():
135
+ result = await do_something()
136
+ emit_outcome("success")
137
+ return result
138
+ ```
139
+
140
+ Entry points use `@botanu_workflow`. Every other service only needs `enable()`.
141
+ All configuration is via environment variables — zero hardcoded values in code.
142
+
143
+ See the [Quick Start](./docs/getting-started/quickstart.md) guide for a full walkthrough.
144
+
145
+ ## Documentation
146
+
147
+ | Topic | Description |
148
+ |-------|-------------|
149
+ | [Installation](./docs/getting-started/installation.md) | Install and configure the SDK |
150
+ | [Quick Start](./docs/getting-started/quickstart.md) | Get up and running in 5 minutes |
151
+ | [Configuration](./docs/getting-started/configuration.md) | Environment variables and options |
152
+ | [Core Concepts](./docs/concepts/) | Events, runs, context propagation, architecture |
153
+ | [LLM Tracking](./docs/tracking/llm-tracking.md) | Track model calls and token usage |
154
+ | [Data Tracking](./docs/tracking/data-tracking.md) | Database, storage, and messaging |
155
+ | [Outcomes](./docs/tracking/outcomes.md) | Record business outcomes for ROI |
156
+ | [Auto-Instrumentation](./docs/integration/auto-instrumentation.md) | Supported libraries and frameworks |
157
+ | [Kubernetes](./docs/integration/kubernetes.md) | Zero-code instrumentation at scale |
158
+ | [API Reference](./docs/api/) | Decorators, tracking API, configuration |
159
+ | [Best Practices](./docs/patterns/best-practices.md) | Recommended patterns |
160
+
161
+ ## Requirements
162
+
163
+ - Python 3.9+
164
+ - OpenTelemetry Collector (recommended for production)
165
+
166
+ ## Contributing
167
+
168
+ We welcome contributions from the community. Please read our
169
+ [Contributing Guide](./CONTRIBUTING.md) before submitting a pull request.
170
+
171
+ This project requires [DCO sign-off](https://developercertificate.org/) on all
172
+ commits:
173
+
174
+ ```bash
175
+ git commit -s -m "Your commit message"
176
+ ```
177
+
178
+ Looking for a place to start? Check the
179
+ [good first issues](https://github.com/botanu-ai/botanu-sdk-python/labels/good%20first%20issue).
180
+
181
+ ## Community
182
+
183
+ - [GitHub Discussions](https://github.com/botanu-ai/botanu-sdk-python/discussions) — questions, ideas, show & tell
184
+ - [GitHub Issues](https://github.com/botanu-ai/botanu-sdk-python/issues) — bug reports and feature requests
185
+
186
+ ## Governance
187
+
188
+ See [GOVERNANCE.md](./GOVERNANCE.md) for details on roles, decision-making,
189
+ and the contributor ladder.
190
+
191
+ Current maintainers are listed in [MAINTAINERS.md](./MAINTAINERS.md).
192
+
193
+ ## Security
194
+
195
+ To report a security vulnerability, please use
196
+ [GitHub Security Advisories](https://github.com/botanu-ai/botanu-sdk-python/security/advisories/new)
197
+ or see [SECURITY.md](./SECURITY.md) for full details. **Do not file a public issue.**
198
+
199
+ ## Code of Conduct
200
+
201
+ This project follows the
202
+ [LF Projects Code of Conduct](https://lfprojects.org/policies/code-of-conduct/).
203
+ See [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).
204
+
205
+ ## License
206
+
207
+ [Apache License 2.0](./LICENSE)
208
+