Skip to main content

Nodus - A lightweight and reusable job manager.

Project description

drawing

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

UI

3. Pypip

https://pypi.org/project/nodus/0.0.1/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nodus-0.0.4.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nodus-0.0.4-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file nodus-0.0.4.tar.gz.

File metadata

  • Download URL: nodus-0.0.4.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

Hashes for nodus-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e1e96064915a3fc44cf01fa4226397b1b94ed13c6e3950e83cd4ab495085ffd9
MD5 8a5cc9fc2258f8812495cb65f58517b2
BLAKE2b-256 9c46b23b90e38ec843409bc454b56873d5265ea814b6f0da11e0f5846d968716

See more details on using hashes here.

File details

Details for the file nodus-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: nodus-0.0.4-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

Hashes for nodus-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9e512d448240616260e0d098a664e70e6468cfe190f4a8167f26b9218d4f1da4
MD5 d6b1f203b592a94cf5787946deacaa3d
BLAKE2b-256 ec74f8702e2eb2c638407bd83ea5316a408d3821b82f30a0d6d2ed0fca42a0ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page