Skip to main content

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)

Source distribution for crayonai-stream 0.6.2
File Size Uploaded Provenance
crayonai_stream-0.6.2.tar.gz 6.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for crayonai-stream 0.6.2
File Interpreter ABI Platform
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 log

Release 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 log

Security 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.

Select from 2 files

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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page