Skip to main content

Acquia Cloud API v2 client library.

Project description

# Python Acquia Cloud API v2

Client library to communicate with the [Acquia Cloud API](https://cloudapi.acquia.com/).

[Pablo Fabregat](http://pablofabregat.com) - [License](LICENSE.txt)

[![Build Status](https://travis-ci.org/pmatias/python-acquia-cloud-2.svg?branch=master)](https://travis-ci.org/pmatias/python-acquia-cloud-2) [![codecov](https://codecov.io/gh/pmatias/python-acquia-cloud-2/branch/master/graph/badge.svg)](https://codecov.io/gh/pmatias/python-acquia-cloud-2)
[![Say Thanks](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/pmatias)

Python implementation for the new Acquia API v2 (https://cloud.acquia.com/api-docs/),
based on the original acapi Python Library created by Dave Hall (http://github.com/skwashd/python-acquia-cloud)


This library is in an alpha state and can behave very weirdly.

### Roadmap

* Testing testing ~~testing~~,
* First alpha goal: ~~get the lib to create environments on demand (Delayed because Acquia's API design)~~,
* ~~Submit to Pypi~~

More information coming soon.


## Examples

Please bear in mind that the library is being actively developed and
most of its functionality is just a reduced set of what it should be.

Minimal request

```python
acquia = Acquia(api_key, api_secret)
application = acquia.application("a47ac10b-58cc-4372-a567-0e02b2c3d470")

print(application["name"])
```

### Using filters

```python
subscription_name = "MySubsName"
filters = "name=" + subscription_name

application = acapi.applications(filters=filters).first()
dev_environment = application.environments()["dev"]

print(dev_environment["id"])

dev_environment.set_php_version("7.0")

more_settings = {
"max_execution_time": 10,
"memory_limit": 192,
"apc": 128,
"max_input_vars": 1000,
"max_post_size": 256,
"sendmail_path": "/usr/bin/sendmail",
"varnish_over_ssl": false
}

dev_environment.configure(more_settings)
```

Project details


Release history Release notifications

This version
History Node

2.0.0a3

History Node

2.0.0a2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
acapi2-2.0.0a3.tar.gz (15.9 kB) Copy SHA256 hash SHA256 Source None May 9, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page