CrayonAI Stream
Python package for JSON Schema helpers and streaming utilities used in CrayonAI applications.
Installation
pip install crayonai_stream
Usage
JSON Schema Helpers
Convert Pydantic models to template schemas:
from crayonai_stream import pydantic_to_template_schema
from pydantic import BaseModel
class MyTemplate(BaseModel):
name: str
value: int
schema = pydantic_to_template_schema(MyTemplate, "my_template", "A sample template")
Create response formats with multiple templates:
from crayonai_stream import templates_to_response_format, TemplateDefinition
response_format = templates_to_response_format(
TemplateDefinition(
schema=MyTemplate,
name="my_template",
description="A sample template"
)
)
Development
Install development dependencies:
pip install -e ".[dev]"
Run all checks (useful for CI):
make ci
Metadata
Release files for crayonai-stream 0.6.2
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 | |
|---|---|---|---|---|
| crayonai_stream-0.6.2.tar.gz | 6.0 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crayonai_stream-0.6.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / crayonai_stream-0.6.2.tar.gz
| Download URL | crayonai_stream-0.6.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d2074d2e32d45846d6aea32b3ca5e36bf5aa4125349b435a46486ab0dc59582
|
|
BLAKE2b-256 checksum How to use checksums |
e06425cc652afb359d5d5a17b89a8a813d01aeae3b813b4fabcdd42268a08778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Mar 23, 2025.
Transparency logRelease files / crayonai_stream-0.6.2-py3-none-any.whl
| Download URL | crayonai_stream-0.6.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3be620afd0b3960904e0d07cfc731d6273fb01b083d5adc400e165d46ccd6fea
|
|
BLAKE2b-256 checksum How to use checksums |
f79dc5c718975a72e9bdc59282f299590bf0563d4686bb20793919edf6c23eac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Mar 23, 2025.
Transparency logSecurity for crayonai-stream 0.6.2
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for crayonai_stream-0.6.2.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 Mar 23, 2025.
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.