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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gslibutils-0.1.0.tar.gz.
File metadata
- Download URL: gslibutils-0.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
250a70981e93d51edb4164cfca1c5ee808fa3d9939de7e12d2bf9dc0b59fee3d
|
|
| MD5 |
5e2256585e5fbaa91d772274c29c3938
|
|
| BLAKE2b-256 |
4149bd00cdfeedffe6414ec9d7d939eb0602413f3391f1f6ed4e06c537254362
|
File details
Details for the file gslibutils-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gslibutils-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eadd336ef862b6fcd62e0150b9a91ad5ec58a1e8502348a451f6e8783e72cbc2
|
|
| MD5 |
68c0cb0d14467a501577dcc90ee8c545
|
|
| BLAKE2b-256 |
aaba87576e7dd43456f2e553f856ee4d18697ddc88786dc88c98c895dc989919
|