Registry / auth-security / python-olm

python-olm

JSON →
library3.2.16pypypi✓ verified 85d ago

Python CFFI bindings for the Olm cryptographic ratchet library, used for end-to-end encryption in Matrix and other messaging protocols. Current version 3.2.16. Release cadence is irregular.

pip install python-olm
INSTALL
IMPORT
SIG · PYTHON-OLM
P
python-olm
auth-securitypythonv3.2.16
Install
1.9s avg
Import
Disk
20MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.2.16 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 1.9s
py 3.11
✕ build_error
✓ 1.9s
py 3.12
✕ build_error
✓ 1.6s
py 3.13
✕ build_error
✕ build_error
py 3.9
✕ build_error
✓ 2.3s
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Account
from olm import Account
from olm import Olm
OutboundGroupSession
from olm import OutboundGroupSession
PkEncryption
from olm import PkEncryption

Create an Olm account and print the Curve25519 identity key.

from olm import Account, Olm # Initialize the library olm = Olm() # Create an account account = Account() print(f"Account created: {account.identity_keys['curve25519']}")
Debug
Known issues
breakingIn version 3.0.0, all submodules (olm.account, olm.session, etc.) were removed. All classes must be imported directly from olm: from olm import Account, Session.
fix
Change imports: replace 'from olm.account import Account' with 'from olm import Account'.
affects: >=3.0.0
breakingThe Olm class initialization now requires calling Olm() before using other classes. Failure to do so may cause segfaults or undefined behavior.
fix
Add 'olm = Olm()' at the start of your application.
affects: >=3.0.0
deprecatedThe 'olm' module attribute for the CFFI binding (e.g., olm._olm) is deprecated and may be removed in future versions.
fix
Use the high-level Python classes instead of accessing CFFI directly.
affects: >=3.2.0
Upgrade
Version history
3.2.16latest on PyPI · released Nov 28, 2023
Audit
Dependencies
cffirequiredRequired for CFFI bindings
Agent activity
20 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
python-olm — pip install python-olm · libregistry