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.
Metadata
Release files for swmclient 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swmclient-0.1.8.tar.gz | 26.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swmclient-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.6 kB
Release files / swmclient-0.1.8.tar.gz
| Download URL | swmclient-0.1.8.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f55c4974d24102ab6947c55155d5c216eb6e408e63ebbacbf5d59b96824d9657
|
|
BLAKE2b-256 checksum How to use checksums |
ad55c77983b9a8f2c457643db8b831eaa1e69d7ab71a5868f2dff788918f902a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.17
|
Release files / swmclient-0.1.8-py3-none-any.whl
| Download URL | swmclient-0.1.8-py3-none-any.whl |
|---|---|
| Size | 41.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
11078aa081bc0200e949722ed5228217f2b9c05584544e991edb01188db4ab57
|
|
BLAKE2b-256 checksum How to use checksums |
b482a0e041fc0ccf57cef743560a63805610e648969b7d3d2c7b9bd2a2f29331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.17
|