A simple and consistent interface for chatting with LLMs
Project description
chatlas 
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:
- Choose a model provider, such as ChatOpenAI or ChatAnthropic.
- Visit the provider's reference page to get setup with necessary credentials.
- Create the relevant
Chatclient 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?")
Learn more at https://posit-dev.github.io/chatlas
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatlas-0.9.2.tar.gz.
File metadata
- Download URL: chatlas-0.9.2.tar.gz
- Upload date:
- Size: 12.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea475e133cf16c1466a2c78c1c3c2258550e0ced8444c44504423c12d046999
|
|
| MD5 |
b21a19744b7669b88ebe01eac8fb066c
|
|
| BLAKE2b-256 |
f992e98802262beb0e47c7797d60b136ed9b010be9a748fbcb80c9f42d6825c9
|
Provenance
The following attestation bundles were made for chatlas-0.9.2.tar.gz:
Publisher:
release.yml on posit-dev/chatlas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatlas-0.9.2.tar.gz -
Subject digest:
7ea475e133cf16c1466a2c78c1c3c2258550e0ced8444c44504423c12d046999 - Sigstore transparency entry: 369345564
- Sigstore integration time:
-
Permalink:
posit-dev/chatlas@e95542ef0c1e53d7cf1fe3f3b82ac9569f5429a3 -
Branch / Tag:
refs/tags/v0.9.2 - Owner: https://github.com/posit-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e95542ef0c1e53d7cf1fe3f3b82ac9569f5429a3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file chatlas-0.9.2-py3-none-any.whl.
File metadata
- Download URL: chatlas-0.9.2-py3-none-any.whl
- Upload date:
- Size: 100.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c74e620f967cd702c92179d79ce1229bc195a8e334ad618464e6c59fb0856af8
|
|
| MD5 |
34b3e0fc3d284a7a1a24e8e883c4d87b
|
|
| BLAKE2b-256 |
2e315bd903186e1aab3cdc734b5f964fa24494a50cb11a5b4f79fcbbf9f4eebb
|
Provenance
The following attestation bundles were made for chatlas-0.9.2-py3-none-any.whl:
Publisher:
release.yml on posit-dev/chatlas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chatlas-0.9.2-py3-none-any.whl -
Subject digest:
c74e620f967cd702c92179d79ce1229bc195a8e334ad618464e6c59fb0856af8 - Sigstore transparency entry: 369345587
- Sigstore integration time:
-
Permalink:
posit-dev/chatlas@e95542ef0c1e53d7cf1fe3f3b82ac9569f5429a3 -
Branch / Tag:
refs/tags/v0.9.2 - Owner: https://github.com/posit-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e95542ef0c1e53d7cf1fe3f3b82ac9569f5429a3 -
Trigger Event:
release
-
Statement type: