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.21.0.tar.gz (13.4 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.21.0-py3-none-any.whl (249.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for chatlas-0.21.0.tar.gz
Algorithm Hash digest
SHA256 c9067fe305eef53f64ea72292cb01e1e03103edaea930e2624f55c778af92de9
MD5 d711f599a565ab32af58526eaedbec61
BLAKE2b-256 0eb924e285844dafbdea93fd415a39ffbf6cb587daa1ad7d7260c364d4b580ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatlas-0.21.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.21.0-py3-none-any.whl.

File metadata

  • Download URL: chatlas-0.21.0-py3-none-any.whl
  • Upload date:
  • Size: 249.5 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.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ca4a5e676f6902714dd08789fc1d8c2c8dc4dd590b66b8e7de083463ef81336
MD5 dcf887aa866b0ba46bdfe183a4b5f0a3
BLAKE2b-256 18f0b5521efccaa2c03da89a0ce7b9e9986d4d0b99834598d1d97466cb537eec

See more details on using hashes here.

Provenance

The following attestation bundles were made for chatlas-0.21.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page