Skip to main content

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

Project description

nio

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

nio is a multilayered Matrix client library. 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 nio, simply use pip:

$ pip install matrix-nio

Note that this installs nio without end-to-end encryption support. For e2ee support, python-olm is needed which requires the libolm C library (version 3.x). On Debian and Ubuntu one can use apt-get to install package libolm-dev. On Fedora one can use dnf to install package libolm-devel. On MacOS one can use brew to install package libolm. Make sure version 3 is installed.

After libolm has been installed, the e2ee enabled version of nio can be installed using pip:

$ pip install matrix-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.2.tar.gz (159.3 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.2-py3-none-any.whl (186.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mindroom_nio-0.25.2.tar.gz
  • Upload date:
  • Size: 159.3 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.2.tar.gz
Algorithm Hash digest
SHA256 70333c745a62bb0fb35ec0d884f68815519d049e0804d9d56502793086650f74
MD5 8f487d0498cc2eaa9223d139b62a2f00
BLAKE2b-256 c9dc7b213d2def3678c2fdf9433eebcb75982d9000aae0e86eec85cadfdab1ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for mindroom_nio-0.25.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: mindroom_nio-0.25.2-py3-none-any.whl
  • Upload date:
  • Size: 186.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33923dd104ce84102cd31781571a17061d12a3a7368b91fed74aee5edd7e9c4b
MD5 94c755a113a200eab4128a1bd8fd32b0
BLAKE2b-256 e9b9583f601e2bb347eed309b238a3e0a2fd664b97d989dcadbe3f8478b1a49f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mindroom_nio-0.25.2-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