pyoframe 0.2.0__py3-none-any.whl → 1.0.0__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.
- pyoframe/__init__.py +21 -14
- pyoframe/_arithmetic.py +346 -238
- pyoframe/_constants.py +463 -0
- pyoframe/_core.py +2652 -0
- pyoframe/_model.py +598 -0
- pyoframe/_model_element.py +189 -0
- pyoframe/_monkey_patch.py +82 -0
- pyoframe/{objective.py → _objective.py} +50 -17
- pyoframe/{util.py → _utils.py} +108 -129
- pyoframe/_version.py +16 -3
- {pyoframe-0.2.0.dist-info → pyoframe-1.0.0.dist-info}/METADATA +37 -31
- pyoframe-1.0.0.dist-info/RECORD +15 -0
- pyoframe/constants.py +0 -140
- pyoframe/core.py +0 -1794
- pyoframe/model.py +0 -408
- pyoframe/model_element.py +0 -184
- pyoframe/monkey_patch.py +0 -54
- pyoframe-0.2.0.dist-info/RECORD +0 -15
- {pyoframe-0.2.0.dist-info → pyoframe-1.0.0.dist-info}/WHEEL +0 -0
- {pyoframe-0.2.0.dist-info → pyoframe-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {pyoframe-0.2.0.dist-info → pyoframe-1.0.0.dist-info}/top_level.txt +0 -0
pyoframe/__init__.py
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Pyoframe's public API.
|
|
3
|
-
Also applies the monkey patch to the DataFrame libraries.
|
|
4
|
-
"""
|
|
1
|
+
"""Pyoframe's public API accessible via `import pyoframe as pf`."""
|
|
5
2
|
|
|
6
|
-
from pyoframe.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
from pyoframe._constants import (
|
|
4
|
+
Config,
|
|
5
|
+
ObjSense,
|
|
6
|
+
PyoframeError,
|
|
7
|
+
VType,
|
|
8
|
+
_Config, # noqa: F401 Should be kept here to allow cross referencing in the documentation
|
|
9
|
+
)
|
|
10
|
+
from pyoframe._core import Constraint, Expression, Set, Variable, sum, sum_by
|
|
11
|
+
from pyoframe._model import Model
|
|
12
|
+
from pyoframe._monkey_patch import patch_dataframe_libraries
|
|
13
|
+
from pyoframe._objective import Objective
|
|
10
14
|
|
|
11
15
|
try:
|
|
12
16
|
from pyoframe._version import __version__, __version_tuple__ # noqa: F401
|
|
@@ -16,13 +20,16 @@ except ModuleNotFoundError: # pragma: no cover
|
|
|
16
20
|
patch_dataframe_libraries()
|
|
17
21
|
|
|
18
22
|
__all__ = [
|
|
19
|
-
"sum",
|
|
20
|
-
"sum_by",
|
|
21
|
-
"Variable",
|
|
22
23
|
"Model",
|
|
24
|
+
"Variable",
|
|
25
|
+
"Expression",
|
|
26
|
+
"Constraint",
|
|
27
|
+
"Objective",
|
|
23
28
|
"Set",
|
|
24
|
-
"VType",
|
|
25
29
|
"Config",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
30
|
+
"sum",
|
|
31
|
+
"sum_by",
|
|
32
|
+
"VType",
|
|
33
|
+
"ObjSense",
|
|
34
|
+
"PyoframeError",
|
|
28
35
|
]
|