Skip to main content

SSAPy-Data stores reusable data resources for SSAPy and SSAPy Toolkit. The repository is packaged as the llnl-ssapy-data Python distribution and exposes the ssapy_data import package. Data files live under src/ssapy_data/data so users can receive required data through normal pip installation without Git LFS, git submodules, or runtime GitHub downloads.

The initial package intentionally does not duplicate data already packaged by base SSAPy. New SSAPy Toolkit datasets should be added here when they are needed by toolkit functions and are not already available from the base llnl-ssapy wheel.

Installation

Install from a local clone in editable mode:

pip install -e .

Build the wheel and source distribution:

python -m build
ls -lh dist/

Using packaged data

Access packaged data with importlib.resources helpers exposed by ssapy_data:

from ssapy_data import data_path, read_text

gravity_header = read_text("egm84.egm")

with data_path("Earth_graphics/ne_50m_ocean.shp") as path:
    print(path)

data_path yields a real filesystem path for libraries that require paths. Use the path only inside the context manager because zipped wheels may extract resources to temporary locations.

Adding data

Add new reusable data below src/ssapy_data/data. Preserve source filenames when possible, and use subdirectories when a dataset has multiple sidecar files. Do not add files already packaged by base SSAPy unless a later migration explicitly moves that dependency here. After adding, replacing, or removing data, regenerate the manifest:

python scripts/update_manifest.py
python -m pytest
python -m build

The manifest records each packaged file path, byte count, and SHA-256 digest in src/ssapy_data/manifest.json. Pull requests that change data should also update the source/provenance notes in this README when the dataset source or license differs from the existing entries.

Size guidance

The initial wheel contains only the package helpers and a data-directory README. Before adding large datasets, estimate the built wheel size with:

python -m build --wheel
ls -lh dist/*.whl

If a future dataset pushes the wheel above PyPI limits, split the data into a separate companion package rather than using Git LFS in SSAPy Toolkit.

Publishing

The repository publishes llnl-ssapy-data to PyPI through GitHub Actions and PyPI trusted publishing. Configure PyPI before creating the first release:

  • Create a PyPI trusted publisher, or pending publisher, for project llnl-ssapy-data.

  • Set the owner to llnl and repository to SSAPy-Data.

  • Set the workflow filename to publish.yml.

  • Set the GitHub environment to pypi.

After PyPI trust is configured, publish by pushing a git tag that matches the version in pyproject.toml, for example v0.1.1. The Publish to PyPI workflow builds a clean wheel and source distribution, runs tests, checks the manifest, and uploads through OpenID Connect (OIDC). No PyPI API token is required.

Data provenance

Each data pull request should document the source URL, license, retrieval date, and any preprocessing steps for new packaged datasets. Candidate sources include:

Code of Conduct

Please note that SSAPy-Data has a Code of Conduct. By participating in the SSAPy-Data community, you agree to abide by its rules.

License

SSAPy-Data is distributed under the terms of the MIT license. All new contributions must be made under the MIT license.

See the license and NOTICE for details.

SPDX-License-Identifier: MIT

LLNL-CODE-862420

Download files

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

Source Distribution

llnl_ssapy_data-0.1.2.tar.gz (7.2 MB view details)

Uploaded Source

Built Distribution

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

llnl_ssapy_data-0.1.2-py3-none-any.whl (7.2 MB view details)

Uploaded Python 3

File details

Details for the file llnl_ssapy_data-0.1.2.tar.gz.

File metadata

  • Download URL: llnl_ssapy_data-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for llnl_ssapy_data-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9eaee8773f5bef33c1f3d1f9595d1fb44bf1b3b7759d628fd5792a230ab2677d
MD5 a27d48e92ccf9065370f7b86eeafc45d
BLAKE2b-256 09a6d0ef604159d6cf79f2b5f7f0ab544890a3cfcec5120ff0d5f268a5c84ccd

See more details on using hashes here.

Provenance

The following attestation bundles were made for llnl_ssapy_data-0.1.2.tar.gz:

Publisher: publish.yml on llnl/SSAPy-Data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llnl_ssapy_data-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llnl_ssapy_data-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c7064c7ba539588d5e6d7a72f535588785585bb683ab5c9cedec948cc3890d0
MD5 ab9df98490d822e5285c643d2633d793
BLAKE2b-256 f4066f68e724ca97246adfc5ea4cdbe01b9cffa9657439b550f94f4401729469

See more details on using hashes here.

Provenance

The following attestation bundles were made for llnl_ssapy_data-0.1.2-py3-none-any.whl:

Publisher: publish.yml on llnl/SSAPy-Data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.5

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

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