Metadata-Version: 2.1
Name: aptible-api
Version: 0.2.0
Summary: Object Oriented interface for Aptible API
Home-page: https://github.com/TrialSpark/aptible-api
Author: Zachary Elliott
Author-email: zellio@trialspark.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/TrialSpark/aptible-api
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENCE.md

## Example

```python
from pathlib import Path
token_path = Path("~/.aptible/tokens.json").expanduser()

from json import JSONDecoder
token_json = JSONDecoder().decode( token_path.read_text() )
token = token_json['https://auth.aptible.com']

from aptible.api import AptibleApi
aptible_api = AptibleApi()
aptible_api.authorize(token=token)

from aptible.api.model.app import App
app = aptible_api.fetch(App, 15514)
# or app = aptibe_api.fetch('App', 15514)

operation = app.create_operation(type='configure', env={"new_key": "value"})

print(operation.to_dict())
```


