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:
Run the following commands in the virtual env to ensure that everything is according to the guidelines:
mypy . --strict
black .
pytest .
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gfslib-0.2.0.tar.gz.
File metadata
- Download URL: gfslib-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4a5bf73a70eea8078ad32ff6431d26e17ce12c26d8179d5f06706b13a7f847
|
|
| MD5 |
7c3a9fe2fab2d0fce7ed5a193c903d5c
|
|
| BLAKE2b-256 |
57b08a966290dc9539973ab492d4e7541fe925d63e1e8e6f75e33c49066d806f
|
File details
Details for the file gfslib-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gfslib-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0de82a48af98638120a11104336c70a3ebe1712d545474354c1bbce6f8017f9
|
|
| MD5 |
1a22270c76ac307168d1599894a9af1d
|
|
| BLAKE2b-256 |
fb03ef818e79289d494fd0c49b506ceb01eb0b40314cc1c7611a3da0d470553d
|