Skip to main content

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

PyPI

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

msteiner@itis.swiss

Roadmap

  1. More functions to interact with the API will be added
  2. Existing functions will be further unified/combined
  3. Functionalities to easily store and access the metadata files containing important file IDs

Authors and acknowledgment

pcrespov, main author of the osparc package

License

MIT

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

osparcAPIcontrol-0.0.6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

osparcAPIcontrol-0.0.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for osparcAPIcontrol-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e146b1f223cbfdfb37a79cb3d8d43b8c68ca7d43f9eaf846eec5ea5cc3c09021
MD5 ee2aab737694c594d1b7f08b066da951
BLAKE2b-256 eb12f49211fb5869652a8de0a8abe3a6a65a5b5f6cdfb772e4e2e0dab0776916

See more details on using hashes here.

File details

Details for the file osparcAPIcontrol-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for osparcAPIcontrol-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 52d6946d2ef4ec8e34f3385923e3a9b2b32b5b5e9463a3957099330d8942629e
MD5 623e9625e24cc228780d053f53111f49
BLAKE2b-256 efac8673571aedfe289414f18f3f043daaa9964fd452257e314d329e22aefcca

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