nuqql-matrixd
nuqql-matrixd is a network daemon that implements the nuqql interface and uses the Matrix Python SDK to connect to Matrix chat networks. It can be used as a backend for nuqql or as a standalone chat client daemon.
nuqql-matrixd's dependencies are:
- nuqql-based
- Matrix Python SDK
- daemon (optional)
Status
Note: the Matrix Python SDK project status strongly recommends using matrix-nio rather than the Matrix Python SDK. Thus, please consider using nuqql-matrixd-nio that uses matrix-nio rather than nuqql-matrixd.
Quick Start
You can install nuqql-matrixd and its dependencies, for example, with pip for your user only with the following command:
$ pip install --user nuqql-matrixd
After the installation, you can run nuqql-matrixd by running the
nuqql-matrixd command:
$ nuqql-matrixd
By default, it listens on TCP port 32000 on your local host. So, you can connect with, e.g., telnet to it with the following command:
$ telnet localhost 32000
In the telnet session you can:
- add Matrix accounts with:
account add matrix <account> <password>.- Note: the format of
<account>is<username>@<homeserver>, e.g.,dummy_user@matrix.org.
- Note: the format of
- retrieve the list of accounts and their numbers/IDs with
account list. - retrieve your buddy/room list with
account <id> buddiesoraccount <id> chat list - send a message to a room with
account <id> chat send <room> <message>
Usage
See nuqql-matrixd --help for a list of command line arguments:
usage: nuqql-matrixd [--address ADDRESS] [--af {inet,unix}] [-d] [--dir DIR]
[--disable-history] [--filter-own] [-h] [--loglevel {debug,info,warn,error}]
[--port PORT] [--push-accounts] [--sockfile SOCKFILE] [--version]
Run nuqql backend matrixd.
optional arguments:
--address ADDRESS set AF_INET listen address
--af {inet,unix} set socket address family: "inet" for AF_INET, "unix"
for AF_UNIX
-d, --daemonize daemonize process
--dir DIR set working directory
--disable-history disable message history
--filter-own enable filtering of own messages
-h, --help show this help message and exit
--loglevel {debug,info,warn,error}
set logging level
--port PORT set AF_INET listen port
--push-accounts enable pushing accounts to client
--sockfile SOCKFILE set AF_UNIX socket file in DIR
--version show program's version number and exit
Changes
- v0.6.0:
- Update matrix_client to v0.4.0
- v0.5.0:
- Update nuqql-based to v0.3.0, switch to asyncio, require python version >= 3.7.
- Add welcome and account adding help messages.
- Disable filtering of own messages, rewrite sender of own messages to
<self>
- v0.4.0:
- Update nuqql-based to v0.2.0
- v0.3:
- Use nuqql-based as dependency and adapt to nuqql-based changes
- Add setup.py for installation and package distribution
- Add python type annotations
- Restructure code
- Cleanups, fixes, and improvements
- v0.2:
- Allow specification of the homeserver url in the account user when adding
an account. Thus, the following account users are possible:
<user>@<domain>(defaults to https)<user>@http://<domain>[:<port>]<user>@https://<domain>[:<port>]
- Save sync token for each account in a file. So, only messages newer than the last sync are retrieved after a restart of the backend.
- Add new commands:
bye: disconnect from the backend.quit: quit the backend.help: show list of commands and their description.
- Add and use "chat msg" message format for group chat messages
- Store accounts in .ini file
accounts.iniin the backend's working directory. Note: existing accounts have to be re-added to the backend to be usable with the .ini file. - Add configuration file support: in addition to the command line arguments,
configuration parameters can now be set in the .ini file
config.iniin the backend's working directory. - Add
loglevelconfiguration parameter to command line arguments and configuration file for setting the logging level todebug,info,warn, orerror. Default:warn. - Make daemon python module optional
- Fixes and improvements
- Allow specification of the homeserver url in the account user when adding
an account. Thus, the following account users are possible:
- v0.1:
- First/initial release.
Metadata
Release files for nuqql-matrixd 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nuqql-matrixd-0.6.0.tar.gz | 13.5 kB | Without provenance | Details for nuqql-matrixd-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nuqql_matrixd-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for nuqql_matrixd-0.6.0-py3-none-any.whl |
Total release size: 26.7 kB
Release files / nuqql-matrixd-0.6.0.tar.gz
| Download URL | nuqql-matrixd-0.6.0.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6fc8bb6a30c1b303edcc2e9d841e5da48ac710a709f6976f9015146663a10c6
|
|
BLAKE2b-256 checksum How to use checksums |
8106f15b16569fb8dd3eda323d6b5e9b6c6314406564c91ee79d9de9c83e9550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / nuqql_matrixd-0.6.0-py3-none-any.whl
| Download URL | nuqql_matrixd-0.6.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
901780493910ac5be83671afeb753cb69018d8c8e6c97755deae3e005346e891
|
|
BLAKE2b-256 checksum How to use checksums |
6a13649706931488aa93bae9ee819ed109f9f1c756ebaf21e7723234394f915d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for nuqql-matrixd 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.