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 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.constants import Config, VType
7
- from pyoframe.core import Constraint, Expression, Set, Variable, sum, sum_by
8
- from pyoframe.model import Model
9
- from pyoframe.monkey_patch import patch_dataframe_libraries
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
- "Constraint",
27
- "Expression",
30
+ "sum",
31
+ "sum_by",
32
+ "VType",
33
+ "ObjSense",
34
+ "PyoframeError",
28
35
  ]