Python Wordpress Api Library
Pywordapi allows a simple way to get data in and out of WordPress over HTTP, using python and Wordpress REST API.
Installation
To install the Pywordapi package:
pip install pywordapi
Usage
Get posts
from pywordapi import Pywordapi
api_url = "https://demo.wp-api.org/"
api = Pywordapi.WpRest(api_url)
results = api.get_posts()
Get categories
from pywordapi import Pywordapi
api_url = "https://demo.wp-api.org/"
api = Pywordapi.WpRest(api_url)
results = api.get_categories()
Variable results will return instance of type dict
Using proxy
from pywordapi import Pywordapi
api_url = "https://demo.wp-api.org/"
proxy_url = "http://username:password@IP_ADDRESS:PORT"
api = Pywordapi.WpRest(api_url, proxy_url)
results = api.get_posts()
Documentation
Changelog
1.0.0 (2019-06-21)
First release on PyPI.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywordapi-1.0.8.tar.gz
(15.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pywordapi-1.0.8.tar.gz.
File metadata
- Download URL: pywordapi-1.0.8.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a82a051bb6c33c0e8afe0a2eb05f452e3f5018416d47e5fa09b1017885050a63
|
|
| MD5 |
a7adc2a81cc88303afcdada2b0839bd8
|
|
| BLAKE2b-256 |
f39eb2e543c35f3e697167560d7515f1f85591fb74d703617f53b6b08c7dcd54
|
File details
Details for the file pywordapi-1.0.8-py2.py3-none-any.whl.
File metadata
- Download URL: pywordapi-1.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3296d1eb7046e944b9491abc7999bf108106de84bc2a7d0676a91016cef3fa3
|
|
| MD5 |
c9c1c9abbab2d3a7c4850dd03cc931ff
|
|
| BLAKE2b-256 |
5b6c2217bae9a01836636b8277e71ee69065686bd8d312ec3403eec9f9b71340
|