Skip to main content

GeMMA Fusion Suite Python Library (GFSLib)

GFSLib is a Python library that provides utilities for working with the GeMMA Fusion Suite Server. It is currently in alpha development and includes storage workflows and workspace/dataset discovery for the GF Server.

Getting Started

To install GFSLib, use pip:

pip install gfslib

Example Usage

Here is a simple example of how to use the storage utilities in GFSLib:

from gfslib.storage import StorageServices

storage = StorageServices("https://.../api/ws/<workspace-id>/services/storage")
storage.set_api_key("...")

storage.upload("path/to/remote.file", "/path/to/local.file")
storage.download("path/to/remote.file", "/path/to/downloaded.file")

Contributions

We really appreciate contributions from the community! We especially welcome the reports of issues and bugs.

However, one may note that since this library is currently being heavily developed, the API may drastically change and all projects depending on this library have to deal with the changes downstream. We will however try to keep these at minimum.

The main maintainer of this library is Mitko Nikov.

Developing the library

We are using poetry to manage, build and publish the python package. We recommend downloading poetry and running poetry install to install all of the dependencies instead of doing so manually.

To activate the virtual env created by poetry, run poetry env activate to get the command to activate the env. After activation, you can run anything from within.

Contributing to GitHub

There are three things that we are very strict about:

  • Type-checking - powered by mypy
  • Coding style - powered by Black
  • Unit Tests - powered by pytest

Run the following commands in the virtual env to ensure that everything is according to the guidelines:

mypy . --strict
black .
pytest tests -m "not integration" --cov=gfslib --cov-branch --cov-fail-under=100

Guidelines are now checked using GitHub Workflows. The offline unit suite must reach 100% statement and branch coverage of gfslib. Live integration tests run separately with pytest tests -m integration and require GFSLIB_STORAGE_URL and GFSLIB_API_KEY (also loaded from .env). They create and delete test files on the configured server; use a test workspace. When developing the library locally, you can install act to run the GitHub workflows on your machine through Docker. We also recommend installing the VSCode extension GitHub Local Actions to run the workflows from inside VSCode, making the process painless.

Example scenarios are also tested in GitHub Actions by running them from the CLI.

General Guidelines

Here are a few guidelines to following while contributing on the library:

  • We aim to keep this library with as little run-time-necessary dependencies as possible.
  • Unit tests for as many functions as possible. (we know that we can't cover everything)
  • Strict Static Type-checking using mypy
  • Strict formatting style guidelines using black
  • Nicely documented functions and classes

Metadata

Release files for gfslib 0.5.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 gfslib 0.5.0
File Size Uploaded Provenance Actions
gfslib-0.5.0.tar.gz 12.9 kB Without provenance Details for gfslib-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 26.4 kB

Release files / gfslib-0.5.0.tar.gz

Download URL gfslib-0.5.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
51c0790b225504a605d2dee93cd414e80c88a2e63588e942cdca9d5f7c8a2aa6
BLAKE2b-256 checksum
How to use checksums
ee326026e36f32952ec7565c8bae5856dff5090f71928cc5db10d17c030558c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Release files / gfslib-0.5.0-py3-none-any.whl

Download URL gfslib-0.5.0-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9bf405ea784329182fb570c62e1a5de0ff13861e0af7ba9130db394c8acc792c
BLAKE2b-256 checksum
How to use checksums
fde83ded7de97b3ef013ef8574768bdfd384ba64b0665d5cb553c146dc6b7d3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for gfslib 0.5.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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