Skip to main content

chatlas chatlas website

PyPI MIT License versions Python Tests

Your friendly guide to building LLM chat apps in Python with less effort and more clarity.

Install

Install the latest stable release from PyPI:

pip install -U chatlas

Or, install the latest development version from GitHub:

pip install -U git+https://github.com/posit-dev/chatlas

Quick start

Get started in 3 simple steps:

  1. Choose a model provider, such as ChatOpenAI or ChatAnthropic.
  2. Visit the provider's reference page to get setup with necessary credentials.
  3. Create the relevant Chat client and start chatting!
from chatlas import ChatOpenAI

# Optional (but recommended) model and system_prompt
chat = ChatOpenAI(
    model="gpt-4.1-mini",
    system_prompt="You are a helpful assistant.",
)

# Optional tool registration
def get_current_weather(lat: float, lng: float):
    "Get the current weather for a given location."
    return "sunny"

chat.register_tool(get_current_weather)

# Send user prompt to the model for a response.
chat.chat("How's the weather in San Francisco?")
Model response output to the user query: 'How's the weather in San Francisco?'

Learn more at https://posit-dev.github.io/chatlas

Release files for chatlas 0.21.1

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

Source distribution (sdist)

Source distribution for chatlas 0.21.1
File Size Uploaded
chatlas-0.21.1.tar.gz 13.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for chatlas 0.21.1
File Interpreter ABI Platform
chatlas-0.21.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 MB

Release files / chatlas-0.21.1.tar.gz

Download URL chatlas-0.21.1.tar.gz
Size 13.4 MB
Tags Source
SHA-256 checksum
How to use checksums
bca3f5dbf7519c30cec95fc9e134e33fac6693ba1cbce70d94b6afa3bbe00e39
BLAKE2b-256 checksum
How to use checksums
c720f07f99de570a77f144cde5f45a95908bbe3d1f569c7dfd33b162031b84f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Release files / chatlas-0.21.1-py3-none-any.whl

Download URL chatlas-0.21.1-py3-none-any.whl
Size 251.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa2a61fa4593a97c6d1b12af136297a14c8fc0b55520611a1bb083de836c940e
BLAKE2b-256 checksum
How to use checksums
d2c1f0480fa1f0705535b61bffeaf5b912bcc14738cdec073af44a33ec9ce722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log
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