Name | woppy JSON |
Version |
1.0.0
JSON |
| download |
home_page | https://techard.net |
Summary | A Python library to manage WordPress sites via the REST API |
upload_time | 2024-07-12 11:33:41 |
maintainer | Fatih Zor |
docs_url | None |
author | Techard |
requires_python | >=3.6 |
license | MIT |
keywords |
wordpress
rest api
api
cms
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Woppy
Woppy is a Python library to manage WordPress sites via the REST API.
## Installation
```bash
pip install woppy
```
## Usage
```python
from woppy import Woppy
# Site URL, Username and Application Password
woppy = Woppy('https://your-wordpress-site.com', 'your-username', 'your-application-password')
# New Category
new_category = woppy.categories.create_category('New Category', 'This is a new category')
# New Tag
new_tag = woppy.tags.create_tag('New Tag', 'This is a new tag')
# New Post and assign the new category and tag
new_post = woppy.posts.create_post(
title='My New Post',
content='This is the content of my new post',
status='publish',
categories=[new_category['id']], # Category ID
tags=[new_tag['id']], # Tag ID
)
# Get all plugins
plugins = woppy.plugins.get_plugins()
# Activate Akismet plugin
woppy.plugins.activate_plugin('akismet/akismet')
# Deactivate Akismet plugin
woppy.plugins.deactivate_plugin('akismet/akismet')
```
### Planned Updates
- [ ] Delete Tag
- [ ] Delete Media
- [ ] Delete Category
- [ ] Delete Post
- [ ] Upload Media
- [ ] Search Plugin From WordPress Repository
Raw data
{
"_id": null,
"home_page": "https://techard.net",
"name": "woppy",
"maintainer": "Fatih Zor",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "me@fatihzor.dev",
"keywords": "wordpress, rest api, api, cms",
"author": "Techard",
"author_email": "info@techard.net",
"download_url": "https://files.pythonhosted.org/packages/70/b7/ae77e838e65718736e24d140eacaf7561000d9028cf4b7d8e47c3f9b9ee1/woppy-1.0.0.tar.gz",
"platform": "any",
"description": "# Woppy\r\n\r\nWoppy is a Python library to manage WordPress sites via the REST API.\r\n\r\n## Installation\r\n\r\n```bash\r\npip install woppy\r\n```\t\r\n\r\n## Usage\r\n\r\n\r\n```python\r\nfrom woppy import Woppy\r\n\r\n# Site URL, Username and Application Password\r\nwoppy = Woppy('https://your-wordpress-site.com', 'your-username', 'your-application-password')\r\n\r\n# New Category\r\nnew_category = woppy.categories.create_category('New Category', 'This is a new category')\r\n\r\n# New Tag\r\nnew_tag = woppy.tags.create_tag('New Tag', 'This is a new tag')\r\n\r\n# New Post and assign the new category and tag\r\nnew_post = woppy.posts.create_post(\r\n title='My New Post',\r\n content='This is the content of my new post',\r\n status='publish',\r\n categories=[new_category['id']], # Category ID\r\n tags=[new_tag['id']], # Tag ID\r\n)\r\n\r\n# Get all plugins\r\nplugins = woppy.plugins.get_plugins()\r\n\r\n# Activate Akismet plugin\r\nwoppy.plugins.activate_plugin('akismet/akismet')\r\n\r\n# Deactivate Akismet plugin\r\nwoppy.plugins.deactivate_plugin('akismet/akismet')\r\n```\r\n\r\n### Planned Updates\r\n\r\n- [ ] Delete Tag\r\n- [ ] Delete Media\r\n- [ ] Delete Category\r\n- [ ] Delete Post\r\n- [ ] Upload Media\r\n- [ ] Search Plugin From WordPress Repository\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python library to manage WordPress sites via the REST API",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://techard.net"
},
"split_keywords": [
"wordpress",
" rest api",
" api",
" cms"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "04fff23c7c798a2f31b134a34ee1d69dce0462bbdae99a69b6b1fa879322f9b4",
"md5": "a732d832b263b16c610514f012475932",
"sha256": "4680aea88bb5be70e5693d3cb468b5589e29af0a149317fc08f9eaa8cd65a53f"
},
"downloads": -1,
"filename": "woppy-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a732d832b263b16c610514f012475932",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 5420,
"upload_time": "2024-07-12T11:33:39",
"upload_time_iso_8601": "2024-07-12T11:33:39.315265Z",
"url": "https://files.pythonhosted.org/packages/04/ff/f23c7c798a2f31b134a34ee1d69dce0462bbdae99a69b6b1fa879322f9b4/woppy-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "70b7ae77e838e65718736e24d140eacaf7561000d9028cf4b7d8e47c3f9b9ee1",
"md5": "7e2cf4a167a35f21e9512e81ff382e5c",
"sha256": "2ad261c4ced57895aae1c21e281a63eaedb47e0587b9f3d3fc84bdca5b7cc36b"
},
"downloads": -1,
"filename": "woppy-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "7e2cf4a167a35f21e9512e81ff382e5c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3160,
"upload_time": "2024-07-12T11:33:41",
"upload_time_iso_8601": "2024-07-12T11:33:41.975800Z",
"url": "https://files.pythonhosted.org/packages/70/b7/ae77e838e65718736e24d140eacaf7561000d9028cf4b7d8e47c3f9b9ee1/woppy-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-12 11:33:41",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "woppy"
}