Not yet published to PyPI. Build it from sdk-python.
12345from orsel import Orsel
orsel = Orsel()# ORSEL_KEY, ORSEL_URL, ORSEL_PROJECT
found = orsel.find("read a blog post by id", pages="none")
run = orsel.act(found.actions[0].domain, found.actions[0].action_id,{"id":3}, wait=True)
A site used like an API:
12blog = orsel.site("egeuysal.com", explore=True)
post = blog.read_blog_page(slug=blog.list_blog()["slugs"][0])
site() gives one method per action. A run that does not succeed raises ActionError (.run, .code). blog.run(id, **input) returns the whole run. AsyncOrsel has the same methods as coroutines (site() is sync-only for now). verify_ledger and verify_webhook work offline. Models are checked against the generated OpenAPI document in the test suite.