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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nodus-0.0.7.tar.gz
  • Upload date:
  • Size: 17.1 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.7.tar.gz
Algorithm Hash digest
SHA256 6565b72b6ff910c1ea6324fa5fba4545af7287f7ad1c92a8af6932ff4156ed79
MD5 57865bbe6b8b8b136d8a7c9dd596eca2
BLAKE2b-256 b605b9bd76bd796c31eb94c8bf4603cac3f769ff4b393e881ddebdc8c88c6199

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nodus-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 17.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9191b736bc7c883b92958d1b0eec6d11b6270dc8f1b8b6c12655c006a074926b
MD5 0301a363c3c19fe0ab06c3e93382b65a
BLAKE2b-256 b61d62364ac8c1f23efd58a339be02a438eb8d2cbebc97c859317d390a810ce1

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