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.1.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.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file nextcloud_talk_core-1.0.1.tar.gz.

File metadata

  • Download URL: nextcloud_talk_core-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f6eeef5e9853e7d6cefd1e62076da995e4739f3f105de03a631729306ec3e1f1
MD5 a69204427988565df3d4e272e8ed57ac
BLAKE2b-256 30b9841dd39a933a6900c784b6cda77dbf94ddba88a4c532a0cc8f54b7434ccc

See more details on using hashes here.

Provenance

The following attestation bundles were made for nextcloud_talk_core-1.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nextcloud_talk_core-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea7a639abbd6233b71dbad0641073b54e103f87eb7a2da45d65f68f6f8ad77a6
MD5 8418ac1f82f74836861f4a21d580c15e
BLAKE2b-256 5e2c3cdc871e4b3fdf9b7ba81b46ad3ed3ce7e4374bc17e1ce6ce869d3670f50

See more details on using hashes here.

Provenance

The following attestation bundles were made for nextcloud_talk_core-1.0.1-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