
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
A Python library for posting content, uploading media, and interacting with the WordPress REST API.
A modern Python library for posting content, uploading media, and interacting with the WordPress REST API. Supports any post type, media uploads, and is designed for easy integration and automation in your projects.
For development (recommended):
pip install -e .
This will install the package in editable mode, so changes to the code are immediately reflected.
For users (from PyPI, if published):
pip install wordpress_poster
The library requires the following environment variables to be set:
WP_URL
— Your WordPress site URL (e.g., https://yourblog.com
)WP_USERNAME
— Your WordPress usernameWP_PASSWORD
— Your WordPress application password (see WordPress Application Passwords)You can set these in your shell, or use a .env
file in your project root:
WP_URL=https://yourblog.com
WP_USERNAME=yourusername
WP_PASSWORD=yourapppassword
from wordpress_poster.client import WordPressClient
wp = WordPressClient()
# Upload an image
success, image_url, image_id = wp.upload_image(
'https://example.com/image.jpg',
{'brand': 'Victor', 'name': 'Auraspeed'}
)
# Create a post (required fields only)
post_url = wp.create_post(
post_type='post',
title='My Title',
content='<p>My content</p>'
)
print('Post created at:', post_url)
post_url = wp.create_post(
post_type='post',
title='My Title',
content='<p>My content</p>',
slug='my-title-slug',
status='publish',
categories=[2, 3],
meta={'custom_field': 'value'},
featured_media=image_id # Set the featured image
)
print('Post created at:', post_url)
Install dev dependencies and run tests with:
pip install -r requirements.txt
pytest
Pull requests and issues are welcome! Please open an issue if you find a bug or have a feature request.
MIT License. See LICENSE for details.
FAQs
A Python library for posting content, uploading media, and interacting with the WordPress REST API.
We found that wordpress-poster demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.