Noodler Python SDK
Example
from noodler import setup, instrument_openai
from openai import OpenAI
# Configure OpenTelemetry tracing
setup(
base_url="http://localhost:8000",
api_key="noodler-api-key",
)
# Create and instrument OpenAI client
client = OpenAI()
wrapped_client = instrument_openai(client)
# Use the instrumented client - all API calls will be automatically traced
# Non-streaming
response = wrapped_client.chat.completions.create(
model="gpt-4.1",
messages=[
{"role": "user", "content": "hi there!"}
],
)
# Streaming (also supported)
stream = wrapped_client.chat.completions.create(
model="gpt-4.1",
messages=[
{"role": "user", "content": "hi there!"}
],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content, end="")
Features
- ✅ Automatic tracing of
chat.completions.create()calls - ✅ Support for both streaming and non-streaming responses
- ✅ Full OpenTelemetry GenAI semantic convention compliance
- ✅ Token usage tracking
- ✅ Error tracking and span status reporting
Limitations
Currently, only the chat.completions.create() endpoint is instrumented. Other OpenAI endpoints (embeddings, audio, fine-tuning, etc.) are not automatically traced. Calls to these endpoints will work normally but will not generate traces.
Metadata
Release files for noodler-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| noodler_sdk-0.1.0.tar.gz | 55.9 kB | With provenance | Details for noodler_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| noodler_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for noodler_sdk-0.1.0-py3-none-any.whl |
Total release size: 66.3 kB
Release files / noodler_sdk-0.1.0.tar.gz
| Download URL | noodler_sdk-0.1.0.tar.gz |
|---|---|
| Size | 55.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16b3b892b4e1d65b855fecd334cb78dd685e5214a6d8cfcbcaec14b46cbcd763
|
|
BLAKE2b-256 checksum How to use checksums |
fbb509a7c621d414c7128bedd1d32034884cd4d265d263568612a0ef4a4665dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 10, 2026.
Transparency logRelease files / noodler_sdk-0.1.0-py3-none-any.whl
| Download URL | noodler_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfd77e25e0fcc2924cd6d6ae425359f2742658803ac5510b99bc9ef930e955dc
|
|
BLAKE2b-256 checksum How to use checksums |
d7ea426f13fc6d9395974175b6fca7a8e62855076a421df3928dc9881ce2f8c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 10, 2026.
Transparency logSecurity for noodler-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for noodler_sdk-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.