cockpit-api-0.1.2
توضیحات
Cockpit CMS API Python Wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | cockpit-api-0.1.2 |
| نام | cockpit-api |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Audel Rouhi |
| ایمیل نویسنده | knucklessg1@gmail.com |
| آدرس صفحه اصلی | https://github.com/Knuckles-Team/cockpit-api |
| آدرس اینترنتی | https://pypi.org/project/cockpit-api/ |
| مجوز | Unlicense |
# Cockpit CMS API
*Version: 0.1.2*
Cockpit CMS API Python Wrapper
Includes standard Cockpit API Calls
This repository is actively maintained and will continue adding more API calls
### API Calls:
- Get Content
- Add/Update Content
- Get Asset
- Get Image Asset
### Usage:
```python
#!/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)
```
#### Build Instructions
Build Python Package
```bash
sudo chmod +x ./*.py
pip install .
python setup.py bdist_wheel --universal
# Test Pypi
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose -u "Username" -p "Password"
# Prod Pypi
twine upload dist/* --verbose -u "Username" -p "Password"
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.1 | requests |
| >=1.26.13 | urllib3 |
نحوه نصب
نصب پکیج whl cockpit-api-0.1.2:
pip install cockpit-api-0.1.2.whl
نصب پکیج tar.gz cockpit-api-0.1.2:
pip install cockpit-api-0.1.2.tar.gz