Skip to main content

A Python client for the WordPress JSON API plugin

Project description

A simple Python library for talking to Wordpress in JSON. This library relies on the [WordPress JSON API plugin][1]. This won’t work if your WordPress site doesn’t have the plugin installed.

[1]: http://wordpress.org/extend/plugins/json-api/ “WordPress JSON API”

Install:

$ pip install python-wordpress

Or git clone and python setup.py install and such.

Usage:

>>> from wordpress import WordPress
>>> wp = WordPress('http://example.com/blog/')
>>> posts = wp.get_recent_posts()

For now, this only covers the read portions of the API under the core controller. See the [WordPress JSON API documentation][2] for details.

[2]: http://wordpress.org/extend/plugins/json-api/other_notes/

Tests are written with the assumption of a WordPress blog running on [MAMP][3] at http://127.0.0.1/wordpress/.

[3]: http://www.mamp.info/en/index.html “MAMP!”

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

python-wordpress-0.1.1.zip (4.3 kB view details)

Uploaded Source

python-wordpress-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file python-wordpress-0.1.1.zip.

File metadata

  • Download URL: python-wordpress-0.1.1.zip
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-wordpress-0.1.1.zip
Algorithm Hash digest
SHA256 a73bc0d94363c0b8a669ffac594eb868c3fb5ddd6443b5a9b635f24878ebdead
MD5 3f5806713b476b07087e8fb810b682bb
BLAKE2b-256 043cd9dad22be37c6ad0932175df6adc70a19be4c44c757a96b16409c0073e9d

See more details on using hashes here.

File details

Details for the file python-wordpress-0.1.1.tar.gz.

File metadata

File hashes

Hashes for python-wordpress-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5ddd28760cebc533ea9a27f616f2b87c8f13a92ff7284992cdbf344abc646201
MD5 d1d21fc3b1a99a885af348085b180886
BLAKE2b-256 afcc7521145a09192afe804425c1fc59c8a33b13c0658dfbfea73e31b7d9850b

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 Pingdom Monitoring Sentry Error logging StatusPage Status page