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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatlas-0.23.0.tar.gz (13.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatlas-0.23.0-py3-none-any.whl (258.6 kB view details)

Uploaded Python 3

File details

Details for the file chatlas-0.23.0.tar.gz.

File metadata

  • Download URL: chatlas-0.23.0.tar.gz
  • Upload date:
  • Size: 13.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatlas-0.23.0.tar.gz
Algorithm Hash digest
SHA256 4392b1ae91e8fb02841e5dfa70a9559a4c9a602f6dc40897fcee4f5215038446
MD5 58e676692fd86571a6d733f1569112ad
BLAKE2b-256 6a111d1666527260de7f676206a78b131baec59a114ee3ad560ca8805e2d369c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatlas-0.23.0.tar.gz:

Publisher: release.yml on posit-dev/chatlas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chatlas-0.23.0-py3-none-any.whl.

File metadata

  • Download URL: chatlas-0.23.0-py3-none-any.whl
  • Upload date:
  • Size: 258.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chatlas-0.23.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24ae2c579b8aadba1a3a65ce32c65781c2351c548b2cefa49c598627b8672859
MD5 57b7422cee611abcec7cce383525ff28
BLAKE2b-256 5c52d578133c2caa591fb0a224e83c6da659fa8470093caa99605592bb3c5ee1

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatlas-0.23.0-py3-none-any.whl:

Publisher: release.yml on posit-dev/chatlas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.23.0 This release

2 files

0.22.0

2 files

0.21.2

2 files

0.21.1

2 files

0.21.0

2 files

0.20.0

2 files

0.19.2

2 files

0.19.1

2 files

0.19.0

2 files

0.18.1

2 files

0.18.0

2 files

0.17.0

2 files

0.16.0

2 files

0.15.2

2 files

0.15.1

2 files

0.15.0

2 files

0.14.0

2 files

0.13.2

2 files

0.13.1

2 files

0.13.0

2 files

0.12.0

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

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