rdchiral-plus 0.1.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Connor Coley
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: rdchiral_plus
3
+ Version: 0.1.0
4
+ Summary: Wrapper for RDKit's RunReactants to improve stereochemistry handling
5
+ Author-email: Connor Coley <ccoley@mit.edu>, Carson Britt <carson.s.britt@gmail.com>
6
+ Maintainer-email: Carson Britt <carson.s.britt@gmail.com>
7
+ Project-URL: Homepage, https://github.com/denovochem/rdchiral_plus/
8
+ Project-URL: Repository, https://github.com/denovochem/rdchiral_plus/
9
+ Project-URL: Issues, https://github.com/denovochem/rdchiral_plus/issues
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: rdkit
17
+ Dynamic: license-file
18
+
19
+ [![PyPI version](https://badge.fury.io/py/rdchiral.svg)](https://badge.fury.io/py/rdchiral)
20
+ [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/denovochem/rdchiral_plus/graphs/commit-activity)
21
+ [![License](https://img.shields.io/pypi/l/rdchiral)](https://github.com/denovochem/rdchiral_plus/blob/main/LICENSE)
22
+ [![Run Tests](https://github.com/denovochem/rdchiral_plus/actions/workflows/ci.yml/badge.svg)](https://github.com/denovochem/rdchiral_plus/actions/workflows/ci.yml)
23
+ [![Build Docs](https://github.com/denovochem/cholla_chem/actions/workflows/docs.yml/badge.svg)](https://github.com/denovochem/cholla_chem/actions/workflows/docs.yml)
24
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/denovochem/rdchiral_plus/blob/main/examples/example_notebook.ipynb)
25
+
26
+ # rdchiral_plus
27
+ Wrapper for RDKit's RunReactants to improve stereochemistry handling
28
+
29
+ This repository is a fork of [rdchiral](https://github.com/connorcoley/rdchiral). It has been modified for improved performance, and is statically typed wherever possible so that it can be compiled with [mypyc](https://mypyc.readthedocs.io/en/latest/introduction.html) for faster execution. These modifications provide comparable speed to the fast (5-10x) C++ version ([rdchiral_cpp](https://gitlab.com/ljn917/rdchiral_cpp)), with all of the benefits of being written in Python. It is also pip installable and cross platform.
30
+
31
+ ## Requirements
32
+
33
+ * RDKit (version >= 2019)
34
+ * Python (version >= 3.9)
35
+
36
+ ## Installation
37
+
38
+ Install RDChiral with pip directly from this repo:
39
+
40
+ ```shell
41
+ pip install git+https://github.com/denovochem/rdchiral_plus.git
42
+ ```
43
+
44
+ ## Documentation
45
+
46
+ See ```rdchiral/main.py``` for a brief description of expected behavior and a few basic examples of how to use the wrapper.
47
+
48
+ See ```rdchiral/test/test_rdchiral.py``` for a small set of test cases described [here](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00286)
@@ -0,0 +1,30 @@
1
+ [![PyPI version](https://badge.fury.io/py/rdchiral.svg)](https://badge.fury.io/py/rdchiral)
2
+ [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/denovochem/rdchiral_plus/graphs/commit-activity)
3
+ [![License](https://img.shields.io/pypi/l/rdchiral)](https://github.com/denovochem/rdchiral_plus/blob/main/LICENSE)
4
+ [![Run Tests](https://github.com/denovochem/rdchiral_plus/actions/workflows/ci.yml/badge.svg)](https://github.com/denovochem/rdchiral_plus/actions/workflows/ci.yml)
5
+ [![Build Docs](https://github.com/denovochem/cholla_chem/actions/workflows/docs.yml/badge.svg)](https://github.com/denovochem/cholla_chem/actions/workflows/docs.yml)
6
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/denovochem/rdchiral_plus/blob/main/examples/example_notebook.ipynb)
7
+
8
+ # rdchiral_plus
9
+ Wrapper for RDKit's RunReactants to improve stereochemistry handling
10
+
11
+ This repository is a fork of [rdchiral](https://github.com/connorcoley/rdchiral). It has been modified for improved performance, and is statically typed wherever possible so that it can be compiled with [mypyc](https://mypyc.readthedocs.io/en/latest/introduction.html) for faster execution. These modifications provide comparable speed to the fast (5-10x) C++ version ([rdchiral_cpp](https://gitlab.com/ljn917/rdchiral_cpp)), with all of the benefits of being written in Python. It is also pip installable and cross platform.
12
+
13
+ ## Requirements
14
+
15
+ * RDKit (version >= 2019)
16
+ * Python (version >= 3.9)
17
+
18
+ ## Installation
19
+
20
+ Install RDChiral with pip directly from this repo:
21
+
22
+ ```shell
23
+ pip install git+https://github.com/denovochem/rdchiral_plus.git
24
+ ```
25
+
26
+ ## Documentation
27
+
28
+ See ```rdchiral/main.py``` for a brief description of expected behavior and a few basic examples of how to use the wrapper.
29
+
30
+ See ```rdchiral/test/test_rdchiral.py``` for a small set of test cases described [here](https://pubs.acs.org/doi/abs/10.1021/acs.jcim.9b00286)
@@ -0,0 +1,69 @@
1
+ [build-system]
2
+ requires = ["setuptools>=45", "wheel", "mypy>=1.14,<2", "rdkit", "numpy"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "rdchiral_plus"
7
+ version = "0.1.0"
8
+ description = "Wrapper for RDKit's RunReactants to improve stereochemistry handling"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ dependencies = [
12
+ "rdkit",
13
+ ]
14
+ authors = [
15
+ {name = "Connor Coley", email = "ccoley@mit.edu"},
16
+ {name = "Carson Britt", email = "carson.s.britt@gmail.com"}
17
+ ]
18
+ maintainers = [
19
+ {name = "Carson Britt", email = "carson.s.britt@gmail.com"}
20
+ ]
21
+ classifiers = [
22
+ "Programming Language :: Python :: 3",
23
+ "License :: OSI Approved :: MIT License",
24
+ "Operating System :: OS Independent",
25
+ ]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/denovochem/rdchiral_plus/"
29
+ Repository = "https://github.com/denovochem/rdchiral_plus/"
30
+ Issues = "https://github.com/denovochem/rdchiral_plus/issues"
31
+
32
+ [tool.setuptools.packages.find]
33
+ where = ["."]
34
+ include = ["rdchiral*"]
35
+
36
+ [tool.cibuildwheel]
37
+ build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
38
+ skip = "pp* *-musllinux_* *-win32 *_i686"
39
+
40
+ [tool.cibuildwheel.linux]
41
+ manylinux-x86_64-image = "manylinux_2_28"
42
+ manylinux-aarch64-image = "manylinux_2_28"
43
+
44
+ [tool.cibuildwheel.environment]
45
+ RDCHIRAL_USE_MYPYC = "1"
46
+
47
+ [dependency-groups]
48
+ dev = [
49
+ "ipykernel>=6.29.5",
50
+ "jupyter>=1.1.1",
51
+ "mypy>=1.14.1",
52
+ "pytest>=8.3.5",
53
+ "ruff>=0.15.6",
54
+ ]
55
+
56
+ [tool.mypy]
57
+ ignore_missing_imports = true
58
+
59
+ [[tool.mypy.overrides]]
60
+ module = "rdkit.*"
61
+ follow_imports = "skip"
62
+
63
+ [tool.pytest.ini_options]
64
+ testpaths = [
65
+ "tests",
66
+ ]
67
+ markers = [
68
+ "slow: integration/performance-style tests",
69
+ ]
@@ -0,0 +1,23 @@
1
+ from importlib.metadata import PackageNotFoundError, version
2
+
3
+ from rdkit import RDLogger
4
+
5
+ from rdchiral.initialization import rdchiralReactants, rdchiralReaction
6
+ from rdchiral.main import rdchiralRun, rdchiralRunText
7
+ from rdchiral.template_extractor import extract_from_reaction
8
+
9
+ lg = RDLogger.logger()
10
+ lg.setLevel(RDLogger.CRITICAL)
11
+
12
+ __all__ = [
13
+ "rdchiralRunText",
14
+ "rdchiralRun",
15
+ "rdchiralReaction",
16
+ "rdchiralReactants",
17
+ "extract_from_reaction",
18
+ ]
19
+
20
+ try:
21
+ __version__ = version("rdchiral_plus")
22
+ except PackageNotFoundError: # pragma: no cover
23
+ __version__ = "unknown"