Skip to main content

EasySpyn (EasySpyn): EasySpin's EPR simulators in Python

A Python port of EasySpin, the MATLAB toolbox for EPR spectral simulation by Stefan Stoll and co-workers (MIT licence), keeping EasySpin's interface: spin systems as dictionaries with EasySpin's field names, fields in mT, couplings in MHz, 1-based spin numbers.

pip install easyspyn

Numba is installed with it and compiles the line-summation and projection kernels; set EASYSPYN_NUMBA=0 to use the (5 to 12 times slower) NumPy versions instead.

Nothing to install? Run EasySpyn in the browser (https://ajerschow.github.io/spynach/try.html), in Colab (https://colab.research.google.com/github/ajerschow/spynach/blob/main/docs/colab/easyspyn-quick-start.ipynb) or on Binder (https://mybinder.org/v2/gh/ajerschow/spynach/main?urlpath=lab/tree/docs/notebooks/).

import easyspyn as es

nitroxide = {"g": [2.0088, 2.0061, 2.0027], "Nucs": "14N", "A": [16, 16, 86], "lwpp": 0.3}
powder = es.pepper(nitroxide, {"mwFreq": 9.5, "Range": [330, 350], "nPoints": 1024})
print(powder.x.shape, powder.spec.shape)

What is ported: pepper and garlic (cw EPR of powders, crystals and solutions), esfit (fitting), salt and endorfrq (ENDOR), curry (magnetometry), chili (slow motion), saffron (pulse EPR: ESEEM, HYSCORE, Mims ENDOR), and the foundation underneath (sop, ham, levels, resfields, line shapes, grids). Results are compared with EasySpin 6.0.15's own output on about 280 reference cases. Not ported: saffron's thyme engine and spidyan, the GUIs, and some options; the guide lists them.

EasySpyn is part of the Spynach project, which also ports the Spinach spin dynamics kernel. It is an early release (0.3.0); corrections and bug reports are welcome on GitHub.

Attribution: EasySpyn is a translation of EasySpin and keeps its notice; see LICENSE. Each function's docstring names the EasySpin contributors to the original file (help(easyspyn.pepper)); the full table is at https://github.com/ajerschow/spynach/blob/main/docs/easyspin-credits.md.

Metadata

Release files for easyspyn 0.7.0

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

Source distribution (sdist)

Source distribution for easyspyn 0.7.0
File Size Uploaded Provenance Actions
easyspyn-0.7.0.tar.gz 167.7 kB With provenance Details for easyspyn-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for easyspyn 0.7.0
File Interpreter ABI Platform Actions
easyspyn-0.7.0-py3-none-any.whl Python 3 none any Details for easyspyn-0.7.0-py3-none-any.whl

Total release size: 345.2 kB

Release files / easyspyn-0.7.0.tar.gz

Download URL easyspyn-0.7.0.tar.gz
Size 167.7 kB
Tags Source
SHA-256 checksum
How to use checksums
03b14d4870e50fe1d486b8d7240e8333d8d07a65cb6aea74c82ed5ce3cc0366d
BLAKE2b-256 checksum
How to use checksums
8b93de0cae156af23222d8bb41ae06c0310798f0e5a3c32bde035db338cdb375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / easyspyn-0.7.0-py3-none-any.whl

Download URL easyspyn-0.7.0-py3-none-any.whl
Size 177.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca6fc34f6876b8656c2eb279358b25ec44ebc39a53f511dcebe9ada3ca79d675
BLAKE2b-256 checksum
How to use checksums
6d3c7f50a9223f9b71dff53d0e3edfdb30c1d90d3044c7b4ec29f9148ee8ae74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for easyspyn 0.7.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for easyspyn-0.7.0.tar.gz

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 Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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