Metadata-Version: 2.5
Name: kairntech-chainlit
Version: 2.12.3
Summary: Build Conversational AI.
Project-URL: Homepage, https://chainlit.io/
Project-URL: Documentation, https://docs.chainlit.io/
Project-URL: Upstream, https://github.com/Chainlit/chainlit
Project-URL: Community-fork, https://github.com/chainlit-community/chainlit
Author: Willy Douhard, Dan Andre Constantini
License: Apache-2.0
Keywords: Agents,LLM,MCP,chat ui,chatbot ui,conversational ai,copilot,gen ai,langchain,openai
Classifier: Environment :: Web Environment
Classifier: Framework :: FastAPI
Classifier: Programming Language :: JavaScript
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: <3.14.0,>=3.10
Requires-Dist: aiofiles>=23.1.0
Requires-Dist: asyncer<0.1.0,>=0.0.8
Requires-Dist: click<9.0.0,>=8.1.3
Requires-Dist: dataclasses-json<0.7.0,>=0.6.7
Requires-Dist: fastapi>=0.133.0
Requires-Dist: filetype<2.0.0,>=1.2.0
Requires-Dist: httpx>=0.23.0
Requires-Dist: lazify<0.5.0,>=0.4.0
Requires-Dist: literalai==0.1.201
Requires-Dist: mcp<2.0.0,>=1.30.0
Requires-Dist: nest-asyncio<2.0.0,>=1.6.0
Requires-Dist: packaging>=23.1
Requires-Dist: pydantic-settings>=2.14.2
Requires-Dist: pydantic<3,>=2.11.0
Requires-Dist: pyjwt<3.0.0,>=2.15.0
Requires-Dist: python-dotenv<2.0.0,>=1.2.2
Requires-Dist: python-multipart<1.0.0,>=0.0.31
Requires-Dist: python-socketio<6.0.0,>=5.16.2
Requires-Dist: starlette>=1.3.1
Requires-Dist: syncer<3.0.0,>=2.0.3
Requires-Dist: tomli<3.0.0,>=2.0.1
Requires-Dist: uvicorn>=0.35.0
Requires-Dist: watchfiles<2.0.0,>=1.1.1
Provides-Extra: custom-data
Requires-Dist: asyncpg<1.0.0,>=0.30.0; extra == 'custom-data'
Requires-Dist: azure-identity<2.0.0,>=1.14.1; extra == 'custom-data'
Requires-Dist: azure-storage-blob<13.0.0,>=12.24.0; extra == 'custom-data'
Requires-Dist: azure-storage-file-datalake<13.0.0,>=12.14.0; extra == 'custom-data'
Requires-Dist: boto3<2.0.0,>=1.34.73; extra == 'custom-data'
Requires-Dist: google-cloud-storage<4.0.0,>=2.19.0; extra == 'custom-data'
Requires-Dist: sqlalchemy<3.0.0,>=2.0.28; extra == 'custom-data'
Provides-Extra: mypy
Requires-Dist: mypy-boto3-dynamodb<2.0.0,>=1.34.113; extra == 'mypy'
Requires-Dist: mypy<2.0.0,>=1.13; extra == 'mypy'
Requires-Dist: pandas-stubs<4.0.0,>=2.2.2; (python_version >= '3.9') and extra == 'mypy'
Requires-Dist: types-aiofiles<26.0.0,>=23.1.0.5; extra == 'mypy'
Requires-Dist: types-requests<3.0.0,>=2.31.0.2; extra == 'mypy'
Provides-Extra: sbom
Requires-Dist: cyclonedx-bom; extra == 'sbom'
Requires-Dist: pip-audit; extra == 'sbom'
Provides-Extra: tests
Requires-Dist: aiosqlite<1.0.0,>=0.20.0; extra == 'tests'
Requires-Dist: botbuilder-core<5.0.0,>=4.15.0; extra == 'tests'
Requires-Dist: discord<3.0.0,>=2.3.2; extra == 'tests'
Requires-Dist: langchain>=1.0.0; extra == 'tests'
Requires-Dist: llama-index<1.0.0,>=0.13.0; extra == 'tests'
Requires-Dist: matplotlib<4.0.0,>=3.7.1; extra == 'tests'
Requires-Dist: moto<6.0.0,>=5.0.14; extra == 'tests'
Requires-Dist: openai<3.0.0,>=2.0.0; extra == 'tests'
Requires-Dist: pandas<4.0.0,>=2.2.2; extra == 'tests'
Requires-Dist: plotly<7.0.0,>=5.3.0; extra == 'tests'
Requires-Dist: polars<2.0.0,>=1.0.0; extra == 'tests'
Requires-Dist: pytest-asyncio<2.0.0,>=1.0.0; extra == 'tests'
Requires-Dist: pytest-cov<7.0.0,>=6.0.0; extra == 'tests'
Requires-Dist: pytest<10.0.0,>=8.3.2; extra == 'tests'
Requires-Dist: semantic-kernel<2.0.0,>=1.24.0; extra == 'tests'
Requires-Dist: slack-bolt<2.0.0,>=1.18.1; extra == 'tests'
Requires-Dist: tenacity<10.0.0,>=9.0.0; extra == 'tests'
Requires-Dist: transformers<6.0,>=5.0; extra == 'tests'
Description-Content-Type: text/markdown

