Skip to main content

simple and useful status manager for bulk computations

Project description

status-manager python library

Upload Python Package

simple and useful status manager for bulk computations

Assume that you have multiple folders which each one have a complete and isolated computation task. When you need to run them in sequence, may be it waste your time to count the current stage of each one. With this library you can easily handle the progress of each computation inside their own folders.

Usage

For example assume there are 4 folders inside the working directory, each one has a computation of calculating solar energy of a planet. Now you are going to start computation for them which are not finished from previous attempts. I mean something like this:

for i in range(1, 5):
        task = f"task-{i}"
        os.system(f"{task}/run_calculations") # run calculations

By using status-manager, it will be very easy! See this example:

Example

from status_manager import CheckStatus, StatusType

s = CheckStatus() # init the status manager

for i in range(1, 5):
        task = f"task-{i}"
        status = s.check(task) # read status of this task
        if status != StatusType.finished:
            os.system(f"{task}/run_calculations") # run calculations
            status.write_status(task, StatusType.finished) # save as finished

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

status_manager-1.0.3.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

status_manager-1.0.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file status_manager-1.0.3.tar.gz.

File metadata

  • Download URL: status_manager-1.0.3.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for status_manager-1.0.3.tar.gz
Algorithm Hash digest
SHA256 aa57296e021b620be75310439b06e84ca02c1a717546a14b8c32217aa0c4d433
MD5 b8bb74ce72d537a362632a3381046ff8
BLAKE2b-256 9d8c955089a5729871313db9a8e4ea0f53300c9eac281d4099fa6932bfdd5ef8

See more details on using hashes here.

File details

Details for the file status_manager-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: status_manager-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for status_manager-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8a6e7eeaa6d1dc7253f7029992d73e81e28343c8f3ff8c29c99b7aa07efcf55a
MD5 86cc1c3a30ea1a1e5f9a5aaf01a27c53
BLAKE2b-256 1d80dc122e2e61efbf160aa9a6183afaa388d4d57e1811503e29deb9842a35ae

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