# Python Wordpress API
[![Pypi][pypi-image]][pypi-url]
[![Updates][pyup-image]][pyup-url]
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](http://v2.wp-api.org/reference) as reference for what is possible.
## Installation
```
pip install python_wpapi
```
## Usage
```
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')
```
## TODO
* Documentation
* OAuth authentication
## Tests
```
make test
```
* Free software: MIT licensea
[pypi-image]: https://img.shields.io/pypi/v/python_wpapi.svg
[pypi-url]: https://pypi.python.org/pypi/python_wpapi
[pyup-image]: https://pyup.io/repos/github/Lobosque/python_wpapi/shield.svg
[pyup-url]: https://pyup.io/repos/github/Lobosque/python_wpapi/
# History
## 0.3.1 (2017-08-07)
* Fixed bug where GET would send content in the request body.
## 0.2.1 (2016-11-16)
* Converted rst to markdown.
## 0.2.0 (2016-11-16)
* Added test suite.
* Fixed bugs with api exception raising.
## 0.1.0 (2016-11-16)
* First release on PyPI.
[![Pypi][pypi-image]][pypi-url]
[![Updates][pyup-image]][pyup-url]
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](http://v2.wp-api.org/reference) as reference for what is possible.
## Installation
```
pip install python_wpapi
```
## Usage
```
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')
```
## TODO
* Documentation
* OAuth authentication
## Tests
```
make test
```
* Free software: MIT licensea
[pypi-image]: https://img.shields.io/pypi/v/python_wpapi.svg
[pypi-url]: https://pypi.python.org/pypi/python_wpapi
[pyup-image]: https://pyup.io/repos/github/Lobosque/python_wpapi/shield.svg
[pyup-url]: https://pyup.io/repos/github/Lobosque/python_wpapi/
# History
## 0.3.1 (2017-08-07)
* Fixed bug where GET would send content in the request body.
## 0.2.1 (2016-11-16)
* Converted rst to markdown.
## 0.2.0 (2016-11-16)
* Added test suite.
* Fixed bugs with api exception raising.
## 0.1.0 (2016-11-16)
* First release on PyPI.
Metadata
Release files for python_wpapi 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python_wpapi-0.3.1.tar.gz | 7.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_wpapi-0.3.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.9 kB
Release files / python_wpapi-0.3.1.tar.gz
| Download URL | python_wpapi-0.3.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b9f243acad654f349d422db4b7d8d427cdb8e0a73b2ea7f09ac2e15c3b4bdf5
|
|
BLAKE2b-256 checksum How to use checksums |
adabca98b44c9fadb75bcb6d01296411eb99344237d075cbd3aae072e82be3f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / python_wpapi-0.3.1-py2.py3-none-any.whl
| Download URL | python_wpapi-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d95a988813aedc46fcdf4902bbe7d88998f16985e3fb3013446772807b4f9a7b
|
|
BLAKE2b-256 checksum How to use checksums |
8f0bbb51359498a5a7de30939cba458ad50a9f9ad1a8599e80595de210f80c31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python_wpapi 0.3.1
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.