Skip to main content

Contains utilities to load/save GSLIB files, such as

Project description

gslibutils

Python utilities for GSLIB parameter, input and output files

GSLIB executables use parameter, input and output files in a specific format. gslibutils comes with the modules for importing/exporting those files and with CLI commands for pipeline executions.

Install

python -m pip install gslibutils

Usage as Python package

For the use of gslibutils as a Python package, a simple example is:

from gslibutils.parser import load_input_df

title, df = load_input_df("data/simple.gslib")

print(df["var1"])

0      1.0
1     10.0
2    100.0
Name: var1, dtype: float64

Usage as CLI

gslibutils can run as CLI to facilitate pipelines. To covert a gslib file into a CSV:

gslib2csv data/simple.gslib
gslib2csv data/simple.gslib --delimiter " "
gslib2csv data/simple.gslib --delimiter "," > my.csv
gslib2csv data/simple.gslib --delimiter "," --output my.csv

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

gslibutils-0.1.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

gslibutils-0.1.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

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