Skip to main content

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

Project description

nio

Build Status 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
  • ✅ manual and emoji verification
  • ✅ custom authentication types
  • ✅ well-integrated type system
  • ✅ kick, ban and unban
  • ✅ typing notifications
  • ✅ message redaction
  • ✅ token based login
  • ✅ user registration
  • ✅ read receipts
  • ✅ live syncing
  • m.tags
  • ❌ python 2.7 support
  • ❌ cross-signing support
  • ❌ user deactivation (#112)
  • ❌ in-room emoji verification
  • ❌ room upgrades and m.room.tombstone events (#47)

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.16.0.tar.gz (146.1 kB view details)

Uploaded Source

Built Distribution

matrix_nio-0.16.0-py3-none-any.whl (174.0 kB view details)

Uploaded Python 3

File details

Details for the file matrix-nio-0.16.0.tar.gz.

File metadata

  • Download URL: matrix-nio-0.16.0.tar.gz
  • Upload date:
  • Size: 146.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.9.1 Linux/5.10.5-arch1-1

File hashes

Hashes for matrix-nio-0.16.0.tar.gz
Algorithm Hash digest
SHA256 19f11eb2690ebab10775483b8c14807cea1fa8cf5089337c98da306f7686ff00
MD5 9985d3055d926dc6f14dd961c309c175
BLAKE2b-256 e4792b923e4d269eba22d5de348cdce587be5603f187d84f5076515fc0819a83

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: matrix_nio-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 174.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.9.1 Linux/5.10.5-arch1-1

File hashes

Hashes for matrix_nio-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f2535fee804803d272d74c8776ae218f660b0e39db33a38f6d828277dcde0fb
MD5 f79117eb60f2342255faf1f25edb0c4f
BLAKE2b-256 884afa02a862b0806462c60b6a776d5ee6429a0b16b78a71e63912d2e3aeec78

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