Multinode's Python client
Project description
Multinode's Python client
Generating missing client code
For the code to work you need to generate control plane client. Ensure its up-to-date
schema is in ../api-schemas/control-plane.json and run generate client script:
bash scripts/generate_client.sh
Running CLI
You can run any of the CLI commands using the poetry run multinode prefix. For example:
poetry run multinode --help
Deploying your first project
To deploy your first project in the development mode, first run:
poetry run multinode login
You will be asked for an API key.
Once successfully logged in, create a test.py file with the following content:
from multinode import Multinode
mn = Multinode()
@mn.job()
def a():
print("Hello, Multinode A!")
@mn.job()
def b():
print("Hello, Multinode B!")
and run
poetry run multinode deploy test.py --project-name my-first-project
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file test_run_multinode-0.0.15-py3-none-any.whl.
File metadata
- Download URL: test_run_multinode-0.0.15-py3-none-any.whl
- Upload date:
- Size: 139.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Linux/6.2.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d62a11c3f6e5f804f3a3facd933fdaf73b791522b67c2c3311ea22efdc3cb1bd
|
|
| MD5 |
9cdfa9e80d955567da4c0e5da78dec71
|
|
| BLAKE2b-256 |
98673706bf8531c263df16ce50c10b0c9b5a601d6257da6de23029de2f9b724f
|