csemx — Python client
Reference reader, writer, and validator for csemx bundles — an open, vendor-neutral exchange format for modeling-ready frequency-domain controlled-source electromagnetic (CSEM) data (specification).
The core (read/write and the dependency-light checks) needs no
third-party packages; the optional full extra adds the libraries required
for complete conformance validation.
Beta. The package version tracks the format version it implements:
csemx0.1.x reads and validates format 0.1 bundles exactly. During the 0.x beta, format minor versions may include breaking changes and the validator accepts only its own format version (spec §12).
Contents
src/csemx/io.py—read()/write()and theCsemxBundle/Tabletypessrc/csemx/validation.py—validate()and the bundle/manifest checkssrc/csemx/cli.py— thecsemxcommand-line entry pointsrc/csemx/schemas/— bundled manifest schema and validator metadatatests/— validator regression tests
Install
python3 -m pip install csemx # core: read/write + light checks
python3 -m pip install "csemx[full]" # + PyYAML, jsonschema, pyproj, pyarrow
From a repository checkout, editable:
python3 -m pip install -e "./python"
python3 -m pip install -e "./python[full]"
The full extra enables manifest JSON-Schema validation, EPSG/CRS checks, and
Parquet tables. Requires Python ≥ 3.9.
Command line
csemx validate examples/example.csemx # dependency-light checks
csemx validate --full examples/example.csemx.zip # full conformance
csemx inspect examples/example.csemx # summarize a bundle
Library
import csemx
bundle = csemx.read("examples/example.csemx") # -> CsemxBundle
errors, warnings = csemx.validate("examples/example.csemx", full=True)
csemx.write(bundle, "out.csemx.zip") # directory or .zip
Public API: read, write, validate, and the CsemxBundle, Table, and
ValidationError types.
Tests
python3 -m unittest python.tests.test_validate # from the repository root
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 csemx-0.1.0.tar.gz.
File metadata
- Download URL: csemx-0.1.0.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f88539050dade6398835873c00b123c99753619e032302f5b086381acec3ede
|
|
| MD5 |
1eafd3c50e6f579006835aae7d3ca4b2
|
|
| BLAKE2b-256 |
e6125bab5f267de6b0361c56b2894006258319909927afc692936640f2283160
|
Provenance
The following attestation bundles were made for csemx-0.1.0.tar.gz:
Publisher:
publish.yml on Deep-Blue-Geophysics/csemx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
csemx-0.1.0.tar.gz -
Subject digest:
4f88539050dade6398835873c00b123c99753619e032302f5b086381acec3ede - Sigstore transparency entry: 2454873029
- Sigstore integration time:
-
Permalink:
Deep-Blue-Geophysics/csemx@fb1c4aaaddd0d30ccfd59f3fb7c805601addf013 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Deep-Blue-Geophysics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fb1c4aaaddd0d30ccfd59f3fb7c805601addf013 -
Trigger Event:
push
-
Statement type:
File details
Details for the file csemx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: csemx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c38f90c98344a9f6787c654c09c6bfa499ff7856f9a7ad46437f071890659a14
|
|
| MD5 |
2dadce1d635e6d873dc3ae7c7ae991a8
|
|
| BLAKE2b-256 |
d9b3cc953efc17e2b2dcac73c5bdf1d2d3f261b0936f01f472722cfe316ff724
|
Provenance
The following attestation bundles were made for csemx-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Deep-Blue-Geophysics/csemx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
csemx-0.1.0-py3-none-any.whl -
Subject digest:
c38f90c98344a9f6787c654c09c6bfa499ff7856f9a7ad46437f071890659a14 - Sigstore transparency entry: 2454873071
- Sigstore integration time:
-
Permalink:
Deep-Blue-Geophysics/csemx@fb1c4aaaddd0d30ccfd59f3fb7c805601addf013 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Deep-Blue-Geophysics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fb1c4aaaddd0d30ccfd59f3fb7c805601addf013 -
Trigger Event:
push
-
Statement type: