Install & Compatibility
Where this runs
tested against v1.4.4 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 38MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.8s · import 0.000s · 38MB
37MB installed
● package 37MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Message
✓ from pyas2lib import Message
✗ from pyas2lib import AS2Message
Mdn
✓ from pyas2lib import Mdn
Partner
✓ from pyas2lib import Partner
Creates a simple unsigned, unencrypted AS2 message.
from pyas2lib import AS2Message
# Build a message
msg = AS2Message()
msg.build(
sender='as2://sender@domain',
receiver='as2://receiver@domain',
subject='Test',
content=b'Hello AS2',
content_type='application/octet-stream',
sign=False,
encrypt=False,
compress=False,
)
signed_data = msg.to_bytes()
print(signed_data)
Upgrade
Version history
1.4.4latest on PyPI · released Mar 22, 2025
Audit
Dependencies
cryptographyrequiredEncryption and signing
pyopensslrequiredCertificate parsing