Backend implementation of the namespace `urn:xmpp:omemo:2` for python-omemo.
Project description
python-twomemo
Backend implementation for python-omemo, equipping python-omemo with support for OMEMO under the namespace urn:xmpp:omemo:2
(casually/jokingly referred to as "twomemo").
Installation
Install the latest release using pip (pip install twomemo
) or manually from source by running pip install .
in the cloned repository.
Protobuf
Install protoc
. Then, in the root directory of this repository, run:
$ pip install protobuf mypy mypy-protobuf types-protobuf
$ protoc --python_out=twomemo/ --mypy_out=twomemo/ twomemo.proto
This will generate twomemo/twomemo_pb2.py
and twomemo/twomemo_pb2.pyi
.
Type Checks and Linting
python-twomemo uses mypy for static type checks and both pylint and Flake8 for linting. All checks can be run locally with the following commands:
$ pip install --upgrade mypy pylint flake8 mypy-protobuf types-protobuf
$ mypy --strict twomemo/ setup.py
$ pylint twomemo/ setup.py
$ flake8 twomemo/ setup.py
Getting Started
Refer to the documentation on readthedocs.io, or build/view it locally in the docs/
directory. To build the docs locally, install the requirements listed in docs/requirements.txt
, e.g. using pip install -r docs/requirements.txt
, and then run make html
from within the docs/
directory. The documentation can then be found in docs/_build/html/
.
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
Built Distribution
File details
Details for the file Twomemo-1.1.0.tar.gz
.
File metadata
- Download URL: Twomemo-1.1.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e352a4789df03a2cb68045973d1afd8e094feacc763b57b2324e405d7da8a68 |
|
MD5 | e9ac531379d1e76d6c583031a857fef4 |
|
BLAKE2b-256 | 2890fffaa46cad98ee529cdc8e46ef29b3218d1c00cd94ca8c79a0009edfcdd0 |
File details
Details for the file Twomemo-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: Twomemo-1.1.0-py3-none-any.whl
- Upload date:
- Size: 16.8 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 | 27e033e8c582cfcc2bdc5944346a4beab2c54c88849917b3c34bb1e639119a5d |
|
MD5 | 8bd4937792858c1687355d7d710348c4 |
|
BLAKE2b-256 | 292f13649146455ae2de688afd7b03d11bd78fbc35b2a56137d5c339d13bf84f |