Thoughtful is a python package by Thoughtful for helping manage automations with helpful packages like supervisor
Project description
thoughtful is a collection of open-source libraries and tools for Robot Process Automation (RPA) development. The goal of this project is to provide a set of for supervising bot execution, and enabling these bots to do more.
This project is:
- Open-source: GitHub
- Owned by thoughtful
- Licensed under the Apache License 2.0
Links:
thoughtful is available on PyPI and can be installed using pip:
pip install thoughtful
thoughtful officially supports Python 3.7+.
Libraries
This is a list of the available libraries in this project. API Reference and User Guide available on docs.
Supervisor
Supervisor is a Workflow Engine for Digital Workers that constructs and broadcasts a detailed and structured telemetric log, called the Run Report.
from thoughtful.supervisor import step, step_scope, supervise, set_step_status
# using the step decorator
@step("2")
def step_2(name: str) -> bool:
print(f'Hello {name}')
return True # some condition
def main() -> None:
# using the step_scope context manager
with step_scope('1') as step_context:
try:
print("Getting credentials")
# ...
except Exception as e:
# set step status using method
step_context.set_status("warning")
if not step_2():
# set step status using function
set_step_status("2", "fail")
if __name__ == '__main__':
with supervise():
main()
Contributing
Contributions to thoughtful are welcome!
To get started, see the contributing guide.
Made with ❤️ by
This project is open-source and licensed under the terms of the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
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
Hashes for thoughtful-1.18.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a74cd6fceb5bb494a4baa86df4f5d32551a81ba3fd1e78b343bb2f84db6f1110 |
|
MD5 | 477ef42a9468d3821dc7c9d45b5e0123 |
|
BLAKE2b-256 | 263d0b4bbc8663d09e56d10c62e9894f95ad9f10bb63d2c1d97fd02ddb7d1910 |