Skip to content

Knuckles-Team/cockpit-api

Repository files navigation

Cockpit CMS API

PyPI - Version PyPI - Downloads GitHub Repo stars GitHub forks GitHub contributors PyPI - License GitHub

GitHub last commit (by committer) GitHub pull requests GitHub closed pull requests GitHub issues

GitHub top language GitHub language count GitHub repo size GitHub repo file count (file type) PyPI - Wheel PyPI - Implementation

Version: 0.3.1

Cockpit CMS API Python Wrapper

Includes standard Cockpit API Calls

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
Repository Owners:

GitHub followers GitHub User's stars