Skip to main content

A Python package for efficient storage, manipulation, and analysis of mining block models using Parquet files.

Project description

parq-blockmodel logo parq-blockmodel

Run Tests PyPI Coverage Python Versions License Publish Docs Open Issues Open PRs

Overview

A Python package for efficient storage, manipulation, and analysis of mining block models using Parquet files. parq-blockmodel provides tools for reading, writing, indexing, and transforming large-scale block model datasets, leveraging the performance of Apache Arrow and Parquet for scalable geoscience data workflows.

Installation

Install the base package from PyPI:

pip install parq-blockmodel

Install the optional schema validation support when you want to validate block model attributes with Pandera schemas or load schema definitions from YAML:

pip install "parq-blockmodel[schema]"

Schema validation

ParquetBlockModel accepts an optional schema= argument on its main constructors. You can pass either a Pandera DataFrameSchema object or a path to a YAML schema file, then validate the resulting model in chunks:

from pathlib import Path

from parq_blockmodel import ParquetBlockModel

pbm = ParquetBlockModel.from_parquet(
    Path("path/to/blockmodel.parquet"),
    schema=Path("schemas/blockmodel.schema.yaml"),
)

pbm.validate()
pbm.validate(sample_chunks=1)  # quick spot-check for large models

See the User Guide for detailed documentation on calculated attributes, including custom lookups and functions.

Project details


Download files

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

Source Distribution

parq_blockmodel-0.5.5.tar.gz (166.5 kB view details)

Uploaded Source

Built Distribution

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

parq_blockmodel-0.5.5-py3-none-any.whl (98.6 kB view details)

Uploaded Python 3

File details

Details for the file parq_blockmodel-0.5.5.tar.gz.

File metadata

  • Download URL: parq_blockmodel-0.5.5.tar.gz
  • Upload date:
  • Size: 166.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for parq_blockmodel-0.5.5.tar.gz
Algorithm Hash digest
SHA256 73cdeb97ada4808cc82b8ed61fa0db25348a616cc4033f77c642bdd3f4bd8a70
MD5 b967d6c30819422a11bd8ee21385b9ed
BLAKE2b-256 a00d4b685db48cb9eca5d6441fa7b405c2dbdaaaf33e50493a74e5c41dcc3b08

See more details on using hashes here.

File details

Details for the file parq_blockmodel-0.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for parq_blockmodel-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 89348ff77c24b125ee31e0e9c7931bf72536ca3fc7fbafcb14bec7b3e7e3b19e
MD5 8a6d7dcff44bb403a0fbdb5ad6cc788b
BLAKE2b-256 0af39525563dd650f6d75b13838233020d313fcac44089d7f4eae4ceecf2dd9c

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