Skip to main content

Overview

docs

Read the Docs Status

tests

GitHub Actions Build Status Coverage Status

package

PyPI Package latest release PyPI Wheel Supported versions Supported implementations Commits since latest release

Small standalone package with only built-in dependencies for parsing plip report to csv and create command scprit for ChimeraX

  • Free software: BSD 2-Clause License

Installation

pip install python-pliparser

You can also install the in-development version with:

pip install https://github.com/EtienneReboul/python-pliparser/archive/main.zip

Documentation

https://python-pliparser.readthedocs.io/en/latest/index.html

Development

To run all the tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

1.0.0 (2026-09-21)

  • First stable release.

  • Breaking: Replaced csv2cxc’s single receptor/ligand chain model with a per-chain, multi-source model. The --receptor-chain, --ligand-chain, --receptor-color, --ligand-color, and --transparency CLI flags (and their JSON config equivalents receptor_chain, ligand_chain, receptor_color, ligand_color, transparency) are removed with no deprecated aliases.

  • Added a chains list to the csv2cxc JSON config, letting each chain (or comma-joined chain group) declare its own color, transparency, and show/hide status independently, instead of being forced into a single binary receptor/ligand split.

  • Added a sources list to the csv2cxc JSON config, letting multiple separate PLIP interaction-detection runs on the same structure (e.g. different --chains groupings, different receptor/ligand framings) be aggregated into a single .cxc output, each with its own issmalmol, label_residues, and interaction_types settings.

  • Marker-set model ids are now allocated across the flattened list of all sources’ CSV files, and rename commands are prefixed with each source’s name to disambiguate identical interaction-type filenames across sources (e.g. two sources both producing hydrogen_bonds.csv).

  • Replaced the flat CLI’s receptor/ligand flags with neutral --primary-chain/--primary-color/--primary-transparency and --partner-chain/--partner-color/--partner-transparency/--partner-small-molecule flags; the flat CLI still only supports a single source (a single PLIP CSV folder inherently has at most two sides), while multi-source aggregation and arbitrary per-chain styling require --config.

  • --input is no longer accepted together with --config; in JSON-config mode, every source’s input CSV directory comes from the config’s sources[].input field, resolved relative to the config file’s own directory when given as a relative path.

  • Removed the legacy run_csv2cxc() wrapper in favor of run_csv2cxc_with_config().

  • Added a new CI job aggregating two independent PLIP runs on PDB 9KBZ (DCL4-RNA and DCL4-DRB4 interactions, using the structure’s real chain layout: DCL4 = chain A, DRB4 = chain B, RNA = chains C/D) into a single multi-source .cxc demonstrating explicit per-chain colors for all three entities.

