Skip to main content

zincware codecov PyPI version DOI Docs

rdkit2ase - Interface between the rdkit and ASE package.

Installation via pip install rdkit2ase.

from rdkit2ase import rdkit2ase, ase2rdkit

atoms: ase.Atoms = rdkit2ase(mol)
mol = ase2rdkit(atoms)
from rdkit2ase import smiles2atoms

atoms: ase.Atoms = smiles2atoms("O")

print(atoms)
>>> Atoms(symbols='OH2', pbc=False)

Packmol Interface

If you have packmol (at least v20.15.0) you can use the rdkit2ase interface.

from rdkit2ase import pack, smiles2conformers

water = smiles2conformers("O", 2)
ethanol = smiles2conformers("CCO", 5)
density = 1000  # kg/m^3
box = pack([water, ethanol], [7, 5], density)
print(box)
>>> Atoms(symbols='C10H44O12', pbc=True, cell=[8.4, 8.4, 8.4])

Limitations

  • rdkit2ase.ase2rdkit won't be able to detect higher order bonds.

Metadata

Release files for rdkit2ase 0.1.13

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

Source distribution (sdist)

Source distribution for rdkit2ase 0.1.13
File Size Uploaded Provenance
rdkit2ase-0.1.13.tar.gz 292.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rdkit2ase 0.1.13
File Interpreter ABI Platform
rdkit2ase-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 319.6 kB

Release files / rdkit2ase-0.1.13.tar.gz

Download URL rdkit2ase-0.1.13.tar.gz
Size 292.8 kB
Tags Source
SHA-256 checksum
How to use checksums
557d691addc967795504354706fe2dee287ae3e356d913b549dd3b1cf100dcb6
BLAKE2b-256 checksum
How to use checksums
df3a2a92f6f4699ba1ffbf4e8382e05240dd463d39e2280d82ad85367463b69d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.8

Release files / rdkit2ase-0.1.13-py3-none-any.whl

Download URL rdkit2ase-0.1.13-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26a0bcc78035c24139eb67e61e5e63d850bcb16069f2a4f3c8e6b86422e2630c
BLAKE2b-256 checksum
How to use checksums
c3038d5774caef8262c0b9332a6241551d03682d143fc4fb00877acf2d6168ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.8

Security for rdkit2ase 0.1.13

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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