Skip to main content

Python WordPress

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 assume a WordPress blog running on [MAMP][3] at http://localhost:8888/wordpress, but you can change that by setting WORDPRESS_BLOG_URL as an environment variable, like so:

WORDPRESS_BLOG_URL=http://wordpress.local.host python test.py

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

Metadata

Release files for python-wordpress 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-wordpress 0.1.3
File Size Uploaded Provenance Actions
python-wordpress-0.1.3.tar.gz 3.7 kB Without provenance Details for python-wordpress-0.1.3.tar.gz

Release files / python-wordpress-0.1.3.tar.gz

Download URL python-wordpress-0.1.3.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
feb305a7f3697af4fc558be5787c429db23f1e6fd43d8a17caf4ba6d60ac508c
BLAKE2b-256 checksum
How to use checksums
46c6e5fcb4eff13f68d4f852a697f68af18521c83c792535b8ef1c9f3fb03500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-wordpress 0.1.3

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.

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