tools to interact with osparc API
Project description
osparcAPIcontrol
Name
osparcAPIcontrol
Description
providing a variety of tools to interact with osparc API faster.
Compiles the different functionalities of the osparc package into composites to simplify and speed up its usage.
Badges
Installation
pip install osparcAPIcontrol
Usage
import pprint
from osparcAPIcontrol.controller import OsparcAPIcontroller
# to instantiate a controller object, pass host, your username and password.
# hosts:
# "https://api.osparc.io" for osparc.io
# "https://api.osparc.speag.com" for s4l.speag.com
#
#username and password can be acquired by creating an API Token on the respective website.
username = 'some_string'
password = 'some_other_string'
control = OsparcAPIcontroller(host="https://api.osparc.io",
username=username,
password=password)
# prints a list of all available solvers and their properties
control.print_solvers()
# choose a set of solvers to use in your workflow which are saved in a dictionary
control.initialize_solvers(solver_list=['isolve-mpi', 's4l Python Runner'])
print('\n')
pprint.pprint(control.solvers_in_use)
print('\n')
print(control.solvers_in_use['isolve-mpi'])
Support
Roadmap
- More functions to interact with the API will be added
- Existing functions will be further unified/combined
- Functionalities to easily store and access the metadata files containing important file IDs
Authors and acknowledgment
pcrespov, main author of the osparc package
License
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 osparcAPIcontrol-0.0.6.tar.gz.
File metadata
- Download URL: osparcAPIcontrol-0.0.6.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e146b1f223cbfdfb37a79cb3d8d43b8c68ca7d43f9eaf846eec5ea5cc3c09021
|
|
| MD5 |
ee2aab737694c594d1b7f08b066da951
|
|
| BLAKE2b-256 |
eb12f49211fb5869652a8de0a8abe3a6a65a5b5f6cdfb772e4e2e0dab0776916
|
File details
Details for the file osparcAPIcontrol-0.0.6-py3-none-any.whl.
File metadata
- Download URL: osparcAPIcontrol-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52d6946d2ef4ec8e34f3385923e3a9b2b32b5b5e9463a3957099330d8942629e
|
|
| MD5 |
623e9625e24cc228780d053f53111f49
|
|
| BLAKE2b-256 |
efac8673571aedfe289414f18f3f043daaa9964fd452257e314d329e22aefcca
|