0.1.5 (2026-08-21)

  • Added --label-residues flag to csv2cxc to add ChimeraX text labels (residue type, number, and chain) on every receptor and ligand residue involved in an interaction. Available on both the CLI and the JSON config ("label_residues": true).

  • Fixed --label-residues being silently ignored whenever --config (JSON) was also provided; the flag now overrides the config’s value on both the CLI and the Python API (run_csv2cxc_with_config).

  • Fixed water-bridge marker placement: the water marker position is now read directly from PLIP’s own WATERCOO column instead of being reconstructed from distances and an angle that do not describe the same triangle, which could raise a spurious “Inconsistent water-bridge geometry” error on real PLIP reports.

  • Fixed water-bridge pseudobonds incorrectly connecting ligand directly to receptor instead of forming the ligand-water and water-receptor bridge.

  • Fixed marker sets colliding with ChimeraX’s own per-structure label overlay (both claimed sub-model #1.1), which aborted the rest of the generated .cxc script whenever --label-residues was used; marker sets now live in a reserved top-level model range instead of nesting under the receptor structure.

  • Extended CI integration tests with a curated set of 14 PDB structures from PLIP’s own test suite, covering every PLIP interaction type plus DNA-ligand, RNA-only-receptor, RNA-receptor-with-protein-ligand (explicit --chains/--dnareceptor), peptide-ligand, and NMR-ensemble scenarios.

  • Removed the old single-structure (9kbz) integration job now that the curated matrix covers the same ground, and rewrote docs/usage.rst’s CI walkthrough to use commands taken directly from the matrix jobs.

  • Fixed sphinx-build -b linkcheck stalling for minutes retrying rate-limited github.com links from CI; those links are now skipped by the docs link checker.

0.1.4 (2026-06-03)

  • Added --interaction-types flag to csv2cxc to restrict output to a subset of interaction types (e.g. exclude hydrophobic interactions and hydrogen bonds). The flag is available on both the CLI and the Python API (write_cxc_file, run_csv2cxc_with_config).

  • Fixed write2csv to write the interaction_type column in per-interaction CSV files and the summary, making it consistent with plip2csv_stream.

  • Removed taplo-lint pre-commit hook whose remote schema-catalog fetch was broken in v0.9.3, unblocking the check CI job.

  • Added .pre-commit-config.yaml and .taplo.toml to the CI path triggers so linting-config changes are validated automatically.

  • Extended integration tests with a filtered-CXC use case that verifies hydrophobic and hydrogen bond interactions are absent from the output.

  • Updated usage documentation with an --interaction-types example.

0.1.3 (2026-04-15)

  • Fix pi-cation interaction handling in the CSV-to-CXC conversion workflow, ensuring correct annotation and pseudobond styling.

  • Simplify pseudobond management logic by updating pbond dataclasses.

0.1.2 (2026-04-08)

  • Expanded metal-binding handling and interaction rendering in the CSV-to-CXC conversion workflow.

  • Improved pi-stacking processing and pseudobond styling selection using PLIP stacking type hints.

  • Added backward-compatible typing annotations for Python 3.9 compatibility in pi-stacking pseudobond parameter selection.

  • Updated unit tests to cover pi-stacking annotation behavior and related mapping paths.

0.1.1 (2026-04-07)

  • Updated documentation content with detailed end-to-end usage examples (PLIP report -> CSV -> CXC).

  • Added CI-aligned documentation steps, including the Docker command used to generate PLIP reports.

  • Updated README links and badges to reflect Read the Docs hosting and current PyPI project metadata.

0.1.0 (2026-04-07)

  • Published release 0.1.0.

  • Added csv2cxc CLI workflow and end-to-end conversion from PLIP report to CSV to CXC.

  • Updated packaging/distribution metadata for PyPI publication as python-pliparser.

0.0.0 (2026-03-30)

  • First release on PyPI.

Metadata

Release files for python-pliparser 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-pliparser 1.0.0
File Size Uploaded Provenance Actions
python_pliparser-1.0.0.tar.gz 47.9 kB With provenance Details for python_pliparser-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-pliparser 1.0.0
File Interpreter ABI Platform Actions
python_pliparser-1.0.0-py3-none-any.whl Python 3 none any Details for python_pliparser-1.0.0-py3-none-any.whl

Total release size: 68.8 kB

Release files / python_pliparser-1.0.0.tar.gz

Download URL python_pliparser-1.0.0.tar.gz
Size 47.9 kB
Tags Source
SHA-256 checksum
How to use checksums
518d315caf024ea4c54291887dd7183aece551d82d62b703439d79379957e234
BLAKE2b-256 checksum
How to use checksums
582d594583883647bb045f576877f6019a6dbdd6340efa88ef19415a572b353a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / python_pliparser-1.0.0-py3-none-any.whl

Download URL python_pliparser-1.0.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e94a8ad59eb18c850501835b714f753ebea62b7b032a2d74662cf1aee7c057b
BLAKE2b-256 checksum
How to use checksums
8123c280918e23914f6af8ba3c0384ea77c2f620bf4cc6b5745264153cc0d37c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Security for python-pliparser 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for python_pliparser-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page