Client to connect to a cornflow server
Project description
The aim of this repository is to have a client to use to connect to a deployed cornflow webserver
Requirements
python >= 3.8
Install cornflow-client
To install the package do:
python3 -m pip install cornflow-client
Use cornflow-client
To use, first you have to import the package:
from cornflow_client import CornFlow
Then you have to start up the client and login or sing up:
client = CornFlow(url="URL_TO_THE_WEB_SERVER") client.sign_up(username, email, password) client.login(username, password)
And then finally you can use the cornflow webserver and start solving problems:
instance_id = client.create_instance(data) execution_id = client.create_execution(instance_id, execution_config) status = client.get_status(execution_id) results = client.get_results(execution_id)
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
cornflow-client-2.0.0a5.tar.gz
(96.4 kB
view details)
Built Distribution
File details
Details for the file cornflow-client-2.0.0a5.tar.gz
.
File metadata
- Download URL: cornflow-client-2.0.0a5.tar.gz
- Upload date:
- Size: 96.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d12552add32152e7b2aabc556002a8bdc33fb28585283a5b35dcb5f34e61642f |
|
MD5 | 7daca4ae75bb9f777fbf5c03bf198bc3 |
|
BLAKE2b-256 | 23845ddc202056ad8ec2222d0db0008994f23615a9e9df637224744460fe5357 |
File details
Details for the file cornflow_client-2.0.0a5-py3-none-any.whl
.
File metadata
- Download URL: cornflow_client-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 128.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba9fbcb82c1488c9e77ca5cc7b9978da9226968b8054d7e86e8a57d3f1d6071e |
|
MD5 | d7563ce0b9a5b7e236ca742fb7c560d3 |
|
BLAKE2b-256 | 816219f7b92e94d20cb6dbc57f4a4a60c11007a49d5361433070496120f8b92a |