## Arikaim CMS Api Client for python
![version: 1.0.0](https://img.shields.io/github/release/arikaim/api-client-py.svg)
![license: MIT](https://img.shields.io/badge/License-MIT-blue.svg)
This repo is part of [Arikaim CMS](http://arikaim.com) project.
### Installation
```sh
pip install arikaim-client
```
### Usage
```python
from arikaim.client import ArikaimClient
client = ArikaimClient(host,apiKey)
data = {
request data fields key: value
}
response = client.request(method,url,data)
print(response.status)
print(response.to_dictonary())
#Add header
client.add_header({ 'key': 'value' })
#POST request
response = client.post(url,data)
#GET request
response = client.get(url)
#PUT request
response = client.put(url,data)
# Save base64 encoded file
client.save_ecoded_file(response,field_name, file_name)
# upload local file
client.upload(path, file_name, field_name, data, method = POST)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/arikaim/api-client-py",
"name": "arikaim-client",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "arikaim, arikaim cms, api client",
"author": "Intersoft Ltd",
"author_email": "info@arikaim.com",
"download_url": "https://files.pythonhosted.org/packages/d2/de/6e4a040228e5f844d38dfa9e7bcb96e946bdfeb42c2d70b3763e180a7b5a/arikaim_client-1.0.19.tar.gz",
"platform": null,
"description": "## Arikaim CMS Api Client for python\n![version: 1.0.0](https://img.shields.io/github/release/arikaim/api-client-py.svg)\n![license: MIT](https://img.shields.io/badge/License-MIT-blue.svg)\n\n\nThis repo is part of [Arikaim CMS](http://arikaim.com) project.\n\n\n### Installation\n\n```sh\npip install arikaim-client\n```\n\n### Usage\n\n```python\n\nfrom arikaim.client import ArikaimClient\n\nclient = ArikaimClient(host,apiKey)\n\ndata = {\n request data fields key: value\n}\n\nresponse = client.request(method,url,data)\n\nprint(response.status)\nprint(response.to_dictonary())\n\n\n#Add header\nclient.add_header({ 'key': 'value' })\n\n\n#POST request \nresponse = client.post(url,data)\n\n#GET request\nresponse = client.get(url)\n\n#PUT request\nresponse = client.put(url,data)\n\n\n# Save base64 encoded file\nclient.save_ecoded_file(response,field_name, file_name)\n\n# upload local file\nclient.upload(path, file_name, field_name, data, method = POST)\n\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Arikaim CMS api client",
"version": "1.0.19",
"project_urls": {
"Homepage": "https://github.com/arikaim/api-client-py"
},
"split_keywords": [
"arikaim",
" arikaim cms",
" api client"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d2de6e4a040228e5f844d38dfa9e7bcb96e946bdfeb42c2d70b3763e180a7b5a",
"md5": "52d33d77dee6c8d6ee6ec352d94b6429",
"sha256": "b05e40a49bb6f3dc1a40fc1dca8ef40f86cee2ac2b180b76763d3f94bd2f213e"
},
"downloads": -1,
"filename": "arikaim_client-1.0.19.tar.gz",
"has_sig": false,
"md5_digest": "52d33d77dee6c8d6ee6ec352d94b6429",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4398,
"upload_time": "2024-12-05T13:53:25",
"upload_time_iso_8601": "2024-12-05T13:53:25.012442Z",
"url": "https://files.pythonhosted.org/packages/d2/de/6e4a040228e5f844d38dfa9e7bcb96e946bdfeb42c2d70b3763e180a7b5a/arikaim_client-1.0.19.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-05 13:53:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "arikaim",
"github_project": "api-client-py",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "arikaim-client"
}