<h1 align="center">kairntech-chainlit</h1>

<p align="center">
<b>Kairntech's maintenance fork of <a href="https://github.com/Chainlit/chainlit">Chainlit</a> 2.12</b>
</p>

> ⚠️ **This is a fork.** The original [Chainlit/chainlit](https://github.com/Chainlit/chainlit) repository was
> archived by its owners on 2026-10-15, after its last release, 2.12.0. Kairntech maintains this fork for its own
> products (the Sherpa chatbots). It is not affiliated with, maintained by or endorsed by Chainlit SAS, which
> provides no warranties on it. Licensed Apache-2.0, like the original.

## How it differs from Chainlit 2.12.0

- **Package name**: `pip install kairntech-chainlit`. The imported module is still `chainlit`, and the CLI is
  still `chainlit`. Do not install it next to the `chainlit` package: both provide the same module.
- **Versions**: `2.12.N`, following the upstream 2.12 line; `N` is the build number of our CI.
- **Security and bug fixes**: taken from the upstream `main` branch after 2.12.0 and from the community
  maintenance fork [chainlit-community/chainlit](https://github.com/chainlit-community/chainlit), cherry-picked
  (`git cherry-pick -x`, so each commit names its origin) rather than rewritten. The dependency floors are raised
  accordingly.
- **`features.auto_open_side_view`** (`.chainlit/config.toml`, default `true`): since 2.11 the side view opens by
  itself on the latest `display="side"` element of a message. Set it to `false` to open side elements only when
  the user clicks their reference, as in 2.10.
- **OAuth**: `oauth_callback` receives the provider's `id_token` (5th argument) in the authorization-code flow
  too, not only in the Azure AD hybrid flow.
- **Private user metadata**: `GET /user` never returns `metadata["auth"]`. Apps can keep server-side credentials
  there (e.g. the IdP access token used to call APIs on the user's behalf) without sending them to the browser.

No new features otherwise: the scope is fixes, security, and what our products need. The rest of this page is the
original Chainlit README; its links (documentation, cookbook, Discord) belong to the original project.

---

<p align="center">
    <a href="https://chainlit.io"><b>Website</b></a>  •  
    <a href="https://docs.chainlit.io"><b>Documentation</b></a>  •  
    <a href="https://help.chainlit.io"><b>Chainlit Help</b></a>  •  
    <a href="https://github.com/Chainlit/cookbook"><b>Cookbook</b></a>
</p>

<p align="center">
    <a href="https://trendshift.io/repositories/6708" target="_blank"><img src="https://trendshift.io/api/badge/repositories/6708" alt="Chainlit%2Fchainlit | Trendshift" style="width: 250px; height: 45px;" width="250" height="45"/></a>
</p>

https://github.com/user-attachments/assets/b3738aba-55c0-42fa-ac00-6efd1ee0d148

## Installation

Open a terminal and run:

```sh
pip install chainlit
chainlit hello
```

If this opens the `hello app` in your browser, you're all set!

### Development version

The latest in-development version can be installed straight from GitHub with:

```sh
pip install git+https://github.com/Chainlit/chainlit.git#subdirectory=backend/
```

(Requires Node and pnpm installed on the system.)

## 🚀 Quickstart

### 🐍 Pure Python

Create a new file `demo.py` with the following code:

```python
import chainlit as cl


@cl.step(type="tool")
async def tool():
    # Fake tool
    await cl.sleep(2)
    return "Response from the tool!"


@cl.on_message  # this function will be called every time a user inputs a message in the UI
async def main(message: cl.Message):
    """
    This function is called every time a user inputs a message in the UI.
    It sends back an intermediate response from the tool, followed by the final answer.

    Args:
        message: The user's message.

    Returns:
        None.
    """


    # Call the tool
    tool_res = await tool()

    await cl.Message(content=tool_res).send()
```

Now run it!

```sh
chainlit run demo.py -w
```

<img src="/images/quick-start.png" alt="Quick Start"></img>

## 📚 More Examples - Cookbook

You can find various examples of Chainlit apps [here](https://github.com/Chainlit/cookbook) that leverage tools and services such as OpenAI, Anthropiс, LangChain, LlamaIndex, ChromaDB, Pinecone and more.

Tell us what you would like to see added in Chainlit using the Github issues or on [Discord](https://discord.gg/k73SQ3FyUh).

## 💁 Contributing

As an open-source initiative in a rapidly evolving domain, we welcome contributions, be it through the addition of new features or the improvement of documentation.

For detailed information on how to contribute, see [here](/CONTRIBUTING.md).

## 📃 License

Chainlit is open-source and licensed under the [Apache 2.0](LICENSE) license.
