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 V2.

Pablo Fabregat - License

Build Status codecov Say Thanks

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

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

print(application["name"])

Using filters

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


Download files

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

Source Distribution

acapi2-2.0.0b2.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acapi2-2.0.0b2-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file acapi2-2.0.0b2.tar.gz.

File metadata

  • Download URL: acapi2-2.0.0b2.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.4

File hashes

Hashes for acapi2-2.0.0b2.tar.gz
Algorithm Hash digest
SHA256 b65b51aceb0f4781512b47ec01eb6491a49e79ede7be0e06de841dd38d4021d6
MD5 f77eaf772e96c64e2d8d97faa886c06b
BLAKE2b-256 5e15fd3a3f58296c257286a6158e26f5ba62da84f0122d2d37243e5b5334873a

See more details on using hashes here.

File details

Details for the file acapi2-2.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: acapi2-2.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.4

File hashes

Hashes for acapi2-2.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 091d7fcb8d37d16aa45aee299e69e1cac9264e3d50a10e46915ea0314d2252a6
MD5 db8c463f9ebbb388dcf10d07a2113562
BLAKE2b-256 62168f7660e36dd869d2fffdd99f175e5a6791f363d628e7cf3d81237e0bbfea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page