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.0a2.tar.gz
(94.7 kB
view details)
Built Distribution
File details
Details for the file cornflow-client-2.0.0a2.tar.gz
.
File metadata
- Download URL: cornflow-client-2.0.0a2.tar.gz
- Upload date:
- Size: 94.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d487c2af5effb2e9b5d1376736d9f2e73c4ebdb447d98e064aa2e5a262a7d5fe |
|
MD5 | bf4f207b94f2619a61313534067eff07 |
|
BLAKE2b-256 | 88487f0b7abd11bfdd58026ab9a250deebea9e40e9c0ef288f5ed03e7aa63f89 |
File details
Details for the file cornflow_client-2.0.0a2-py3-none-any.whl
.
File metadata
- Download URL: cornflow_client-2.0.0a2-py3-none-any.whl
- Upload date:
- Size: 126.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 | 0c7c6ace5790de05c155cd4ab68ecbb7ebc36f94633ef1b2181543d0fce0165c |
|
MD5 | 3fe9dd1f212caec19961668738af70e2 |
|
BLAKE2b-256 | bc6702f21bbab1e4e43967c8424f2b49a10f423a14eb21f7dfa6d42b1af2d081 |