Metadata-Version: 2.1
Name: acapi2
Version: 2.0.0b2
Summary: Acquia Cloud API v2 client library.
Home-page: https://github.com/pmatias/python-acquia-cloud-2
Author: Pablo Fabregat
Author-email: pablo@ceruleanhq.com
License: MIT
Download-URL: https://pypi.org/project/acapi2
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Internet
Requires-Python: >=3.5
Description-Content-Type: text/markdown
Requires-Dist: http-hmac-python (>=2.4.0)
Requires-Dist: requests (>=2.20.0)
Requires-Dist: requests-cache (>=0.5.2)
Requires-Dist: setuptools (>=38.5)

# Python Acquia Cloud API v2

Client library to communicate with the [Acquia Cloud API V2](http://cloud.acquia.com/api-docs).

[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)
```


