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
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
multinode-0.0.4.tar.gz
(15.7 kB
view details)
Built Distribution
multinode-0.0.4-py3-none-any.whl
(20.7 kB
view details)
File details
Details for the file multinode-0.0.4.tar.gz
.
File metadata
- Download URL: multinode-0.0.4.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-87-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c991c98d53b8afe6aff3bf5604c472931140e1e62edd08aabe0637aa1a23c112 |
|
MD5 | 4134f40753f4124b6d09bc438e5c49ce |
|
BLAKE2b-256 | d14d60fd8a1522dc29424632ae836ffd490a54f540923390f70f630205f540dc |
File details
Details for the file multinode-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: multinode-0.0.4-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-87-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452815aeec35fb0014833c69fb9e2f6407d1511a3c48e9a124eef71f50111018 |
|
MD5 | 25b38b93986466407bbedc5d21cb0afc |
|
BLAKE2b-256 | fc0c41148913e23c84ee532d2b0deed5e03c54e8078a959246b22431f438ab7e |