pyopsin 0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyopsin
3
+ Version: 0.1
4
+ Summary: A python wrapper for simple OPSIN usage.
5
+ Home-page: https://github.com/Dingyun-Huang/pyopsin
6
+ Author: Dingyun Huang
7
+ Author-email: dh582@cam.ac.uk
8
+ Requires-Python: >=3.9
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: jpype1 (>=1.2.0)
11
+
12
+ PyOPSIN
13
+ ====================
14
+
15
+ This is a Python wrapper for the OPSIN (Open Parser for Systematic IUPAC Nomenclature) package, which allows you to generate SMILES and CML form the standardized IUPAC names for organic molecules. The original OPSIN package was written in Java, but this wrapper allows you to use OPSIN functionality directly from Python.
16
+
17
+ Installation
18
+ ------------
19
+
20
+ To install PyOPSIN, clone the repository and run
21
+ ```
22
+ pip install -e .
23
+ ```
24
+ Usage
25
+ -----
26
+
27
+ Here's an example of how to use the PyOPSIN to generate an IUPAC name for a molecule:
28
+ ```python
29
+ from pyopsin.pyopsin import PyOpsin
30
+
31
+ # create an PyOpsin object
32
+ opsin = PyOpsin()
33
+
34
+ # generate the SMILES string from an IUPAC name for a molecule
35
+ name = "2,4,6-trinitrotoluene"
36
+ smiles = pyopsin.to_smiles(name)
37
+
38
+ # print the IUPAC name
39
+ print(smiles)
40
+ ```
41
+ This should output the following IUPAC name:
42
+ ```
43
+ [N+](=O)([O-])C1=C(C)C(=CC(=C1)[N+](=O)[O-])[N+](=O)[O-]
44
+ ```
45
+
46
+ Acknowledgments
47
+ ---------------
48
+
49
+ The OPSIN Python wrapper is built on top of the [OPSIN package](https://opsin.ch.cam.ac.uk/), which was developed by the Centre for Molecular Informatics at the University of Cambridge. We would like to thank the developers of OPSIN for creating such a powerful and useful tool.
@@ -0,0 +1,5 @@
1
+ pyopsin-0.1.dist-info/METADATA,sha256=_b4jOkJSEUC4EB7bX2y9WHpmNIW3Y7Fk0B-vZqZl8ss,1586
2
+ pyopsin-0.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
3
+ pyopsin-0.1.dist-info/entry_points.txt,sha256=JH6HV2CoZcF9FpsHHTr1U2mV6QpSq-5SViVQHsYa5zo,50
4
+ pyopsin-0.1.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
+ pyopsin-0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.38.4)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ PyOPSIN = PyOPSIN.__main__:main
@@ -0,0 +1 @@
1
+