$npx skillfedfor your agent

pyas2lib

Python library for building and parsing AS2 Messages

With conditionsPyPI CryptographyReleased Mar 2025119.7K downloads / moGNU GPL v2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyas2lib-1.4.4-py3-none-any.whl
v1.4.4 · released 2025-03-22 · 3 runtime deps: asn1crypto, oscrypto, pyOpenSSL

Yes, if you need AS2 protocol support and can accept a copyleft GPL v2.0 license. The library is stable (Beta, no known vulnerabilities), has low install friction, and remains maintained. The 510-day release cycle suggests slow evolution rather than abandonment; check whether the feature set matches your AS2 requirements before committing. Not suitable for proprietary closed-source applications without a separate commercial license.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with three lightweight cryptographic dependencies (asn1crypto, oscrypto, pyOpenSSL).
  • Maintenance is aging—last release 510 days ago—but the repository remains active with a recent commit on 2025-03-22 and no archived status.

License · maintenance · safety

GNU GPL v2.0 (copyleft) — Licensed under GNU GPL v2.0 (copyleft). Any derivative work or distribution must also be open-source under GPL v2.0; proprietary applications cannot use this library without obtaining a different license.

last release 2025-03-22 (510 days) · last repo commit 2025-03-22 · 48 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 119,745 downloads/mo, #12,057 on PyPI

Verify before relying

from pyas2lib.as2 import Organization, Partner, Message

my_org = Organization(as2_name='my_id', sign_key=b'key', decrypt_key=b'key')
partner = Partner(as2_name='partner_id', sign=True, encrypt=True)
msg = Message(sender=my_org, receiver=partner)
msg.build(b'data_to_transmit')
  • Whether the library supports AS2 version 1.2 features beyond RFC 4130 baseline (e.g., newer compression or signing algorithms).
  • Performance characteristics when processing large payloads or high-volume message streams.
  • Whether the aging maintenance status (510 days since last release) indicates active development or dormancy.
Same gist for agents: .md · .json

What it is and what it does

pyas2lib is a pure-Python library for constructing and parsing AS2 protocol messages used in B2B secure file exchange. It handles the full message lifecycle: compression, signing, encryption, MIME construction on the sender side, and decompression, decryption, signature verification on the receiver side. It also manages MDN (Message Disposition Notification) responses, which confirm delivery and processing status. The library decouples message handling from HTTP transport, so you manage the network layer yourself.

The package depends on three cryptographic libraries: asn1crypto for ASN.1 parsing, oscrypto for low-level crypto operations, and pyOpenSSL for certificate and key management. It targets Python 3.7–3.10 and is classified as Beta. The library is suitable for applications that need to exchange EDI or other structured data with trading partners over HTTP using the AS2 standard (RFC 4130).

Use it for

  • Build and send encrypted, signed AS2 messages to trading partners and parse their MDN responses to confirm delivery.
  • Receive and validate incoming AS2 messages from partners, verify signatures, decrypt payloads, and generate synchronous or asynchronous MDN receipts.
  • Integrate AS2 message handling into a custom HTTP server or client without relying on a full EDI platform.
  • Parse MIME-encoded AS2 payloads to extract and verify the integrity of transmitted EDI documents or files.
  • Manage organization and partner credentials (signing keys, encryption certificates) for multi-partner B2B workflows.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need AS2 protocol support and can accept a copyleft GPL v2.0 license.

The library is stable (Beta, no known vulnerabilities), has low install friction, and remains maintained. The 510-day release cycle suggests slow evolution rather than abandonment; check whether the feature set matches your AS2 requirements before committing. Not suitable for proprietary closed-source applications without a separate commercial license.

Install

pyas2lib on PyPI

Before you install

Low install friction with three lightweight cryptographic dependencies (asn1crypto, oscrypto, pyOpenSSL). Maintenance is aging—last release 510 days ago—but the repository remains active with a recent commit on 2025-03-22 and no archived status.

License in practice

Licensed under GNU GPL v2.0 (copyleft). Any derivative work or distribution must also be open-source under GPL v2.0; proprietary applications cannot use this library without obtaining a different license.

Quickstart

from pyas2lib.as2 import Organization, Partner, Message

my_org = Organization(as2_name='my_id', sign_key=b'key', decrypt_key=b'key')
partner = Partner(as2_name='partner_id', sign=True, encrypt=True)
msg = Message(sender=my_org, receiver=partner)
msg.build(b'data_to_transmit')

Verify before relying

  • Whether the library supports AS2 version 1.2 features beyond RFC 4130 baseline (e.g., newer compression or signing algorithms).
  • Performance characteristics when processing large payloads or high-volume message streams.
  • Whether the aging maintenance status (510 days since last release) indicates active development or dormancy.

Package facts

LicenseGNU GPL v2.0 copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
asn1cryptooscryptopyOpenSSL
MaintenanceAging 510 days since the last release
Last repo commit
First released
Downloads119,745 / month, #12,057 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: GNU General Public License v3 (GPLv3)Operating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: CommunicationsTopic :: Security :: Cryptography

Evidence: pyas2lib-1.4.4-py3-none-any.whl

Tags

Capabilities
AS2 message protocol libraryEDI AS2 messagingsecure file transfer AS2AS2 encryption signingB2B message protocolMIME message AS2MDN message disposition
Topics
b2b-messagingedi-protocolas2-standard

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “AS2 message protocol library”

  • pyas2libBuilds and parses AS2 protocol messages with compression, signing,…
  • simplefixSimplefix provides a lightweight FIX (Financial Information eXchange)…
  • proto-plusProto Plus wraps protocol buffers to provide Python classes that…

Give your agent the search over MCP, or paste the wish link into any chat.

More Cryptography packages

certifi Worth it
PyPI · Cryptography · released Jul 2026

Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.

MPL-2.0pure Python · 3.7+
1.9Bdownloads / mo
cryptography Worth it
PyPI · Cryptography · released Jul 2026

cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.

Apache-2.0 OR BSD-3-Clausecompiled wheel
1.5Bdownloads / mo
rsa Skip
PyPI · Cryptography · released Apr 2025

Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.

Apache-2.0pure Pythonabandoned
299.6Mdownloads / mo
pyOpenSSL With conditions
PyPI · Python Modules · released Aug 2026

pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.

Apache-2.0pure Python · 3.9+
294.2Mdownloads / mo
azure-identity Worth it
PyPI · Cryptography · released Mar 2026

Provides Microsoft Entra ID token-based authentication for Azure SDK clients through a set of TokenCredential implementations that handle OAuth flows and managed identity support.

license unclearpure Python · 3.9+
247.2Mdownloads / mo
PyNaCl Worth it
PyPI · Cryptography · released Jan 2026

PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.

Apache-2.0compiled wheel · 3.8+
246.6Mdownloads / mo

See also pem · endesive · securesystemslib · asn1crypto · eip712 · PGPy13 · mail-parser · pysequoia · ed25519-blake2b-fork