Skip to main content

Backend implementation of the namespace `urn:xmpp:omemo:2` for python-omemo.

Project description

PyPI PyPI - Python Version Build Status Documentation Status

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 --upgrade .[dev]
$ 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 .[lint]
$ mypy twomemo/
$ pylint twomemo/
$ flake8 twomemo/

Getting Started

Refer to the documentation on readthedocs.io, or build it locally. Additional requirements to build the docs can be installed using pip install .[docs]. With all dependencies installed, run make html in 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

twomemo-2.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twomemo-2.1.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file twomemo-2.1.0.tar.gz.

File metadata

  • Download URL: twomemo-2.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for twomemo-2.1.0.tar.gz
Algorithm Hash digest
SHA256 1f585b959eb1a9aef411dca954153604df66d3c233b161e22a6895316821c827
MD5 e58898fc82c1a18fb6b0cf05cb52bdc2
BLAKE2b-256 d454ab3a151bc61771f2528a75cf7ab9d2f5ec30292402adb36974a955609793

See more details on using hashes here.

Provenance

The following attestation bundles were made for twomemo-2.1.0.tar.gz:

Publisher: test-and-publish.yml on Syndace/python-twomemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file twomemo-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: twomemo-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for twomemo-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc799851d85f8badde8632511b5ad1091d9de95588a8d9c4d555764238f17f1a
MD5 a0a164022c43214b663ccf3368300b0d
BLAKE2b-256 c5f49ce83bc98c6cdf9df88f9a1949cb8d4f34dea7bf0ae7e34a7aebc8382e05

See more details on using hashes here.

Provenance

The following attestation bundles were made for twomemo-2.1.0-py3-none-any.whl:

Publisher: test-and-publish.yml on Syndace/python-twomemo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page