Nodus - A lightweight and reusable job manager.
Project description
Nodus: A lightweight and reusable job manager.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse id molestie elit, semper auctor ex. Phasellus vestibulum, elit vitae maximus mollis, odio nunc laoreet magna, ac venenatis neque odio ac sem. Pellentesque vel mauris laoreet, semper nunc at, tempor felis. Morbi at magna dui. Sed a venenatis mauris, at auctor velit. Pellentesque luctus, eros sed sagittis molestie, orci ex elementum nisl, at scelerisque lorem felis vel felis. Ut eget elit pellentesque, egestas quam sed, luctus diam. Cras ex risus, convallis id enim eget, malesuada consequat mi.
1. How to install
pip install nodus
2. How to use
# Import wsbmr
import nodus
import time
# Create Nodus Session
session = nodus.NodusSession()
db = session.add_nodus_db() # Add a default NodusDB instance
# Get the JobManager from the db instance
jm = db.job_manager
# Initialize the command
nodus_command = "bash -c 'for i in {1..10}; do echo Step $i; sleep 1; done'"
# Create a new job to run the command
job_id = jm.create_job(
name="example_job",
parent_caller="example_command_runner",
job_type="command",
command = nodus_command
)
# Let the JobManager monitor jobs (in practice, your UI would run alongside this)
while True:
time.sleep(1) # Keep the main thread alive
# Then after a while
# Close connection
session.close()
Using the UI:
python -m nodus
3. Pypip
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
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 nodus-0.0.3.tar.gz.
File metadata
- Download URL: nodus-0.0.3.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27f6af79ad1c4951afba1069af89af7dceeed5ea9fff72bb6d6ee21a06277985
|
|
| MD5 |
78b79a4458fa3bb7b1caba5a6d5fe6ef
|
|
| BLAKE2b-256 |
17a9ae47dbf8677ed41f04dfa121bc710896e8019828b2c9e2b6f163ab742ce2
|
File details
Details for the file nodus-0.0.3-py3-none-any.whl.
File metadata
- Download URL: nodus-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f49c17a888b7260f9bbde48ba18d3d8ac37c089f78b60b7ca14956615287fb0
|
|
| MD5 |
46508d1e85cd8b7bb9ac48dd5220da42
|
|
| BLAKE2b-256 |
8834c28cd94781a85f9777b6973ffae6a10418bbade1cebb073f8cabf9ef08cf
|