Skip to main content

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

https://pywordapi.readthedocs.io/

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)

Source distribution for pywordapi 1.0.9
File Size Uploaded
pywordapi-1.0.9.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywordapi 1.0.9
File Interpreter ABI Platform
pywordapi-1.0.9-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

1 release file

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page