Skip to main content

galvani

[!NOTE]
This repository is an approximate mirror of https://codeberg.org/echemdata/galvani (originally developed at https://github.com/echemdata/galvani), though the syncing is not automatic. Versions deployed to PyPI package from this repository as the datalab-org-galvani-mirror may not match those of the galvani package itself. Documentation may still contain out of date references to the original repository. It is unlikely new features will be developed in this mirror, changes will only involve build system, deployment and testing improvements, so please direct your development attention to the codeberg repo linked above.

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 datalab-org-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/datalab-org/galvani-mirror

Development installation and contributing

[!WARNING]

This project uses Git Large File Storage (LFS) to store its test files, however the LFS quota provided by GitHub is frequently exceeded. This means that anyone cloning the repository with LFS installed will get failures unless they set the GIT_LFS_SKIP_SMUDGE=1 environment variable when cloning. The full test data from the last release can always be obtained by downloading the GitHub release archives (tar or zip), at https://github.com/datalab-org/galvani-mirror/releases/latest

If you wish to add test files, please ensure they are as small as possible, and take care that your tests work locally without the need for the LFS files. Ideally, you could commit them to your fork when making a PR, and then they can be converted to LFS files as part of the review.

If you wish to contribute to galvani, please clone the repository and install the testing dependencies:

git clone git@github.com:datalab-org/galvani-mirror
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. It may also be useful to check the original issue tracker for galvani.

Metadata

Release files for datalab-org-galvani 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datalab-org-galvani 0.5.4
File Size Uploaded
datalab_org_galvani-0.5.4.tar.gz 56.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datalab-org-galvani 0.5.4
File Interpreter ABI Platform
datalab_org_galvani-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 83.9 kB

Release files / datalab_org_galvani-0.5.4.tar.gz

Download URL datalab_org_galvani-0.5.4.tar.gz
Size 56.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f5c0f56d0023bd7c7250143c720ce5c1a4d2258b6c0de3051f886fb8fffc7e96
BLAKE2b-256 checksum
How to use checksums
8371687486e1bcf9fb7605a708acb0f21c9eb777fa0058abdba4f05aaec739d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.

Transparency log

Release files / datalab_org_galvani-0.5.4-py3-none-any.whl

Download URL datalab_org_galvani-0.5.4-py3-none-any.whl
Size 27.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec7cd39228bd34b224236944e15ddaa7bc3d3bd4a964629127feb252d4b7ebb3
BLAKE2b-256 checksum
How to use checksums
289ac5d3afd7ee6ba63049a3c495c36ddf480fc985b3edde7af949d395b2ce61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page