Skip to main content

A Python Matrix client library, designed according to sans I/O principles.

Project description

mindroom-nio

Build Status PyPI - Python Version codecov license Documentation Status #nio

This fork exists primarily because I need vodozemac-backed E2EE support for MindRoom, which relies heavily on nio. libolm is officially deprecated, and the python-olm wheels currently stop at CPython 3.12, making the old dependency path a poor fit for newer Python versions. This fork keeps that support, plus a small set of other useful pending upstream PRs, available in a published package while upstream activity is quiet. I would be happy to see the upstream project become active again and reduce fork-specific maintenance over time.

mindroom-nio is a fork of nio, a multilayered Matrix client library. The distribution name is mindroom-nio; the Python import name remains nio. The underlying base layer doesn't do any network IO on its own, but on top of that is a full-fledged batteries-included asyncio layer using aiohttp. File IO is only done if you enable end-to-end encryption (E2EE).

Documentation

The full API documentation for nio can be found at https://matrix-nio.readthedocs.io

Features

nio has most of the features you'd expect in a Matrix library, but it's still a work in progress.

  • ✅ transparent end-to-end encryption (EE2E)
  • ✅ encrypted file uploads & downloads
  • ✅ space parents/children
  • ✅ manual and emoji verification
  • ✅ custom authentication types
  • ✅ threading support
  • ✅ well-integrated type system
  • ✅ knocking, kick, ban and unban
  • ✅ typing notifications
  • ✅ message redaction
  • ✅ token based login
  • ✅ user registration
  • ✅ read receipts
  • ✅ live syncing
  • m.reactions
  • m.tags
  • ❌ cross-signing support
  • ❌ server-side key backups (room key backup, "Secure Backup")
  • ❌ user deactivation (#112)
  • ❌ in-room emoji verification

Installation

To install mindroom-nio, simply use pip:

$ pip install mindroom-nio

Note that this installs mindroom-nio without end-to-end encryption support. The e2ee enabled version can be installed using pip:

$ pip install "mindroom-nio[e2e]"

Additionally, a docker image with the e2ee enabled version of nio is provided in the docker/ directory.

Examples

For examples of how to use nio, and how others are using it, read the docs

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

mindroom_nio-0.25.4.tar.gz (161.4 kB view details)

Uploaded Source

Built Distribution

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

mindroom_nio-0.25.4-py3-none-any.whl (188.1 kB view details)

Uploaded Python 3

File details

Details for the file mindroom_nio-0.25.4.tar.gz.

File metadata

  • Download URL: mindroom_nio-0.25.4.tar.gz
  • Upload date:
  • Size: 161.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mindroom_nio-0.25.4.tar.gz
Algorithm Hash digest
SHA256 4f65dab4bb8f7563356fcfdb82d31a5e676d512044444fbc2023abb686ff862b
MD5 620e203008ff874d9589fe160fe30469
BLAKE2b-256 12274934e9f59ff0e7d3c80e1eb409712b2e87555418c42aabf7a4d3bb8eb54b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mindroom_nio-0.25.4.tar.gz:

Publisher: release.yml on mindroom-ai/mindroom-nio

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

File details

Details for the file mindroom_nio-0.25.4-py3-none-any.whl.

File metadata

  • Download URL: mindroom_nio-0.25.4-py3-none-any.whl
  • Upload date:
  • Size: 188.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mindroom_nio-0.25.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24d6976da1e821a66534751a398aec40153797b97391ee7329c9f8af904cf524
MD5 8412136310f1cf0b23068967e0d226cc
BLAKE2b-256 cb729bea9a6371d840b2fb1cc4fd4dfae87b216b6989f94b3d028a2a9193e22a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mindroom_nio-0.25.4-py3-none-any.whl:

Publisher: release.yml on mindroom-ai/mindroom-nio

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