Metadata-Version: 2.5
Name: langchain-hubris
Version: 0.1.1
Summary: An integration package connecting Hubris and LangChain
Project-URL: Homepage, https://hubris.pw
Project-URL: Documentation, https://hubris.pw/docs/integrations/langchain
Project-URL: Repository, https://github.com/Aimagine-life/langchain-hubris
Project-URL: Issues, https://github.com/Aimagine-life/langchain-hubris/issues
Author-email: Hubris <support@hubris.pw>
License: MIT
License-File: LICENSE
Requires-Python: <4.0,>=3.10
Requires-Dist: langchain-core<2.0.0,>=1.4.0
Requires-Dist: langchain-openai<2.0.0,>=1.1.0
Provides-Extra: lint
Requires-Dist: ruff<0.14.0,>=0.13.0; extra == 'lint'
Provides-Extra: test
Requires-Dist: langchain-tests<1.0.0,>=0.3.0; extra == 'test'
Requires-Dist: pytest-asyncio<1.0.0,>=0.23.0; extra == 'test'
Requires-Dist: pytest-mock<4.0.0,>=3.10.0; extra == 'test'
Requires-Dist: pytest<9.0.0,>=8.0.0; extra == 'test'
Provides-Extra: typing
Requires-Dist: mypy<2.0.0,>=1.10.0; extra == 'typing'
Description-Content-Type: text/markdown

# langchain-hubris

This package contains the LangChain integration with [Hubris](https://hubris.pw) — a ruble-billed, OpenAI-compatible LLM gateway giving access to 400+ models (OpenAI, Anthropic, Google, and more) behind a single API key.

## Installation

```bash
pip install -U langchain-hubris
```

And set your `HUBRIS_API_KEY` environment variable — create one at [hubris.pw/keys](https://hubris.pw/keys).

## Chat Models

`ChatHubris` exposes the full model catalog at [hubris.pw/models](https://hubris.pw/models):

```python
from langchain_hubris import ChatHubris

llm = ChatHubris(model="anthropic/claude-sonnet-5")
llm.invoke("Write a haiku about the sea.")
```

Model IDs always use the full `vendor/model` form shown in the catalog — there's no alias resolution, an unprefixed name 404s.

`ChatHubris` extends [`BaseChatOpenAI`](https://reference.langchain.com/python/integrations/langchain_openai/), so streaming, tool calling, and structured output all work out of the box.

## Documentation

Full docs: [hubris.pw/docs/integrations/langchain](https://hubris.pw/docs/integrations/langchain)
