Releases: botcity-dev/botcity-maestro-sdk-python
Releases · botcity-dev/botcity-maestro-sdk-python
BotCity Maestro SDK Python - 0.9.0
BotCity Maestro SDK Python - 0.8.0
Enhancements
- Improve file extensions handling when posting an artifact by @joao-voltarelli in #44
Full Changelog: v0.7.0...v0.8.0
BotCity Maestro SDK Python - 0.7.0
BotCity Maestro SDK Python - 0.6.0
Enhancements
- Add
is_onlineproperty to easily determine whether we are online or not by @hhslepicka in #36 - Add
updateandremovemethods to credential handling. by @hhslepicka in #41
Bug Fixes
- Adding the 'repositoryLabel' property to the Datapool dataclass by @joao-voltarelli in #39
Documentation
- Updating docstring with a warning about the timezone in create_task by @joao-voltarelli in #40
Full Changelog: v0.5.1...v0.6.0
BotCity Maestro SDK Python - 0.5.1
Bug Fixes
- Invoke define_implementation during from_sys_args by @hhslepicka in #34
Full Changelog: v0.5.0...v0.5.1
BotCity Maestro SDK Python - 0.5.0
Important
Release removed from PyPI due to issue fixed in 0.5.1
Enhancements
- You can now specify the total number of items and the number of items processed with success and failure by each of your tasks when reporting its finish status using the
maestro.finish_taskmethod. by @hhslepicka in #32 and #33.
This enhancement is strongly recommended as it will be a key aspect of the future features of the BotCity Orchestrator related to ROI, savings, and FTEs.
Here is how you can modify your code to report your items:
# Import for integration with BotCity Maestro SDK
from botcity.maestro import *
def main():
...
maestro.finish_task(
task_id=execution.id,
status=AutomationTaskFinishStatus.SUCCESS,
message="Task Finished with Success.",
total_items=10,
processed_items=6,
failed_items=4
)
...- Added a new option
MOCK_OBJECT_WHEN_DISCONNECTEDto return instances of the expected object when running the code disconnected from the orchestrator by @hhslepicka in #31
Before this option, the SDK would returnNoneor a stub function which would make code like the example below crash.
# Import for integration with BotCity Maestro SDK
from botcity.maestro import *
# Disable errors if we are not connected to Maestro
BotMaestroSDK.RAISE_NOT_CONNECTED = False
# Opt-in to receive mock objects when not connected to Maestro
BotMaestroSDK.MOCK_OBJECT_WHEN_DISCONNECTED = True
def main():
maestro = BotMaestroSDK()
maestro.from_sys_args()
task = maestro.get_task("12345")
print("Maestro Task: ", task)
print("Task Interrupted: ", task.is_interrupted())
if __name__ == '__main__':
main()
## This will generate the following output:
# Maestro Task: AutomationTask(id=0, state=<AutomationTaskState.START: 'START'>, parameters=None, input_file=None, activity_id=0, activity_label=None, agent_id=0, user_creation_id=0, user_creation_name=None, org_creation_id=0, date_creation=None, date_last_modified=None, finish_status=<AutomationTaskFinishStatus.FAILED: 'FAILED'>, finish_message=None, test=False, interrupted=False, killed=False, machine_id=None)
# Task Interrupted: FalseBug Fixes
- Addressed an issue where the
VERIFY_SSL_CERTflag was not being used when making requests by @hhslepicka in #30 - Addressed an issue where the
timeoutvalue was not properly propagated when configured
Deprecations
- Removed compatibility layer with BotCity Orchestrator API v1 which is no longer available in any of our servers by @hhslepicka in #28
CI
- Updated actions versions and add needs authorize to tests. by @hhslepicka in #29
Full Changelog: v0.4.2...v0.5.0
BotCity Maestro SDK Python - 0.4.2
Bug Fixes
- Pass the timeout value downstream to the implementation. by @hhslepicka in #27
Documentation
- Update screenshots links in README by @joao-voltarelli in #26
Full Changelog: v0.4.1...v0.4.2
BotCity Maestro SDK Python - 0.4.1
Bug Fixes
- Remove duplicated call to update_from_json from DataPoolEntry. by @hhslepicka in #25
Full Changelog: v0.4.0...v0.4.1
BotCity Maestro SDK Python - 0.4.0
Enhancements
- Add support for
Datapoolfeature by @kayqueGovetri in #21 and @hhslepicka in #24 - Expose new parameters at
create_taskby @kayqueGovetri in #19
Bug Fixes
- Verify minimum execute date is not
Noneincreate_taskby @kayqueGovetri in #23
Tests
- Implement new arguments in conftest fixture
create_taskby @kayqueGovetri in #22
Documentation
- Updating screenshots and links in README by @joao-voltarelli in #20
New Contributors
- @joao-voltarelli made their first contribution in #20
Full Changelog: v0.3.4...v0.4.0
BotCity Maestro SDK Python - 0.3.4
Enhancements
- Expose
activity_labelandkilledfor AutomationTask. by @hhslepicka in #17
Full Changelog: v0.3.3...v0.3.4