Install directly from GitHub:
pip install git+https://github.com/msgmate-io/open-chat-go-python-client.gitFor requirements.txt, add this exact line:
open_chat_client_python @ git+https://github.com/msgmate-io/open-chat-go-python-client.gitFor a pinned release tag in requirements.txt:
open_chat_client_python @ git+https://github.com/msgmate-io/open-chat-go-python-client.git@open-chat-pr-alpha-release-0.0.264-2d1aef2d7085Install locally (from this monorepo root):
python3 -m venv .venv
source .venv/bin/activate
pip install -e ./clients/oc_python_clientRun the CLI:
open_chat_client_python --host http://localhost:1984 --username admin --password password --message "hi"
# or authenticate with an API token
open_chat_client_python --host http://localhost:1984 --api-token ocat_xxx --message "hi"
# legacy alias (still supported)
oc_client --host http://localhost:1984 --api-token ocat_xxx --message "hi"Use the integration test script in this repository:
python development/scripts/test_client.py