Skip to main content

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: csemx 0.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.pyread() / write() and the CsemxBundle / Table types
  • src/csemx/validation.pyvalidate() and the bundle/manifest checks
  • src/csemx/cli.py — the csemx command-line entry point
  • src/csemx/schemas/ — bundled manifest schema and validator metadata
  • tests/ — 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

csemx-0.2.0.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

csemx-0.2.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file csemx-0.2.0.tar.gz.

File metadata

  • Download URL: csemx-0.2.0.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for csemx-0.2.0.tar.gz
Algorithm Hash digest
SHA256 125c2c0c81ee7913e98a0bd8e510e462ce90b981b0b77e5c417584669178a617
MD5 db3508adf9f443a36a0f8208516c6823
BLAKE2b-256 64f03577190fe4a89a2864e3a75ea532ae14d0f47c78ade0957dd06602022171

See more details on using hashes here.

Provenance

The following attestation bundles were made for csemx-0.2.0.tar.gz:

Publisher: publish.yml on Deep-Blue-Geophysics/csemx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file csemx-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: csemx-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for csemx-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a198ef77a8c95e0512c26596a92790ce25834861d95f66d140d3cab95cb338b6
MD5 58ba36b38b075fde7900318bf855218c
BLAKE2b-256 59b20d78d2795d2173b62e92252e471a5da978c57d64167ee28ad0827950bff1

See more details on using hashes here.

Provenance

The following attestation bundles were made for csemx-0.2.0-py3-none-any.whl:

Publisher: publish.yml on Deep-Blue-Geophysics/csemx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page