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_urifor 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 |
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.