Version: 0.3.1
Cockpit CMS API Python Wrapper
Includes standard Cockpit API Calls
- Get Content
- Add/Update Content
- Get Asset
- Get Image Asset
This repository is actively maintained and will continue adding more API calls
Contribution Opportunities:
- Support new API calls
Usage:
#!/usr/bin/python
# coding: utf-8
import cockpit_api
token = "<TOKEN>"
api_url = "<COCKPIT API URL>"
client = cockpit_api.Api(url=api_url, token=token)
content = client.get_content(model="<COLLECTION/SINGLETON>")
print(content)
Installation Instructions:
python -m pip install cockpit-api