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.6.tar.gz
(102.7 kB
view details)
Built Distribution
multinode-0.0.6-py3-none-any.whl
(136.5 kB
view details)
File details
Details for the file multinode-0.0.6.tar.gz
.
File metadata
- Download URL: multinode-0.0.6.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 | 4b116384015bbb0f62593d1a9906521a6bf098d4ac0163fe421aa532ab4e1ae6 |
|
MD5 | 0f5d280f06df4d927d58acbbf0b73a49 |
|
BLAKE2b-256 | eb9b9084eb0097bd216768324397196c5cb355be89ef4468e05d5e48f5c00ad1 |
File details
Details for the file multinode-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: multinode-0.0.6-py3-none-any.whl
- Upload date:
- Size: 136.5 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 | ee14c21163d260860c91610141d5ac27d2be8ea2cf798818011acf79d554bdba |
|
MD5 | 40ff4e2c234e0722914e13bb20eaf63a |
|
BLAKE2b-256 | c3d4344ce2d9e076a36af1e0102409b5f3dbd931b3d8f0ca9a654e246b09284c |