Skip to main content

graspkit

English | 简体中文

graspkit is the stable foundation for reading, processing, and plotting GRASP atomic-structure calculation results.

Package structure

  • graspkit.data_IO: typed GRASP text/binary loaders and stable CSF writers.
  • graspkit.grasp_data_extractor: ASF, level, composition, transition, and mixing-coefficient post-processing.
  • graspkit.CSFs_processor: CSF parsing, descriptors, and deterministic selection helpers.
  • graspkit.utils: shared GRASP data models, environment detection, and quantum-number helpers.
  • graspkit_plot: plotting and publication-style helpers.

Version 3.5.3 adds cumulative coupling-channel selection and batch plotting for selected ASFs. See the release notes and the CSF processing primitives.

Installation

Use this source checkout for 3.5.3 until the package is published.

Install graspkit-atomic from PyPI with Python 3.15 or newer. The distribution name is graspkit-atomic; its Python import packages are graspkit and graspkit_plot.

With uv

Use uv to manage the environment and dependencies of your own analysis project. For a new project:

uv init --python 3.15 atomic-analysis
cd atomic-analysis
uv add graspkit-atomic
uv run python -c "import graspkit; print(graspkit.__version__)"

For an existing uv project using Python 3.15 or newer, run uv add graspkit-atomic in its directory. This records the dependency in pyproject.toml, updates uv.lock, and installs it in the project's .venv. Use uv run python analysis.py to run your own analysis script; manual environment activation is not required. To pin a particular release, use uv add "graspkit-atomic==3.5.3".

You can also add the dependency to an existing pyproject.toml manually:

[project]
name = "atomic-analysis"
version = "0.1.0"
requires-python = ">=3.15"
dependencies = [
    "graspkit-atomic==3.5.3",
]

Then run uv sync in that project's directory to resolve dependencies and synchronize its environment. Commit pyproject.toml and uv.lock alongside your analysis code to record the dependency choices.

With pip

To install into an existing Python environment:

python -m pip install graspkit-atomic

Both methods provide the same Python API, including plotting. If your project also uses rCSFs, add it separately with uv add rcsfs. See INSTALL.md for local-wheel installation details.

Imports

from graspkit.data_IO import EnergyFileLoader, MixCoefLoader
from graspkit.grasp_data_extractor import format_energy_configurations
from graspkit.CSFs_processor import select_csf_indices_by_ci_squared_cutoff
from graspkit_plot import configure_matplotlib_for_publication

Windows terminal encoding

On Windows terminals that use a legacy code page, Rich output from loaders such as MixCoefLoader may raise UnicodeEncodeError when printing scientific labels such as cm⁻¹. Run Python in UTF-8 mode:

python -X utf8 your_script.py

For a one-line loader check:

python -X utf8 -c "from graspkit.data_IO import MixCoefLoader; MixCoefLoader(r'path\to\file.m').load()"

This option changes terminal text encoding only; it does not change how GRASP files are parsed.

Release preparation

See the release guide for local wheel/source builds and artifact validation and the manual publishing workflow.

License

GNU GPL version 3 (GPL-3.0-only). See LICENSE.

Metadata

Release files for graspkit-atomic 3.5.3

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

Source distribution (sdist)

Source distribution for graspkit-atomic 3.5.3
File Size Uploaded Provenance Actions
graspkit_atomic-3.5.3.tar.gz 116.1 kB With provenance Details for graspkit_atomic-3.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for graspkit-atomic 3.5.3
File Interpreter ABI Platform Actions
graspkit_atomic-3.5.3-py3-none-any.whl Python 3 none any Details for graspkit_atomic-3.5.3-py3-none-any.whl

Total release size: 239.9 kB

Release files / graspkit_atomic-3.5.3.tar.gz

Download URL graspkit_atomic-3.5.3.tar.gz
Size 116.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cc5f5335f9840e9985a83cba6ce102d7055092f55e9ad091aad5fc0b792d9a67
BLAKE2b-256 checksum
How to use checksums
edbc727db84754b9b8d1372e859feae37ac77d866bb7f4f385f70dc64007f190
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 5, 2026.

Transparency log

Release files / graspkit_atomic-3.5.3-py3-none-any.whl

Download URL graspkit_atomic-3.5.3-py3-none-any.whl
Size 123.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
616b5b1f5174040e52901b67cd8635b6e3a2bac8f26a9b80ae8fc877cc2ab0ba
BLAKE2b-256 checksum
How to use checksums
15d71675a04dc73eb4d0ee3d275207ef3f789f71aab2958aa0f5d9caf6e097c2
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 5, 2026.

Transparency log

Security for graspkit-atomic 3.5.3

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 graspkit_atomic-3.5.3.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 5, 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