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.2.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

applique-0.2.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for applique-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a97230188077e7a895c3f8e0bd9223016c52bbb5086649399b3b721043a2ff27
MD5 53d82aa777e8432f8dd45c66ab832822
BLAKE2b-256 6cbaa5e8b0efa79cd5d6199e3c7bd3e51738cf1c467cdfdf5ca3063987306825

See more details on using hashes here.

File details

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

File metadata

  • Download URL: applique-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6188be3de4874686a2c7fc009283810e76df9fdcdc64704b5ca0ec8fa2a5cfc
MD5 5a9a2bd18a47cacb3b863f7ea882a27d
BLAKE2b-256 80a87282baa333fdf4a581f9a3f2754ff672c3107a8e74cccd37e6960c2009f0

See more details on using hashes here.

Supported by

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