This release introduces some major changes, which includes renaming of the `src` module to `otto_backend`. This was done, so we could expose some packages in the src folder for the new toolkit module(which is essentially the sdk for otto-m8).
What's new?
Tracer v1
A Tracer is essentially a logging utility for the workflow. Everytime a workflow is run, users would expect to see workflow and block level logs, which consist of the input, process and output of each block. This becomes important when you have a bunch of models interconnected. Usually you'd only see your input, and the output of the last block. All the intermediate block outputs are lost. With Tracer, you can now inspect each block.
SDK
With this release, you can now officially download otto-m8 from PyPi. Simply do `pip installl otto-m8` and interact with your deployed workflows. Example code:
python
from otto_m8.run import OttoRun
import json
Assuming your workflow is running on port 8001
otto = OttoRun(workflow_url='http://localhost:8001/workflow_run')
payload = otto.create_empty_payload()
print(payload) Do this to ensure you know the names of your input blocks
payload['Input_Block'] = "<insert your text>"
response = otto.run(payload)
print(json.dumps(response, indent=4))
Material UI
I'm starting to move away from Bootstrap. Realistically, its not helping me make my project look decent even though it was initially a good thing to start with to ship fast. But starting from this release, I'll be moving most of the components to material UI for consistency.
**Full Changelog**: https://github.com/farhan0167/otto-m8/compare/0.0.2...0.0.3
What's Changed
- Issue 54 tracer implementation and SDK by farhan0167 in https://github.com/farhan0167/otto-m8/pull/55
- Move away from requirements.txt files onto poetry for dependency management
- Create a package of the src. directory such that i can do a pip install otto_backend_engine from PyPi for the otto_m8_sdk(which will exposed to the client).
- /src/ module named to otto_backend. Hence why there's 97 files changed.
- Dashboard: Move away from React Bootstrap for a start, and transition to Material UI. Most for a cleaner UI. Goal for the future should be fully move to Material UI.
- SDK introduced for interacting with workflows
- Tracer v1 implemented: Get logs for each run of your workflow, including block level logs.
**Full Changelog**: https://github.com/farhan0167/otto-m8/compare/0.0.2...0.0.3