Skip to main content

Python library for communication to the GeMMA Fusion Server

Project description

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 only includes storage utilities for communicating with 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 --cov=src .

Guidelines are now checked using GitHub Workflows. 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

Project details


Download files

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

Source Distribution

gfslib-0.3.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

gfslib-0.3.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file gfslib-0.3.0.tar.gz.

File metadata

  • Download URL: gfslib-0.3.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for gfslib-0.3.0.tar.gz
Algorithm Hash digest
SHA256 04684ad494a29811050931206aabfea379c9584f6ca2aaf77a0d220a45a527c4
MD5 c3ce2241f85d50ff0025582c2693d90c
BLAKE2b-256 eaa4ad2952e32ed81862482626102f9de1ded4370716ab21dc28b7cebdb1b17c

See more details on using hashes here.

File details

Details for the file gfslib-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: gfslib-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for gfslib-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9519ef29c748ef4ab72f8a27209b4cdcf7d8dbfa8f581a3c1a83fcc2e3dc763
MD5 982c85b4e592897169cdb3f5d749c8aa
BLAKE2b-256 4a464f1a1e7b760ef8401ecf35f5a6d0a325351472aaa6d5ff24189dbe98ae20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page