Examples¶
Mini example¶
The mini example demonstrates Sentaku usage by searching a package on pypi and opening the first result in a browser
Sentaku pypi search exampple¶
before running:
$ pip install selenium requests sentaku
-
class
mini_example.
Search
(parent, base_url='https://pypi.python.org/pypi')[source]¶ sentaku element for really simple pypi searching
Todo example¶
The todo example demonstrates Sentaku usage in a more complex manner. A Example Todo list manager that has Multiple interfaces and api differences between them.
Api Reference¶
Structure Description¶
The Todo list example has 3 entrypoints
todo_example.api.TodoApp
- The Basic implementation as “internal api”
todo_example.ux.TodoUX
- A pseudo-ux sharing the api with
todo_example.api.TodoApp
todo_example.pseudorpc.PseudoRpc
- A pseudo RPC exposing the bahaviour using a different api