quick-pp 0.2.3__tar.gz → 0.2.4__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.
- {quick_pp-0.2.3 → quick_pp-0.2.4}/PKG-INFO +1 -1
- {quick_pp-0.2.3 → quick_pp-0.2.4}/pyproject.toml +1 -1
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/main.py +6 -2
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/mlflow_model_deployment.py +4 -1
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/cli.py +6 -3
- {quick_pp-0.2.3 → quick_pp-0.2.4}/.gitignore +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/AUTHORS.rst +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/LICENSE +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/README.md +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/__init__.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/__init__.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/exceptions.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/fastapi_mlflow/__init__.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/fastapi_mlflow/_mlflow_types.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/fastapi_mlflow/applications.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/fastapi_mlflow/exceptions.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/fastapi_mlflow/predictors.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/qpp_assistant.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/router.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/lithology_hc_correction.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/lithology_ssc.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/lithology_vsh_gr.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/permeability_choo.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/permeability_others.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/porosity.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/ressum.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/saturation_archie.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/saturation_b.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/saturation_qv.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/saturation_rw.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/saturation_temp_grad.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/schemas/saturation_waxman_smits.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/services/las_handler.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/services/lithology.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/services/permeability.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/services/porosity.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/services/reservoir_summary.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/services/saturation.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/static/favicon.ico +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/api/static/logo.png +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/config.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/core_calibration.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/fluid_type.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/geomechanics.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/las_handler.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/lithology/__init__.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/lithology/carbonate.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/lithology/multi_mineral.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/lithology/sand_shale.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/lithology/sand_silt_clay.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/logger.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/modelling/__init__.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/modelling/config.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/modelling/mock_data/mock_data.parquet +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/modelling/predict_pipeline.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/modelling/train_pipeline.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/modelling/utils.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/objects.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/permeability.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/plotter/__init__.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/plotter/plotter.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/plotter/well_log.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/plotter/well_log_config.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/porosity.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/qaqc.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/ressum.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/rock_type.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/saturation.py +0 -0
- {quick_pp-0.2.3 → quick_pp-0.2.4}/quick_pp/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quick-pp
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Python package to assist in providing quick-look/ preliminary petrophysical estimation.
|
|
5
5
|
Project-URL: Homepage, https://github.com/imranfadhil/quick_pp
|
|
6
6
|
Author-email: Imran Fadhil <imranfadhil@gmail.com>
|
|
@@ -6,6 +6,7 @@ from fastapi.responses import FileResponse
|
|
|
6
6
|
from .exceptions import return_exception_message
|
|
7
7
|
from fastapi_mcp import FastApiMCP
|
|
8
8
|
from chainlit.utils import mount_chainlit
|
|
9
|
+
from importlib import resources
|
|
9
10
|
|
|
10
11
|
from .router import api_router
|
|
11
12
|
|
|
@@ -45,7 +46,9 @@ app = FastAPI(
|
|
|
45
46
|
openapi_tags=tags_metadata,
|
|
46
47
|
debug=True
|
|
47
48
|
)
|
|
48
|
-
|
|
49
|
+
with resources.files('quick_pp.api') as api_folder:
|
|
50
|
+
static_folder = api_folder / "static"
|
|
51
|
+
app.mount("/static", StaticFiles(directory=static_folder), name="static")
|
|
49
52
|
app.include_router(api_router)
|
|
50
53
|
|
|
51
54
|
|
|
@@ -87,4 +90,5 @@ mcp = FastApiMCP(
|
|
|
87
90
|
)
|
|
88
91
|
mcp.mount()
|
|
89
92
|
|
|
90
|
-
|
|
93
|
+
qpp_assistant_file = resources.files('quick_pp.api').joinpath('qpp_assistant.py')
|
|
94
|
+
mount_chainlit(app=app, target=str(qpp_assistant_file), path="/qpp_assistant")
|
|
@@ -8,6 +8,7 @@ from datetime import datetime
|
|
|
8
8
|
import mlflow
|
|
9
9
|
from mlflow.pyfunc import load_model
|
|
10
10
|
import mlflow.tracking as mlflow_tracking
|
|
11
|
+
from importlib import resources
|
|
11
12
|
|
|
12
13
|
# # Uncomment below 3 lines to run >> if __name__ == "__main__"
|
|
13
14
|
# import os
|
|
@@ -26,7 +27,9 @@ app = FastAPI(
|
|
|
26
27
|
"url": "https://github.com/imranfadhil/quick_pp", "email": "imranfadhil@gmail.com"},
|
|
27
28
|
swagger_ui_parameters={"defaultModelsExpandDepth": -1},
|
|
28
29
|
debug=True)
|
|
29
|
-
|
|
30
|
+
with resources.files('quick_pp.api') as api_folder:
|
|
31
|
+
static_folder = api_folder / "static"
|
|
32
|
+
app.mount("/static", StaticFiles(directory=static_folder), name="static")
|
|
30
33
|
|
|
31
34
|
|
|
32
35
|
@app.get("/favicon.ico", include_in_schema=False)
|
|
@@ -7,9 +7,6 @@ import shutil
|
|
|
7
7
|
import socket
|
|
8
8
|
from importlib import metadata, resources
|
|
9
9
|
|
|
10
|
-
from quick_pp.modelling.train_pipeline import train_pipeline
|
|
11
|
-
from quick_pp.modelling.predict_pipeline import predict_pipeline
|
|
12
|
-
from quick_pp.modelling.utils import run_mlflow_server
|
|
13
10
|
|
|
14
11
|
try:
|
|
15
12
|
quick_ppVersion = metadata.version('quick_pp')
|
|
@@ -52,6 +49,9 @@ def app(debug):
|
|
|
52
49
|
@click.command()
|
|
53
50
|
@click.argument('env', default='local', type=click.Choice(['local', 'remote']))
|
|
54
51
|
def mlflow_server(env):
|
|
52
|
+
"""Run the MLflow server."""
|
|
53
|
+
from quick_pp.modelling.utils import run_mlflow_server
|
|
54
|
+
|
|
55
55
|
run_mlflow_server(env)
|
|
56
56
|
|
|
57
57
|
|
|
@@ -74,6 +74,7 @@ def model_deployment(debug):
|
|
|
74
74
|
@click.argument('env', default='local', type=click.Choice(['local', 'remote']))
|
|
75
75
|
def train(model_config, data_hash, env):
|
|
76
76
|
"""Train the model with the specified parameters."""
|
|
77
|
+
from quick_pp.modelling.train_pipeline import train_pipeline
|
|
77
78
|
|
|
78
79
|
# Copy config.py into the root directory if it doesn't exist
|
|
79
80
|
config_file = resources.files('quick_pp.modelling').joinpath('config.py')
|
|
@@ -102,6 +103,8 @@ def train(model_config, data_hash, env):
|
|
|
102
103
|
@click.argument('env', default='local', type=click.Choice(['local', 'remote']))
|
|
103
104
|
def predict(model_config, data_hash, output_file_name, env):
|
|
104
105
|
"""Run the prediction."""
|
|
106
|
+
from quick_pp.modelling.predict_pipeline import predict_pipeline
|
|
107
|
+
|
|
105
108
|
click.echo("Running prediction...")
|
|
106
109
|
predict_pipeline(model_config, data_hash, output_file_name, env)
|
|
107
110
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|