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.2

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.2
File Size Uploaded
chatlas-0.21.2.tar.gz 13.4 MB Details

Built distribution (wheel)

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

Total release size: 13.7 MB

Release files / chatlas-0.21.2.tar.gz

Download URL chatlas-0.21.2.tar.gz
Size 13.4 MB
Tags Source
SHA-256 checksum
How to use checksums
65efcd3cbef63835f29091d54a8168c0bc563045ac80846a9eb498c8de45342d
BLAKE2b-256 checksum
How to use checksums
497baa1cb2e5d4355ef18ca289930007496567f72c8ba86cf3f7db9c7e532cd3
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 20, 2026.

Transparency log

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

Download URL chatlas-0.21.2-py3-none-any.whl
Size 252.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
830a3fb3525a747901dd01503b6df1f8ae292910ee7d1d2cab070278bafcdfe2
BLAKE2b-256 checksum
How to use checksums
931eebdd9dc3d9dadea381b69a1e9736bf1db12784e009ba459288d247fd9c7c
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 20, 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