py-adtools 0.1.1__py3-none-any.whl → 0.1.2__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.
Potentially problematic release.
This version of py-adtools might be problematic. Click here for more details.
- adtools/evaluator.py +3 -4
- {py_adtools-0.1.1.dist-info → py_adtools-0.1.2.dist-info}/METADATA +5 -3
- py_adtools-0.1.2.dist-info/RECORD +8 -0
- py_adtools-0.1.1.dist-info/RECORD +0 -8
- {py_adtools-0.1.1.dist-info → py_adtools-0.1.2.dist-info}/WHEEL +0 -0
- {py_adtools-0.1.1.dist-info → py_adtools-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {py_adtools-0.1.1.dist-info → py_adtools-0.1.2.dist-info}/top_level.txt +0 -0
adtools/evaluator.py
CHANGED
|
@@ -11,13 +11,12 @@ from .py_code import PyProgram
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class PyEvaluator(ABC):
|
|
14
|
-
"""Python programs evaluator."""
|
|
15
14
|
|
|
16
15
|
def __init__(self, debug_mode: bool = False, *, exec_code: bool = True):
|
|
17
|
-
"""Evaluator interface for evaluating the
|
|
16
|
+
"""Evaluator interface for evaluating the Python algorithm program.
|
|
18
17
|
Args:
|
|
19
|
-
debug_mode
|
|
20
|
-
exec_code
|
|
18
|
+
debug_mode: Debug mode.
|
|
19
|
+
exec_code : Using 'exec()' to compile the code and provide the callable function.
|
|
21
20
|
"""
|
|
22
21
|
self._debug_mode = debug_mode
|
|
23
22
|
self._exec_code = exec_code
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: py-adtools
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Useful tools for parsing Python programs for algorithm design.
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Useful tools for parsing and evaluating Python programs for algorithm design.
|
|
5
5
|
Home-page: https://github.com/RayZhhh/py-adtools
|
|
6
6
|
Author: Rui Zhang
|
|
7
7
|
Author-email: rzhang.cs@gmail.com
|
|
@@ -12,6 +12,7 @@ Classifier: Topic :: Scientific/Engineering
|
|
|
12
12
|
Requires-Python: >=3.10
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
+
Requires-Dist: psutil
|
|
15
16
|
Dynamic: author
|
|
16
17
|
Dynamic: author-email
|
|
17
18
|
Dynamic: classifier
|
|
@@ -19,6 +20,7 @@ Dynamic: description
|
|
|
19
20
|
Dynamic: description-content-type
|
|
20
21
|
Dynamic: home-page
|
|
21
22
|
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
22
24
|
Dynamic: requires-python
|
|
23
25
|
Dynamic: summary
|
|
24
26
|
|
|
@@ -47,7 +49,7 @@ The figure demonstrates how a Python program is parsed into `PyScript`, `PyFunct
|
|
|
47
49
|
Run the following instructions to install adtools.
|
|
48
50
|
|
|
49
51
|
```shell
|
|
50
|
-
pip install git+https://github.com/RayZhhh/
|
|
52
|
+
pip install git+https://github.com/RayZhhh/py-adtools.git
|
|
51
53
|
```
|
|
52
54
|
|
|
53
55
|
Or install via pip:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
adtools/__init__.py,sha256=99EPY13OhXs2Zt7IOsa53uQ0Uv-g9dSkHby8mEjDdQM,96
|
|
2
|
+
adtools/evaluator.py,sha256=-VIt9fmR6qjVLQPyKhNf072tJUVndkVJ1PgcHu6Yneo,7200
|
|
3
|
+
adtools/py_code.py,sha256=1XNc5ckX_ivePSGYEEcKHXat-v4zjbxKUcYiTIEjqCw,13649
|
|
4
|
+
py_adtools-0.1.2.dist-info/licenses/LICENSE,sha256=E5GGyecx3y5h2gcEGQloF-rDY9wbaef5IHjRsvtFbt8,1065
|
|
5
|
+
py_adtools-0.1.2.dist-info/METADATA,sha256=B_HjhfOtTiHLNgXOCyRfCAnpp7S73pm064faw13bOjk,6232
|
|
6
|
+
py_adtools-0.1.2.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
|
7
|
+
py_adtools-0.1.2.dist-info/top_level.txt,sha256=X2kKzmJFDAKR2FWCij5pfMG9pVVjVUomyl4e-1VLXIk,8
|
|
8
|
+
py_adtools-0.1.2.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
adtools/__init__.py,sha256=99EPY13OhXs2Zt7IOsa53uQ0Uv-g9dSkHby8mEjDdQM,96
|
|
2
|
-
adtools/evaluator.py,sha256=KyYUqVhUpek1vS0CdiMJaNooVtIZVugIvzVH6bGi81Y,7255
|
|
3
|
-
adtools/py_code.py,sha256=1XNc5ckX_ivePSGYEEcKHXat-v4zjbxKUcYiTIEjqCw,13649
|
|
4
|
-
py_adtools-0.1.1.dist-info/licenses/LICENSE,sha256=E5GGyecx3y5h2gcEGQloF-rDY9wbaef5IHjRsvtFbt8,1065
|
|
5
|
-
py_adtools-0.1.1.dist-info/METADATA,sha256=FrDmTPVetLES_vx0q0n5v1nf8OXfFA2vvG3nChka2Vo,6168
|
|
6
|
-
py_adtools-0.1.1.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
|
7
|
-
py_adtools-0.1.1.dist-info/top_level.txt,sha256=X2kKzmJFDAKR2FWCij5pfMG9pVVjVUomyl4e-1VLXIk,8
|
|
8
|
-
py_adtools-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|