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.0a1.tar.gz
(94.7 kB
view details)
Built Distribution
File details
Details for the file cornflow-client-2.0.0a1.tar.gz
.
File metadata
- Download URL: cornflow-client-2.0.0a1.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 | 8c5e86367bb5346b4939545c52dc62adee85fdfa571e18c0c53f3ef528e0c308 |
|
MD5 | 77c61b86fd73f7efbd2f00efb7d04019 |
|
BLAKE2b-256 | 0cf6e01af3b200c2998d15f7a5e2481ba438a9773b4542ec7922d844e9dde4ee |
File details
Details for the file cornflow_client-2.0.0a1-py3-none-any.whl
.
File metadata
- Download URL: cornflow_client-2.0.0a1-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 | 317e928f2179c464c6263b8641ff1b6a63218c37865c034b12aa2ef98d755971 |
|
MD5 | 48532ead179488fd97ed451494f32e3a |
|
BLAKE2b-256 | 3baa23b932874f2ce05306d2fab32edf67e0eeae50456c91ba49b4e350cd84e2 |