Skip to main content

Chemical drawing with Python

Project description

applique

Downloads License: GPL v3 Python Versions Code style: black PyPI - Version

applique is a simple program that can write .xyz file from .mol files. It really is just a missing puzzle piece in the quantum chemistry world, as some molecular editors went corrupt. Now one can use common Quantum Chemistry software again. It mimics Avogadros behaviour.

Nothing special.

Okay by now it is an understatement. It is infact a molecular model suitable for generating simulations. It can also convert fileformats.

Installation

Simple as always

pip install applique

Usage

Cli

In your venv

applique --i in_file.mol --o out_file.xyz

Easy peasy

Programs

Within programs for example you load a molfile like this

from applique.molecule import Molecule as Mol

mol_file_benzene = "tests/molecules/benzene.mol"
benzene = Mol().from_mol(mol_file_benzene)

Then write the .xyz like this

from applique.writer import write_xyz
from applique.molecule import Molecule as Mol

mol_file_benzene = "tests/molecules/benzene.mol"
benzene = Mol().from_mol(mol_file_benzene)
file_name_benzene = "./tests/molecules/benzene.xyz"
coordinates = benzene.struct3D() #you can omit if you don't want to preoptimize the structure.
write_xyz(self.benzene, file_name_benzene)

Errors

This is wanted (don't want to impose bonds at this stage)

E       RuntimeError: Pre-condition Violation
E               getNumImplicitHs() called without preceding call to calcImplicitValence()
E               Violation occurred on line 287 in file Code/GraphMol/Atom.cpp
E               Failed Expression: d_implicitValence > -1
E               RDKIT: 2024.03.5
E               BOOST: 1_85

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

applique-0.1.11.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

applique-0.1.11-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file applique-0.1.11.tar.gz.

File metadata

  • Download URL: applique-0.1.11.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for applique-0.1.11.tar.gz
Algorithm Hash digest
SHA256 c61fed947d99b13bf6611eea8b37c0873c2947b95e5e9e966a4b303b6d15f002
MD5 c7028dc154d2c0957d828b1a8f7ed047
BLAKE2b-256 b8d0aff371d39c99168e0e991292ac011484a8956a3ae5bf5ce0e57f2d0effdf

See more details on using hashes here.

File details

Details for the file applique-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: applique-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for applique-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 63b8d4a55d3d3298ced29bbc0f372d6fe0fbd836f2589b91f44972e9cf07a309
MD5 e76a6292343e0e1b5eabe7bb73cc4111
BLAKE2b-256 a2cf6a5e57024e031942a75bfbace3726c455f45d920933d4e483fcd5e9a6918

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page