Skip to main content

xyberos-vision

Vision plugin — RFC-0019, M8. Describe images (vision model), extract text (OCR), and generate images — three tools, three contracts.

Install

pip install -e ./vision
pip install xyberos-vision[ocr]    # optional: pytesseract + pillow for OCR

Usage

from xyberos import create_app
from xyberos_vision import VisionPlugin

app = create_app()
app.load_plugin(VisionPlugin())    # key from OPENAI_API_KEY

app.tools.execute("vision_describe", None, image_path="photo.png", prompt="What's in this photo?")
app.tools.execute("ocr_extract_text", None, image_path="scan.png")
app.tools.execute("image_generate", None, prompt="a sunset over the ocean", output_path="out.png")

Tools

Tool Backed by
vision_describe(image_path, prompt=...) OpenAICompatibleVision (VISION_MODEL, default gpt-4o-mini)
ocr_extract_text(image_path) TesseractOCR (lazy pytesseract + pillow)
image_generate(prompt, output_path) OpenAIImageGenerator (dall-e-3)

Tests

pip install pytest
pytest tests/

Vision/image-gen are tested via injectable transports; OCR tests skip when pytesseract is absent.

Ship location

Plugin (xyberos.plugins entry point) — vision/multimodal (M8).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xyberos_vision-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xyberos_vision-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file xyberos_vision-0.1.0.tar.gz.

File metadata

  • Download URL: xyberos_vision-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xyberos_vision-0.1.0.tar.gz
Algorithm Hash digest
SHA256 814264d9212093635d4bc0e33173dcfaa49300a6dfbca559a2cb047e0d59e8ee
MD5 a092114b4df5631cd2ef7bbe53b3b1d3
BLAKE2b-256 6721123640572ac26ab2425b565c6f0cc268e773ac8b42a6ca9ce471a3dc5a02

See more details on using hashes here.

Provenance

The following attestation bundles were made for xyberos_vision-0.1.0.tar.gz:

Publisher: pypi-plugins.yml on xyberos/xyberos-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xyberos_vision-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xyberos_vision-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xyberos_vision-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3104f076eaf867223df8be8ec86c5f3ee2974e67e5dcbecd100238d4989a7e60
MD5 da78e6190a48ef51075203f6dd5a60ea
BLAKE2b-256 37c3237f8bcf00e8ddcacdf6da9c44448798b4defa49a679de6e3cf751e32882

See more details on using hashes here.

Provenance

The following attestation bundles were made for xyberos_vision-0.1.0-py3-none-any.whl:

Publisher: pypi-plugins.yml on xyberos/xyberos-plugins

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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