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 wordpress
api_url = "https://demo.wp-api.org/"
api = wordpress.Wordpress(api_url)
results = api.get_posts()

Get categories

from pywordapi import wordpress
api_url = "https://demo.wp-api.org/"
api = wordpress.Wordpress(api_url)
results = api.get_categories()

Variable results will return instance of type dict

Using proxy

from pywordapi import wordpress
api_url = "https://demo.wp-api.org/"
proxy_url = "http://username:password@IP_ADDRESS:PORT"
api = wordpress.Wordpress(api_url, proxy_url)
results = api.get_posts()

Documentation

https://pywordapi.readthedocs.io/

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.6.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywordapi-1.0.6-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pywordapi-1.0.6.tar.gz.

File metadata

  • Download URL: pywordapi-1.0.6.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

Hashes for pywordapi-1.0.6.tar.gz
Algorithm Hash digest
SHA256 432e7a9ca9d49b31011e9cdb4fd62ea2b827fba24ddf6c70c9149ed302c42dd3
MD5 f869579b1ffa86935d8b8b8f0a56e0f5
BLAKE2b-256 1eede77c75bc0ddcda92fe3a0e66945026b468655829470132108e64001f02dc

See more details on using hashes here.

File details

Details for the file pywordapi-1.0.6-py2.py3-none-any.whl.

File metadata

  • Download URL: pywordapi-1.0.6-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

Hashes for pywordapi-1.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 92dd215037559eedb84b50df35e9be2581756f2391299b0a7ffb7e0426bd185f
MD5 ec4296d5ae121d676be30465f2c44daa
BLAKE2b-256 9205a5d3b5f6ea7f483ff8073d42670ee49950cb9c1e323307d7f29caf0885c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page