pyopsin 0.1__tar.gz
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.
- pyopsin-0.1/PKG-INFO +48 -0
- pyopsin-0.1/README.md +38 -0
- pyopsin-0.1/pyopsin.egg-info/PKG-INFO +48 -0
- pyopsin-0.1/pyopsin.egg-info/SOURCES.txt +8 -0
- pyopsin-0.1/pyopsin.egg-info/dependency_links.txt +1 -0
- pyopsin-0.1/pyopsin.egg-info/entry_points.txt +2 -0
- pyopsin-0.1/pyopsin.egg-info/requires.txt +1 -0
- pyopsin-0.1/pyopsin.egg-info/top_level.txt +1 -0
- pyopsin-0.1/setup.cfg +4 -0
- pyopsin-0.1/setup.py +26 -0
pyopsin-0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
|
|
11
|
+
PyOPSIN
|
|
12
|
+
====================
|
|
13
|
+
|
|
14
|
+
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.
|
|
15
|
+
|
|
16
|
+
Installation
|
|
17
|
+
------------
|
|
18
|
+
|
|
19
|
+
To install PyOPSIN, clone the repository and run
|
|
20
|
+
```
|
|
21
|
+
pip install -e .
|
|
22
|
+
```
|
|
23
|
+
Usage
|
|
24
|
+
-----
|
|
25
|
+
|
|
26
|
+
Here's an example of how to use the PyOPSIN to generate an IUPAC name for a molecule:
|
|
27
|
+
```python
|
|
28
|
+
from pyopsin.pyopsin import PyOpsin
|
|
29
|
+
|
|
30
|
+
# create an PyOpsin object
|
|
31
|
+
opsin = PyOpsin()
|
|
32
|
+
|
|
33
|
+
# generate the SMILES string from an IUPAC name for a molecule
|
|
34
|
+
name = "2,4,6-trinitrotoluene"
|
|
35
|
+
smiles = pyopsin.to_smiles(name)
|
|
36
|
+
|
|
37
|
+
# print the IUPAC name
|
|
38
|
+
print(smiles)
|
|
39
|
+
```
|
|
40
|
+
This should output the following IUPAC name:
|
|
41
|
+
```
|
|
42
|
+
[N+](=O)([O-])C1=C(C)C(=CC(=C1)[N+](=O)[O-])[N+](=O)[O-]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Acknowledgments
|
|
46
|
+
---------------
|
|
47
|
+
|
|
48
|
+
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.
|
pyopsin-0.1/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
PyOPSIN
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
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.
|
|
5
|
+
|
|
6
|
+
Installation
|
|
7
|
+
------------
|
|
8
|
+
|
|
9
|
+
To install PyOPSIN, clone the repository and run
|
|
10
|
+
```
|
|
11
|
+
pip install -e .
|
|
12
|
+
```
|
|
13
|
+
Usage
|
|
14
|
+
-----
|
|
15
|
+
|
|
16
|
+
Here's an example of how to use the PyOPSIN to generate an IUPAC name for a molecule:
|
|
17
|
+
```python
|
|
18
|
+
from pyopsin.pyopsin import PyOpsin
|
|
19
|
+
|
|
20
|
+
# create an PyOpsin object
|
|
21
|
+
opsin = PyOpsin()
|
|
22
|
+
|
|
23
|
+
# generate the SMILES string from an IUPAC name for a molecule
|
|
24
|
+
name = "2,4,6-trinitrotoluene"
|
|
25
|
+
smiles = pyopsin.to_smiles(name)
|
|
26
|
+
|
|
27
|
+
# print the IUPAC name
|
|
28
|
+
print(smiles)
|
|
29
|
+
```
|
|
30
|
+
This should output the following IUPAC name:
|
|
31
|
+
```
|
|
32
|
+
[N+](=O)([O-])C1=C(C)C(=CC(=C1)[N+](=O)[O-])[N+](=O)[O-]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Acknowledgments
|
|
36
|
+
---------------
|
|
37
|
+
|
|
38
|
+
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,48 @@
|
|
|
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
|
+
|
|
11
|
+
PyOPSIN
|
|
12
|
+
====================
|
|
13
|
+
|
|
14
|
+
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.
|
|
15
|
+
|
|
16
|
+
Installation
|
|
17
|
+
------------
|
|
18
|
+
|
|
19
|
+
To install PyOPSIN, clone the repository and run
|
|
20
|
+
```
|
|
21
|
+
pip install -e .
|
|
22
|
+
```
|
|
23
|
+
Usage
|
|
24
|
+
-----
|
|
25
|
+
|
|
26
|
+
Here's an example of how to use the PyOPSIN to generate an IUPAC name for a molecule:
|
|
27
|
+
```python
|
|
28
|
+
from pyopsin.pyopsin import PyOpsin
|
|
29
|
+
|
|
30
|
+
# create an PyOpsin object
|
|
31
|
+
opsin = PyOpsin()
|
|
32
|
+
|
|
33
|
+
# generate the SMILES string from an IUPAC name for a molecule
|
|
34
|
+
name = "2,4,6-trinitrotoluene"
|
|
35
|
+
smiles = pyopsin.to_smiles(name)
|
|
36
|
+
|
|
37
|
+
# print the IUPAC name
|
|
38
|
+
print(smiles)
|
|
39
|
+
```
|
|
40
|
+
This should output the following IUPAC name:
|
|
41
|
+
```
|
|
42
|
+
[N+](=O)([O-])C1=C(C)C(=CC(=C1)[N+](=O)[O-])[N+](=O)[O-]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Acknowledgments
|
|
46
|
+
---------------
|
|
47
|
+
|
|
48
|
+
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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
jpype1>=1.2.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
pyopsin-0.1/setup.cfg
ADDED
pyopsin-0.1/setup.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
import setuptools
|
|
3
|
+
|
|
4
|
+
with open("README.md", "r") as fh:
|
|
5
|
+
long_description = fh.read()
|
|
6
|
+
|
|
7
|
+
setup(
|
|
8
|
+
name='pyopsin',
|
|
9
|
+
version='0.1',
|
|
10
|
+
author='Dingyun Huang',
|
|
11
|
+
author_email='dh582@cam.ac.uk',
|
|
12
|
+
description='A python wrapper for simple OPSIN usage.',
|
|
13
|
+
long_description=long_description,
|
|
14
|
+
long_description_content_type="text/markdown",
|
|
15
|
+
url="https://github.com/Dingyun-Huang/pyopsin",
|
|
16
|
+
packages=setuptools.find_packages(),
|
|
17
|
+
python_requires='>=3.9',
|
|
18
|
+
install_requires=[
|
|
19
|
+
'jpype1>=1.2.0',
|
|
20
|
+
],
|
|
21
|
+
entry_points={
|
|
22
|
+
'console_scripts': [
|
|
23
|
+
'PyOPSIN = PyOPSIN.__main__:main',
|
|
24
|
+
],
|
|
25
|
+
},
|
|
26
|
+
)
|