Metadata-Version: 2.1
Name: chainlit
Version: 0.1.1
Summary: A faster way to build chatbot UIs.
Home-page: https://github.com/Chainlit/chainlit
License: Apache-2.0 license
Keywords: LLM,Agents,gen ai,chat ui,chatbot ui,langchain
Author: Chainlit
Requires-Python: >=3.8,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: auth0-python (>=4.1.1,<5.0.0)
Requires-Dist: click (>=8.1.3,<9.0.0)
Requires-Dist: dataclasses_json (>=0.5.7,<0.6.0)
Requires-Dist: flask (>=2.2.3,<3.0.0)
Requires-Dist: flask-limiter (>=3.3.0,<4.0.0)
Requires-Dist: flask_cors (>=3.0.10,<4.0.0)
Requires-Dist: flask_socketio (>=5.3.3,<6.0.0)
Requires-Dist: gevent (>=22.10.2,<23.0.0)
Requires-Dist: gevent_websocket (>=0.10.1,<0.11.0)
Requires-Dist: openai (>=0.27.2,<0.28.0)
Requires-Dist: pydantic (>=1.10.6,<2.0.0)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: python-graphql-client (>=0.4.3,<0.5.0)
Requires-Dist: tomli (>=2.0.1,<3.0.0)
Requires-Dist: uptrace (>=1.17.0,<2.0.0)
Requires-Dist: watchdog (>=3.0.0,<4.0.0)
Requires-Dist: watchdog_gevent (>=0.1.1,<0.2.0)
Project-URL: Repository, https://github.com/Chainlit/chainlit
Description-Content-Type: text/markdown

# Welcome to Chainlit 👋

**A faster way to build chatbot UIs.**

Chainlit lets you create chatbot UIs on top of any Python code in minutes. It’s all Python, open-source, and free!

[![](https://dcbadge.vercel.app/api/server/ZThrUxbAYw?style=flat)](https://discord.gg/ZThrUxbAYw)
[![Twitter](https://img.shields.io/twitter/url/https/twitter.com/chainlit_io.svg?style=social&label=Follow%20%40chainlit_io)](https://twitter.com/chainlit_io)
[![CI](https://github.com/Chainlit/chainlit/actions/workflows/ci.yaml/badge.svg)](https://github.com/Chainlit/chainlit/actions/workflows/ci.yaml)

## Installation

Open a terminal and run:

```bash
$ pip install chainlit
$ chainlit hello
```

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

## 📖 Documentation

Please see [here](https://docs.chainlit.io) for full documentation on:

- Getting started (installation, simple examples)
- Examples
- Reference (full API docs)

## 🚀 Quickstart

### 🐍 Pure Python

Create a new file `demo.py` with the following code:
```python
import chainlit as cl


@cl.on_message  # this function will be called every time a user inputs a message in the UI
def main(message: str):
    # this is an intermediate step
    cl.send_message(author="Tool 1", content=f"Response from tool1", indent=1)

    # send back the final answer
    cl.send_message(content=f"This is the final answer")
```

Now run it!
```
$ chainlit run demo.py -w
```

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

### 🔗 With LangChain

Checkout our plug and play [integration](https://docs.chainlit.io/langchain) with LangChain!

## 🛣 Roadmap
- [ ] New UI elements (spreadsheet, carousel...)
- [ ] Create your own UI elements
- [ ] Support more LLMs in the prompt playground
- [ ] App deployment

## 💁 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](.github/CONTRIBUTING.md).

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

