Skip to content

More high-level tools #266

@hovi

Description

@hovi

This library seems like solid foundation, to avoid too much boilerplate, I would like to do things like:

  • Decorator that runs some method using try-except and then automatically wraps the results in Success or Error
  • Decorator similar to @method that can be used on class that will then automatically add all class method to dispatcher (possibly with help of ABC module and @abstractmethod)

Basically what I have is interface that I want to be used over json-rpc and to create json-rpc client and server as simply as possible without much boilerplate code as there will be more interfaces like that.
Is this anything you see as useful in this library (and it's client part)?

I will also probably add other transport methods (so far I found in the code only "serve", which does simple HTTP). I may possibly add TCP or intergrate with django routing depending on what will we require for our use-cases.
Happy to make some PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions