Skip to content

Service initialization should be easier #14

@ahggns

Description

@ahggns

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)

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