Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service initialization should be easier #14

Open
ahggns opened this issue Jul 20, 2018 · 0 comments
Open

Service initialization should be easier #14

ahggns opened this issue Jul 20, 2018 · 0 comments

Comments

@ahggns
Copy link
Contributor

ahggns commented Jul 20, 2018

I've been copying around this kind of function to make service initialization easier, either the process to initialize a service should be easier or a function like this should be exposed by conjure-python-client.

def create_service(uris, service):
    # type: (List[str], Type[T]) -> T
    config = httpremoting.ServiceConfiguration()
    config.uris = uris
    agent = '{}_conjure_client'.format(service.__name__)
    return httpremoting.RequestsClient.create(service, agent, config)
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

No branches or pull requests

1 participant