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 installation guide and user guide for more detail.

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.2.tar.gz (161.2 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.2-py3-none-any.whl (96.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parq_blockmodel-0.5.2.tar.gz
  • Upload date:
  • Size: 161.2 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.2.tar.gz
Algorithm Hash digest
SHA256 0d247484257a7c4c1eac244a219d65f0986dabcc92e96150e1b78657972e5921
MD5 b7d2e4044cd033eb225c74301bed4fa3
BLAKE2b-256 c86cda3d44394474428491f4672223ff5f5fe69971640f5e4a1301665de00f43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for parq_blockmodel-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 45e489a41b622ef6094e70df7a0871a6ba456c128f8d2acd75032267b83d5e01
MD5 dddd64c33ad5960165436d758359d5ff
BLAKE2b-256 bc7e240fb87423d8489729c798c6361ba67dcb76aa256c7c922a2e4c8ddb89a3

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