Skip to main content

Client to connect to a cornflow server [forked from baobabsoluciones]

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


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_pchtsp-1.3.1.tar.gz (64.1 kB view details)

Uploaded Source

Built Distribution

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

cornflow_client_pchtsp-1.3.1-py3-none-any.whl (83.0 kB view details)

Uploaded Python 3

File details

Details for the file cornflow_client_pchtsp-1.3.1.tar.gz.

File metadata

File hashes

Hashes for cornflow_client_pchtsp-1.3.1.tar.gz
Algorithm Hash digest
SHA256 be3d765e20bbe2bb2fe7a5a9025c1f7817e61d850966f3c34a0cef2e2d6b353f
MD5 e4b8ef57364ba33d1002f0de3fe5be3b
BLAKE2b-256 f54b419dc0e6544202f9c4f51bb90e2d5f7b9014cc0652825bdefaef2d091e90

See more details on using hashes here.

File details

Details for the file cornflow_client_pchtsp-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cornflow_client_pchtsp-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b457587f2ffea245a1234ccc2cbf21275f5c0024750ea91d1dd99110aa5df1f5
MD5 efa1858978fe3731baf918374af822e2
BLAKE2b-256 d95cc9b51e2478fd2c866bc062f671d7f445888bc880b63f66c9a3822386b2ee

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