Skip to main content

chat-adapter-shared

Shared helpers used by every chat-adapter-* package in chat-py. Python port of upstream packages/adapter-shared.

You only depend on this package directly if you're implementing a new adapter. Normal users pull it in transitively through chat-adapter-slack, chat-adapter-teams, etc.

Install

uv add chat-py-adapter-shared

What it ships

  • adapter_utils — extract_card, extract_files (pull card / file payloads out of a message).
  • buffer_utils — to_buffer, to_buffer_sync, buffer_to_data_uri for fetching and normalizing file inputs (bytes, paths, URLs, data URIs).
  • card_utils — card_to_fallback_text (plain-text rendering of a card), map_button_style, render_gfm_table, create_emoji_converter.
  • errors — shared error hierarchy: AdapterError, AdapterRateLimitError, AuthenticationError, NetworkError, PermissionError, ResourceNotFoundError, ValidationError.

Parity notes

  • 1:1 port of upstream helpers; function names and semantics match.

Test

uv run pytest packages/chat-adapter-shared

Upstream

https://github.com/vercel/chat/tree/main/packages/adapter-shared

Metadata

Release files for chat-py-adapter-shared 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for chat-py-adapter-shared 0.1.0
File Interpreter ABI Platform Actions
chat_py_adapter_shared-0.1.0-py3-none-any.whl Python 3 none any Details for chat_py_adapter_shared-0.1.0-py3-none-any.whl

Release files / chat_py_adapter_shared-0.1.0-py3-none-any.whl

Download URL chat_py_adapter_shared-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a7ba303f34d3d1c4aa67b81a6b794b0fe1be8d7e0ce12fc5094d4151e2ffbc7
BLAKE2b-256 checksum
How to use checksums
ea0699f70e5effb558ccdc8df6737cff2117ef3a0c20052284f5622654927fa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.20 {"installer":{"name":"uv","version":"0.9.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for chat-py-adapter-shared 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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