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.1.0.tar.gz (27.4 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.1.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nodus-0.1.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for nodus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 823091d6170e012f63f895be0d2a005eab76ab7f074afb95f8069aef3a73cd83
MD5 fd4199d13a66c0c787e1793ccf3cc252
BLAKE2b-256 7a768a1abc56537ae12393be53cee8857806b1294b57be7b62005e5018fe3cd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nodus-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c71b04b41029935cdb01c7dffb032b2c395c790911876a05e35971ca2330bb54
MD5 2e60609957ef4b7555043dbd810e23ce
BLAKE2b-256 1e8a39998933b83193d204f754b85673c38734412b6de851bea7339718e3ab11

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