galvani
Read proprietary file formats from electrochemical test stations.
Usage
Bio-Logic .mpr files
Use the MPRfile class from BioLogic.py (exported in the main package)
from galvani import BioLogic
import pandas as pd
mpr_file = BioLogic.MPRfile('test.mpr')
df = pd.DataFrame(mpr_file.data)
Arbin .res files
Use the ./galvani/res2sqlite.py script to convert the .res file to a sqlite3 database with the same schema, which can then be interrogated with external tools or directly in Python.
For example, to extract the data into a pandas DataFrame (will need to be installed separately):
import sqlite3
import pandas as pd
from galvani.res2sqlite import convert_arbin_to_sqlite
convert_arbin_to_sqlite("input.res", "output.sqlite")
with sqlite3.connect("output.sqlite") as db:
df = pd.read_sql(sql="select * from Channel_Normal_Table", con=db)
This functionality requires MDBTools to be installed on the local system.
Installation
The latest galvani releases can be installed from PyPI via
pip install galvani
The latest development version can be installed with pip directly from GitHub (see note about git-lfs below):
GIT_LFS_SKIP_SMUDGE=1 pip install git+https://github.com/echemdata/galvani
Development installation and contributing
If you wish to contribute to galvani, please clone the repository and install the testing dependencies:
git clone git@github.com:echemdata/galvani
cd galvani
pip install -e .\[tests\]
Code can be contributed back via GitHub pull requests and new features or bugs can be discussed in the issue tracker.
Metadata
Release files for galvani 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| galvani-0.5.0.tar.gz | 37.4 kB | Without provenance | Details for galvani-0.5.0.tar.gz |
Release files / galvani-0.5.0.tar.gz
| Download URL | galvani-0.5.0.tar.gz |
|---|---|
| Size | 37.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da0e3b34b114bf615caf3061fc72ef0ab59d2e175bbfd580a22977c290928270
|
|
BLAKE2b-256 checksum How to use checksums |
af3a8ab1095fb888534540bca21e0c15065819331f3d42a156eac799aa6816ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for galvani 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.