Skip to content

Commit

Permalink
Improve zino1 controller docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed May 31, 2024
1 parent 52fd734 commit d5be2de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/zinolib/controllers/zino1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Get a live Zino 1 session to use::
> from zinolib.config.zino1 import ZinoV1Config
> from zinolib.zino1 import Zino1EventManager
> from zinolib.controllers.zino1 import Zino1EventManager
> config = ZinoV1Config.from_tcl('.ritz.tcl', 'default')
> event_manager = Zino1EventManager.configure(config)
> event_manager.connect()
Expand All @@ -11,6 +11,13 @@
> config = ZinoV1Config.from_toml('.ritz.toml', 'default')
.. or in a dict with the format::
> config_dict = {"connections": "default": { "server": ACTUAL CONFIG .. }}
> config = ZinoV1Config.from_dict(config_dict, 'default')
Do not initialize ZinoV1Config directly, avoid ``ZinoV1Config(**dict)``.
Authenticate using a username and password from the config-file::
> event_manager.authenticate()
Expand Down

0 comments on commit d5be2de

Please sign in to comment.