Environments

Examples

List environments for a project:

environments = project.environments.list()

Get a single environment:

environment = project.environments.get(environment_id)

Create an environment for a project:

environment = project.environments.create({'name': 'production'})

Update an environment for a project:

environment.external_url = 'http://foo.bar.com'
environment.save()

Delete an environment for a project:

environment = project.environments.delete(environment_id)
# or
environment.delete()