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.

For version 3.5.2's cumulative CI² selection, index mapping and orbital coverage interfaces, see CSF processing primitives. These newly added interfaces require this source checkout until the next release.

Installation

The Python 3.15 / Polars 2.1 compatibility changes are unreleased; use this source checkout until the next package release.

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.2".

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.2",
]

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.2

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.2
File Size Uploaded Provenance Actions
graspkit_atomic-3.5.2.tar.gz 114.6 kB With provenance Details for graspkit_atomic-3.5.2.tar.gz

Built distribution (wheel)

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

Total release size: 237.0 kB

Release files / graspkit_atomic-3.5.2.tar.gz

Download URL graspkit_atomic-3.5.2.tar.gz
Size 114.6 kB
Tags Source
SHA-256 checksum
How to use checksums
75817da1148a241916aaed5e2482db45090930268c927bb8ceb2079844be7f5d
BLAKE2b-256 checksum
How to use checksums
edaaeb98c8a0d7354786f141ebfcc4efdfc5d8e6705173c430dd7f49638660cf
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 Oct 28, 2026.

Transparency log

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

Download URL graspkit_atomic-3.5.2-py3-none-any.whl
Size 122.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7455be4a3835778242ee84814c97db07aff1680e4f891e31b656e6cbddd76e9f
BLAKE2b-256 checksum
How to use checksums
76439221b5c66b109f5def5fdbbaa7767ce9065f9c6397a0388c20ce3055101e
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 Oct 28, 2026.

Transparency log

Security for graspkit-atomic 3.5.2

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.2.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 Oct 28, 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