A RPC service to generate PDF resume based on an user's GitHub activity

  • By Pablo Emídio S.S
  • Last update: Jul 26, 2022
  • Comments: 0

RPC Service to generate pdf files of resume based on user's GitHub's activity

pre-commit


This repository is part of Git Resume RPC Architecture. But can be used as you pelase through nameko RPC, as seen in the example bellow.

from nameko.standalone.rpc import ClusterRpcProxy

config = {
    'AMQP_URI': AMQP_URI # e.g. "pyamqp://guest:guest@localhost"
}

with ClusterRpcProxy(config) as cluster_rpc:
    cluster_rpc.GitHubResume.generate_pdf({'profile_name': 'MyUser'})

or using your own service

from nameko.rpc import rpc, RpcProxy


class MyServiceName:
    name = 'MyServiceName'
    gb = RpcProxy('GitHubResume')

    @rpc
    def use_github_service(self, *args, **kwargs) -> dict:
        return self.gb.generate_document(args.pop(0) or kwargs['data'])

Github

https://github.com/PabloEmidio/GitHubResume