Simple python wrapper around the Wordpress REST API. Supports authentication using Basic Auth.
All endpoints for the following resources are available:
- Posts
- Media
- Post Types
- Taxonomies
- Categories
- Tags
- Users
These endpoints will be implemented soon:
- Post Revisions
- Pages
- Post Types
- Post Statuses
- Comments
Use the official api documentation as reference for what is possible.
pip install python_wpapi
from python_wpapi import WpApi
api1 = WpApi('http://example.com') # No authentication. Public endpoints only
api2 = WpApi('http://example.com', user='User', password='pwd') # Basic Auth
posts = api1.get_posts()
new_post = api2.create_post(title='Foo', content='Bar')
- Documentation
- OAuth authentication
make test
- Free software: MIT licensea