haddock-restraints-py
This repository contains the bindings of the
haddock-restraints code
so that it can be used as a python library.
pip install haddock-restraints
from haddock_restraints import Interactor, Air
# Define binding regions
binding_region_1 = Interactor(id=1, chain="A", active=[10, 11], passive=[])
binding_region_2 = Interactor(id=2, chain="B", active=[2, 22], passive=[])
# Define the relation between the regions
binding_region_1.set_target(2)
binding_region_2.set_target(1)
# Set passive residues from active residues
binding_region_1.set_passive_from_active()
# Generate AIR table
air = Air(interactors=[binding_region_1, binding_region_2])
tbl = air.gen_tbl()
# Print the restraints
print(tbl)
🚧 🚧 🚧
Metadata
Release files for haddock-restraints 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| haddock_restraints-0.0.1.tar.gz | 13.9 kB | With provenance | Details for haddock_restraints-0.0.1.tar.gz |
Release files / haddock_restraints-0.0.1.tar.gz
| Download URL | haddock_restraints-0.0.1.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e77fad750779342c03bec5e0cc27c446cd658ed78d51b77b03c6bffda71d02f
|
|
BLAKE2b-256 checksum How to use checksums |
6183fbbadb8db60123b12ba703ea1234472955e3ee75f899a05dd8b27be39256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Oct 2, 2025.
Transparency logSecurity for haddock-restraints 0.0.1
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
1 file in this release has been uploaded with provenance metadata.
Attestation for haddock_restraints-0.0.1.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 Oct 2, 2025.
Transparency logA 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.