Skip to main content

Nanobind bindings to the eOn C++ client (Matter, Parameters, Potential, Jobs, NEB, RGPOT)

Project description

Install

pip install pyeonclient
pip install 'pyeonclient[ase]'  # optional

pyeonclient

Nanobind-only bindings for the eOn C++ client library (libeonclib).

No pybind11. This module supersedes the old unused with_pybind11 option.

ABI policy

Interpreter Extension build
CPython ≥ 3.12 (GIL) Stable ABI (abi3)Py_LIMITED_API=0x030C0000
CPython ≥ 3.13 free-threaded (Py_GIL_DISABLED) Free-threaded (NB_FREE_THREADED); stable ABI not available yet

Meson detects free-threaded vs GIL builds from sysconfig.Py_GIL_DISABLED and sets exactly one of the two modes (same rule as nanobind’s CMake STABLE_ABI + FREE_THREADED pair).

Package layout

client/python/
  meson.build              # -Dwith_pyeonclient=true
  pyeonclient/
    __init__.py            # re-exports
    bridge.py              # Structure <-> Matter (server)
  bind/
    module.cpp             # NB_MODULE(_core, ...)
    bind_*.cpp
    eigen_numpy.hpp

Artifact: pyeonclient/_core*.so (or _core*.abi3.so).

Build

# needs nanobind>=2.2 on the build Python
meson setup build -Dwith_pyeonclient=true
meson compile -C build
pytest tests/test_pyeonclient_matter.py -v

Design

Bottom-up surface: Matter, Parameters, Potential, enums/I/O — not a thin job wrapper. Jobs and communicators layer on Matter later. .con I/O uses ConFileIO / readcon-core (same path as eonclient).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyeonclient-0.3.1-cp312-abi3-manylinux_2_28_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

File details

Details for the file pyeonclient-0.3.1-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyeonclient-0.3.1-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5e6cdfa00699ac7ed138435c816560a99323257cda79a198fed04d63c084112d
MD5 e66430c623d0f9324b092264d8cd3bbf
BLAKE2b-256 370d4706898f5dfa7f5669676560cccfcb36062e1b73f0a76f8de230578d4ebe

See more details on using hashes here.

Supported by

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