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.7.tar.gz
(102.7 kB
view details)
Built Distribution
multinode-0.0.7-py3-none-any.whl
(136.6 kB
view details)
File details
Details for the file multinode-0.0.7.tar.gz
.
File metadata
- Download URL: multinode-0.0.7.tar.gz
- Upload date:
- Size: 102.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 | 8abbfdbaf7a0db9f087376ce84d66d2a00b1693280c0dc3d282172d4053dbbde |
|
MD5 | 41dd93be1ab1f067bee1966b844c02a8 |
|
BLAKE2b-256 | 8bbc0f887b5061a00b7a4965aded0cd8419561db63dae61bc379fba66586c925 |
File details
Details for the file multinode-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: multinode-0.0.7-py3-none-any.whl
- Upload date:
- Size: 136.6 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 | d3f9192b45127551b8d0e278d7d065be6cb5d87269695b9deeda1b78693d2d9f |
|
MD5 | 09e1c0de9a86631c3928e17d62a6d5c8 |
|
BLAKE2b-256 | 98a302bb1f82b4c43b523081048c2d1c5727ebf654c935c32df0316545c733d7 |