mda-xdrlib
Stand-alone XDRLIB module (from cpython 3.10.8)
What it is and what it does
mda-xdrlib is a standalone extraction of CPython 3.10.8's xdrlib module, packaged to preserve functionality after xdrlib was deprecated in Python 3.11 and marked for removal in Python 3.13. The module provides classes and functions for encoding and decoding data in XDR (External Data Representation) format, a standard binary serialization protocol. It was created to support projects that rely on xdrlib for parsing GROMACS TPR and EDR molecular dynamics files, avoiding the need to vendor the code into multiple projects.
The package contains the original CPython implementation with minimal cosmetic changes, documented in a CHANGES file. It supports Python 3.7 through 3.11, has no external runtime dependencies, and installs as a simple wheel. The code is mature and stable, requiring little ongoing maintenance since it is a frozen snapshot of a well-tested standard library component.
Use it for:
- Parse GROMACS TPR and EDR files in molecular dynamics analysis workflows
- Maintain compatibility with code that uses xdrlib after upgrading to Python 3.11 or later
- Serialize and deserialize binary data in XDR format for scientific computing applications
- Support legacy molecular dynamics analysis pipelines that depend on xdrlib functionality
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides the xdrlib module for encoding and decoding XDR (External Data Representation) data, extracted from CPython 3.10.8 to support code that relied on this standard library before its deprecation in Python 3.11.
Yes, if you use code that depends on xdrlib and you are running Python 3.11 or later. The package is a direct extraction of stable CPython code with no dependencies, permissive licensing, and no known vulnerabilities. Install it only if you actually need xdrlib; if you are still on Python 3.10 or earlier, the standard library version is sufficient.
Install
mda-xdrlib on PyPI
pip
pip install mda-xdrlibuv
uv add mda-xdrlibpoetry
poetry add mda-xdrlibInstalling mda-xdrlib
Before you install
Installation is straightforward with no runtime dependencies. The package is aging (last release over a year ago) but the repository remains active, suggesting stable code that requires minimal ongoing work.
License in practice
Released under the Python Software Foundation License Version 2, a permissive open-source license that allows modification and redistribution with attribution. The package includes a CHANGES file documenting modifications as required by the PSF license.
Quickstart
pip install mda-xdrlib
import xdrlib
p = xdrlib.Packer()
p.pack_int(x)
data = p.get_buffer()
Verify before relying
- Whether the extracted xdrlib code maintains full API compatibility with CPython 3.10.8's xdrlib module
- Performance characteristics compared to the original CPython implementation
- Specific projects and versions that depend on this package beyond MDAnalysis
Package facts
| License | MDA-XDRLIB LICENSING ==================== The MDA-XDRLIB package is a mostly vendored implementation of the cpython xdrlib module as released in cpython version 3.10.8. As such the package is… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 1,082 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 309,541/month — #7,753 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mda_xdrlib-0.2.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
xdrlib3Encodes and decodes XDR (External Data…
permissive · top 15,000 on PyPI
cbor2Encodes and decodes CBOR (Concise Binary Object…
permissive · top 1,000 on PyPI
rlpEncodes and decodes data using Recursive Length…
permissive · top 5,000 on PyPI
dnslibEncodes and decodes DNS wire-format packets,…
permissive · top 5,000 on PyPI
ml-dtypesml_dtypes provides NumPy-compatible data types…
permissive · top 1,000 on PyPI
importlibProvides importlib.import_module() for Python…
unclear · top 15,000 on PyPI
MDAnalysisMDAnalysis reads and analyzes molecular…
copyleft · top 15,000 on PyPI
x690Encodes and decodes data using the X.690 BER…
permissive · top 15,000 on PyPI
standard-imghdrProvides the `imghdr` module, a Python standard…
permissive · top 5,000 on PyPI
qreaderQReader detects and decodes QR codes from…
permissive · top 15,000 on PyPI