Python REST API wrapper for WP-API/OAuth1
import wordpress_oauth
api = wordpress_oauth.Wordpress("~/.config/pywordpress_oauth/config.yml")
image_path = "images/icon.png"
result = api.upload_image(image_path)
This library asks auth setting on initial startup.
pip install wordpress_oauth
WP REST API - OAuth 1.0a Server
wordpress_oauth was written by fx-kirin.