A Python Matrix client library, designed according to sans I/O principles.
Project description
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.reaction
s - ✅
m.tag
s - ❌ 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file matrix_nio-0.25.2.tar.gz
.
File metadata
- Download URL: matrix_nio-0.25.2.tar.gz
- Upload date:
- Size: 155.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ef8180c374e12368e5c83a692abfb3bab8d71efcd17c5560b5c40c9b6f2f600 |
|
MD5 | 2834300e437134a90126fd3be5690238 |
|
BLAKE2b-256 | 3350c20129fd6f0e1aad3510feefd3229427fc8163a111f3911ed834e414116b |
File details
Details for the file matrix_nio-0.25.2-py3-none-any.whl
.
File metadata
- Download URL: matrix_nio-0.25.2-py3-none-any.whl
- Upload date:
- Size: 182.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c2880004b0e475db874456c0f79b7dd2b6285073a7663bcaca29e0754a67495 |
|
MD5 | b02cb7a4e03074dd9f947dbfd0a54129 |
|
BLAKE2b-256 | 7b0f8b958d46e23ed4f69d2cffd63b46bb097a1155524e2e7f5c4279c8691c4a |