Skip to main content

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

Project description

quick_pp

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

Quick Start (Jupyter Notebook Examples)

  1. Create virtual environment (tested working with Python3.11)

     python -m venv venv
    
  2. Activate virtual environment

     > venv\Scripts\activate (Windows)
    
     > source venv/bin/activate (Linux)
    
  3. Install requirements

     pip install -r requirements.txt
    
  4. Launch the notebook and run the cells

    • 01_data_handler: create the MOCK qppp project file.

    • 02_EDA: quick look on the data

    • 03_*: quick petropohysical interpretation of the MOCK wells.

    • For API notebook, need to run the following before running the cells

        python main.py app
      

Install

To install, use the following command:

pip install quick_pp

To use qpp_assistant, you would need to;

  1. Run git clone https://github.com/imranfadhil/quick_pp.git
  2. Run pip install -r requirements.txt
  3. Specify the required credentials in .env (based on .env copy file)
  4. Run docker-compose up -d
  5. Go to Langflow at http://localhost:7860 and build your flow.
  6. Run python main.py app and go to the qpp Assistant at http://localhost:8888/qpp_assistant to test your flow.

CLI

To train an ML model, these are the requirements;

  1. The input file in parquet format need to be available; /data/input/<data_hash>___.parquet

  2. The parquet file need to have the input and target features as specified in MODELLING_CONFIG in config.py.

quick_pp train <model_config> <data_hash>

quick_pp train mock mock

To run the MLflow server

quick_pp mlflow-server

You can access the mlflow server at http://localhost:5015

To run prediction, the trained models need to be registered in MLflow first.

quick_pp predict <model_config> <data_hash>

quick_pp predict mock mock

To deploy the trained ML models

quick_pp model-deployment

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

To start the App

quick_pp app

You can then access the Swagger UI at http://localhost:8888/docs and qpp_assistant at http://localhost:8888/qpp_assistant. You can enter any user name and password to login the qpp_assistant.

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.51.tar.gz (128.7 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.51-py3-none-any.whl (161.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quick_pp-0.2.51.tar.gz
Algorithm Hash digest
SHA256 45c5778eb9d1dc04b217714bdf15a7eea698b239162a256de710e7c7a5822c5c
MD5 cfc85977e762327fe870d8936868e182
BLAKE2b-256 d106e133e0cb69b788b6824b97df972e7cc09f7b0df6f7847b71844959fed3f6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for quick_pp-0.2.51-py3-none-any.whl
Algorithm Hash digest
SHA256 8bc2d4142b8967ccaf2e12360ef34c492e9489a715c1b210f4cc69a9ddc79898
MD5 db77a5ad6df0c2685a6fea197efc44be
BLAKE2b-256 b8a605c39ba425160967ec01422dfa494820a27b0b9071847c26a9ee4f9d5036

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