Skip to main content

Python package to assist in providing quick-look preliminary petrophysical estimation.

Project description

quick_pp

A Python package for quick-look preliminary petrophysical estimations.

quick_pp demo

Installation

You can install quick_pp directly from PyPI:

pip install quick_pp

For development or to use the qpp_assistant, you'll need to clone the repository and install dependencies:

  1. Clone the repository:

    git clone https://github.com/imranfadhil/quick_pp.git
    cd quick_pp
    
  2. Create and activate a virtual environment (tested with Python 3.11):

    uv venv --python 3.11
    source .venv/bin/activate  # On Windows, use: .venv\Scripts\activate
    
  3. Install the required packages:

    uv pip install -r requirements.txt
    

Quick Start

Jupyter Notebook Examples

More structured analysis/ examples are done in https://github.com/imranfadhil/pp_portfolio

The included notebooks demonstrate the core functionalities:

  • 01_data_handler: Create a MOCK qppp project file.
  • 02_EDA: Perform a quick exploratory data analysis.
  • 03_*: Carry out petrophysical interpretation of the MOCK wells.

Note: For the API notebook, you need to run python main.py app before executing the cells.

qpp_assistant Setup

To use the qpp_assistant, follow these steps after the development installation:

  1. Specify the required credentials in a .env file (you can use .env copy as a template).
  2. Run Docker Compose: docker-compose up -d.
  3. Build your flow in Langflow at http://localhost:7860.
  4. Run the main application: python main.py app.
  5. Test your flow in the qpp Assistant at http://localhost:8888/qpp_assistant.

CLI

Train a Machine Learning Model

Requirements:

  • The input data must be a Parquet file located at /data/input/<data_hash>___.parquet.
  • The Parquet file must contain the input and target features as specified in MODELLING_CONFIG in config.py.

Command:

quick_pp train <model_config> <data_hash>

quick_pp train mock mock

Run the MLflow Server

Command:

quick_pp mlflow-server

You can access the MLflow UI at http://localhost:5015.

Run Predictions

Note: Trained models must be registered in MLflow before running predictions.

quick_pp predict <model_config> <data_hash>

Example:

    quick_pp predict mock mock

Deploy Trained Models as an API

quick_pp model-deployment

You can access the deployed model's Swagger UI at http://localhost:5555/docs.

Start the Main Application

quick_pp app
  • API Docs: http://localhost:8888/docs
  • qpp_assistant: http://localhost:8888/qpp_assistant (you can log in with any username and password).

To use the mcp tools, you would need to first add the following SSE URLS through the interface; http://localhost:8888/mcp - quick_pp tools.

http://localhost:5555/mcp - quick_pp ML model prediction tools (need to run quick_pp model-deployment first).

Documentation

Documentation is available at: https://quick-pp.readthedocs.io/en/latest/index.html

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quick_pp-0.2.74.tar.gz (145.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quick_pp-0.2.74-py3-none-any.whl (180.7 kB view details)

Uploaded Python 3

File details

Details for the file quick_pp-0.2.74.tar.gz.

File metadata

  • Download URL: quick_pp-0.2.74.tar.gz
  • Upload date:
  • Size: 145.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for quick_pp-0.2.74.tar.gz
Algorithm Hash digest
SHA256 6c0a06ca81b2c8b265cf63f577f4053b13d3c344c9d8803b7f5b5cefacc404e3
MD5 42d88f6e0c76ce17c78fbfaef3dfaea2
BLAKE2b-256 8981dbd04f9ff6e9a462867e9a771ff799e00da5c834622fa7f94d483df4c2b0

See more details on using hashes here.

File details

Details for the file quick_pp-0.2.74-py3-none-any.whl.

File metadata

  • Download URL: quick_pp-0.2.74-py3-none-any.whl
  • Upload date:
  • Size: 180.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for quick_pp-0.2.74-py3-none-any.whl
Algorithm Hash digest
SHA256 b5bf6a7a2d8d6db1f61fab9193e4af05553f74500040ae1c7f84f12a44d0fbf0
MD5 85b4517b1c95127dbbb1a7669a0b1356
BLAKE2b-256 0bd7d8571fbec8756392a08d05bd71ee32191ddab13ab5826f5c2908c4227373

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page