simple and useful status manager for bulk computations
Project description
status-manager python library
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa57296e021b620be75310439b06e84ca02c1a717546a14b8c32217aa0c4d433
|
|
| MD5 |
b8bb74ce72d537a362632a3381046ff8
|
|
| BLAKE2b-256 |
9d8c955089a5729871313db9a8e4ea0f53300c9eac281d4099fa6932bfdd5ef8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a6e7eeaa6d1dc7253f7029992d73e81e28343c8f3ff8c29c99b7aa07efcf55a
|
|
| MD5 |
86cc1c3a30ea1a1e5f9a5aaf01a27c53
|
|
| BLAKE2b-256 |
1d80dc122e2e61efbf160aa9a6183afaa388d4d57e1811503e29deb9842a35ae
|