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

matrix_nio-0.25.1.tar.gz (155.4 kB view details)

Uploaded Source

Built Distribution

matrix_nio-0.25.1-py3-none-any.whl (181.9 kB view details)

Uploaded Python 3

File details

Details for the file matrix_nio-0.25.1.tar.gz.

File metadata

  • Download URL: matrix_nio-0.25.1.tar.gz
  • Upload date:
  • Size: 155.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for matrix_nio-0.25.1.tar.gz
Algorithm Hash digest
SHA256 bb0b2233029225ce28d1feea2cef5d252d24bfb3b7a26ebfea96ad5d2dab7d03
MD5 dbab20ba682435d3a3fcf9002a213e61
BLAKE2b-256 c386c70d1ab15f1ceda3ca9f2876cc88a9b004b7915d8f19d2f053bc52abbcce

See more details on using hashes here.

Provenance

File details

Details for the file matrix_nio-0.25.1-py3-none-any.whl.

File metadata

  • Download URL: matrix_nio-0.25.1-py3-none-any.whl
  • Upload date:
  • Size: 181.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for matrix_nio-0.25.1-py3-none-any.whl
Algorithm Hash digest
SHA256 980ee429ca2fcbe5165229a0402e36fcec044c7b7370d91f3ae92d0af73cc343
MD5 f95bfc9c6ba90a06a192d5fe617b9402
BLAKE2b-256 a8eb3a97e99e773356c12a4b92ff32965a10dd3424b3a7588622ddc50920d627

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page