Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Implement bluemix client constructor method #313

@smithsz

Description

@smithsz

Other than the cloudant_bluemix CM, the only way to construct a bluemix client is as follows:

service = CloudFoundryService(vcap_services, instance_name)
cloudant_session = Cloudant(
    service.username,
    service.password,
    url=service.url,
)

We should abstract this in a class method, something like this:

cloudant_session = Cloudant.bluemix(os.getenv('VCAP_SERVICES'), 'instance-name')

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions