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.0-cp312-abi3-manylinux_2_43_x86_64.whl (6.1 MB view details)

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

File details

Details for the file pyeonclient-0.3.0-cp312-abi3-manylinux_2_43_x86_64.whl.

File metadata

File hashes

Hashes for pyeonclient-0.3.0-cp312-abi3-manylinux_2_43_x86_64.whl
Algorithm Hash digest
SHA256 19ab65b3e1e0f1bbcb02cd27eafadedc8a188a585f0264423d82ae40f25a174b
MD5 dd320a8fdbf7a05e92c7dee680e2349d
BLAKE2b-256 c9bccd049b2ab8762513c8732fa68b6f6976ff4176c2b9cfd70743314c45e750

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