Reusable, MCP-free OCS client for the Nextcloud Talk (Spreed) API
Project description
nextcloud-talk-core
A reusable, MCP-free Python client for the Nextcloud Talk (Spreed) OCS API.
This is the shared core extracted from
nextcloud-talk-mcp: the HTTP/OCS layer, typed models,
config, and errors, with no dependency on any MCP framework — so other projects
(e.g. a polling bridge) can depend on it directly.
Install
pip install nextcloud-talk-core
Or pin to a Git tag without PyPI:
pip install "git+https://github.com/leiverkus/nextcloud-talk-mcp.git@core-v1.0.1#subdirectory=packages/nextcloud-talk-core"
Use
from nextcloud_talk_core import TalkClient
# Reads NC_URL / NC_USER / NC_APP_PASSWORD (use an app password, not your login).
with TalkClient.from_env() as talk:
for c in talk.list_conversations():
print(c.token, c.name, c.unread)
msg = talk.send_message("<token>", "Hello from nextcloud-talk-core")
print(msg.id)
Public API
TalkClient (one method per Talk operation, returning typed models),
OCSClient (low-level OCS HTTP), Settings, the models (Conversation,
Message, Attachment, Participant, Mention, Reaction), the error
hierarchy (NextcloudTalkError and subclasses), and permissions_from_flags.
All re-exported from the package root.
This surface is a SemVer-stable contract: breaking changes require a major
version (and a new core-vX.Y.Z tag). See CHANGELOG.md.
License
MIT © Patrick Leiverkus
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 nextcloud_talk_core-1.0.2.tar.gz.
File metadata
- Download URL: nextcloud_talk_core-1.0.2.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f2dcfd42224c24b1c639ad0b8d7e93821e7c535e29f707fc1771a14a8d1570b
|
|
| MD5 |
3e2fa4c64fb79bee9a0392230235d294
|
|
| BLAKE2b-256 |
36a58b87b54bb1a9a267cded1ff8ab8e20c6d29ccec929cbbf020514272ea672
|
Provenance
The following attestation bundles were made for nextcloud_talk_core-1.0.2.tar.gz:
Publisher:
publish.yml on leiverkus/nextcloud-talk-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nextcloud_talk_core-1.0.2.tar.gz -
Subject digest:
7f2dcfd42224c24b1c639ad0b8d7e93821e7c535e29f707fc1771a14a8d1570b - Sigstore transparency entry: 1693966266
- Sigstore integration time:
-
Permalink:
leiverkus/nextcloud-talk-mcp@ca29731873c9be37f4a7338b7206680fd4a19716 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/leiverkus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca29731873c9be37f4a7338b7206680fd4a19716 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nextcloud_talk_core-1.0.2-py3-none-any.whl.
File metadata
- Download URL: nextcloud_talk_core-1.0.2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a953a08023d561556d4d3ee790602c1f0b14dac4b6bc70dc2f8c80c6b9a165cf
|
|
| MD5 |
5c0758ec6efa674d1a3a02fa1040f631
|
|
| BLAKE2b-256 |
7e4459b58ef0a65b944b5911716f822f3802df8717efe94375309eff6c705e38
|
Provenance
The following attestation bundles were made for nextcloud_talk_core-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on leiverkus/nextcloud-talk-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nextcloud_talk_core-1.0.2-py3-none-any.whl -
Subject digest:
a953a08023d561556d4d3ee790602c1f0b14dac4b6bc70dc2f8c80c6b9a165cf - Sigstore transparency entry: 1693966587
- Sigstore integration time:
-
Permalink:
leiverkus/nextcloud-talk-mcp@ca29731873c9be37f4a7338b7206680fd4a19716 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/leiverkus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca29731873c9be37f4a7338b7206680fd4a19716 -
Trigger Event:
release
-
Statement type: