Skip to main content

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


Download files

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

Source Distribution

nextcloud_talk_core-1.0.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

nextcloud_talk_core-1.0.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for nextcloud_talk_core-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7f2dcfd42224c24b1c639ad0b8d7e93821e7c535e29f707fc1771a14a8d1570b
MD5 3e2fa4c64fb79bee9a0392230235d294
BLAKE2b-256 36a58b87b54bb1a9a267cded1ff8ab8e20c6d29ccec929cbbf020514272ea672

See more details on using hashes here.

Provenance

The following attestation bundles were made for nextcloud_talk_core-1.0.2.tar.gz:

Publisher: publish.yml on leiverkus/nextcloud-talk-mcp

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

File details

Details for the file nextcloud_talk_core-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nextcloud_talk_core-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a953a08023d561556d4d3ee790602c1f0b14dac4b6bc70dc2f8c80c6b9a165cf
MD5 5c0758ec6efa674d1a3a02fa1040f631
BLAKE2b-256 7e4459b58ef0a65b944b5911716f822f3802df8717efe94375309eff6c705e38

See more details on using hashes here.

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

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