Skip to content

Add libby client library#17

Open
mikelangmayr wants to merge 6 commits into
mainfrom
mike/create-libby-client
Open

Add libby client library#17
mikelangmayr wants to merge 6 commits into
mainfrom
mike/create-libby-client

Conversation

@mikelangmayr

Copy link
Copy Markdown
Collaborator
  • consolidate config file loading
  • extract shared core modules and use them across cli and client lib
  • use custom errors
  • add documentations

Comment thread libby/daemon.py Outdated
Comment thread libby/daemon.py
self.topics: Dict[str, EvtHandler] = dict(getattr(type(self), "topics", {}))

@classmethod
def from_config(cls, cfg: Dict[str, Any]) -> "LibbyDaemon":

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also include transport and group id?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The libby daemon is a bit out of date, hispec daemon is the one with the latest changes. Let's have a chat about the role of the libby daemon template vs the hispec daemon template

Comment thread libby/naming.py Outdated
Comment thread libby/naming.py
"""
if value == "":
return None
low = value.strip().lower()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we start a lookup table for fixed string values as this grows?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how you would implement this, the Rabbit broker in some ways is a lookup table already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants