Python bindings for swm-core user REST API
Project description
Python bindings for swm-core REST API
Description
Sky Port is an universal bus between user software and compute resources. It can also be considered as a transportation layer between workload producers and compute resource providers. Sky Port makes it easy to connect user software to different cloud resources.
The current python package represents a wrapper around client REST API of the core component of Sky Port -- core daemon. The package provides classes and data structures that can be used in python programs in order to communicate with swm-core. Such communication is useful when Sky Port terminals are built (see JupyterLab terminal as an example).
Build
Requirements:
- Use swm-core dev container or install manually:
sudo apt-get install python3-all-dev
sudo apt install python3-pip
pip3 install pip-tools setuptools virtualenv
Note: python >= 3.10 is required.
- Install the project dependencies with virtualenv
make prepare-venv
Run code autoformatting and validation tools:
make format
make check
Run unit tests:
make test
Build pip package and upload to pypi.org:
. .venv/bin/activate
make clean
make package
make upload
Setup
The latest stable version of the package is uploaded to PyPi.
Installation from PyPi:
python3 -m pip install --user swmclient
Remove installed package:
python3 -m pip uninstall swmclient
Contributing
We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.
License
We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.
This software is licensed under the BSD-3-Clause license.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file swmclient-0.1.6.tar.gz
.
File metadata
- Download URL: swmclient-0.1.6.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 166813b2504c408dfeddf43c327418511ceff8103f1d33300a24e7b4dbe772c3 |
|
MD5 | 3e05c93a726dbaba8c5377a498aa9fa2 |
|
BLAKE2b-256 | c352ae046f0e1d559241a62b450d86904b383ca673a267b4b4e3d5e40c586f00 |
File details
Details for the file swmclient-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: swmclient-0.1.6-py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88b9e4b4ea3e5c1a7810f93e2e593fe5518589a6a4cc7c3e08373b388c306132 |
|
MD5 | 4ab8395dea18f5c15b1f71f9a372c433 |
|
BLAKE2b-256 | 643bbdcdb1e6f8f076ba78a7f5ef199e8b29fb5ac14a69a24293802bf305c37a |