Backend implementation of the namespace `eu.siacs.conversations.axolotl` for python-omemo.
Project description
python-oldmemo
Backend implementation for python-omemo, equipping python-omemo with support for OMEMO under the namespace eu.siacs.conversations.axolotl
(casually/jokingly referred to as "oldmemo").
This repository is based on python-twomemo and will be rebased on top of new commits to that repository regularly, so expect commit hashes to be unstable. For the same reason, release tags might not be available or point to non-existing commit hashes.
Installation
Install the latest release using pip (pip install oldmemo
) 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=oldmemo/ --mypy_out=oldmemo/ oldmemo.proto
This will generate oldmemo/oldmemo_pb2.py
and oldmemo/oldmemo_pb2.pyi
.
Type Checks and Linting
python-oldmemo 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 oldmemo/ setup.py
$ pylint oldmemo/ setup.py
$ flake8 oldmemo/ 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 Oldmemo-1.1.0.tar.gz
.
File metadata
- Download URL: Oldmemo-1.1.0.tar.gz
- Upload date:
- Size: 36.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 431b76bb8c4ece78ffae649eb442be2892592772075d0a66ca3bd9dabd0b2f9e |
|
MD5 | 1b340f75f1f46acf132b856235d5f4c4 |
|
BLAKE2b-256 | fa9240c0d6b12d6ae548d63bfa4f170ece83d5971ddb7b69d84aa9f26d481639 |
File details
Details for the file Oldmemo-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: Oldmemo-1.1.0-py3-none-any.whl
- Upload date:
- Size: 37.6 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 | df60260db7ff7313fccde74a620df5807cf5def66585e65d393a3ffb7f657c05 |
|
MD5 | 2dda3cc2226214ea6676350a11201e27 |
|
BLAKE2b-256 | 4ba3b6e697b05afdb856bb104c68fe3917701c76810b13b69964150d883f7351 |