Overview
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 list (of 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.
Metadata
Release files for pywordapi 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pywordapi-1.0.9.tar.gz | 15.7 kB | Without provenance | Details for pywordapi-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pywordapi-1.0.9-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pywordapi-1.0.9-py2.py3-none-any.whl |
Total release size: 20.0 kB
Release files / pywordapi-1.0.9.tar.gz
| Download URL | pywordapi-1.0.9.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98e89049b73986c70664016baf516428334e9eca1460c52750cbc55f56116368
|
|
BLAKE2b-256 checksum How to use checksums |
8284e657769a82e38af65c32a03d3fc9310b9cd02869f19cc05bc973becbfe54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pywordapi-1.0.9-py2.py3-none-any.whl
| Download URL | pywordapi-1.0.9-py2.py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c6ef718dad990ca1cb4b23ec7f31973dff95775c3cbfa42f34b0388933ac4c67
|
|
BLAKE2b-256 checksum How to use checksums |
d81b596e6f823c69bc36b1b70ee186f7e9204ff59adb41e6e6697731bd64d383
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pywordapi 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.