semvec/pypi-packages huggingface dataset:
pywordapi 1.0.9
Python Wordpress Api Library
License: MIT license
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Keywords: wordpress api,wordpress json,python wordpress

========
Overview
========



Python Wordpress Api Library

 **Pywordapi** allows a simple way to get data in and out of WordPress over HTTP, using python and Wordpress REST API.

Installation
============

To install the Pywordapi package::

    pip install pywordapi

Usage
=====

Get posts

.. code-block:: python

  from pywordapi import Pywordapi
  api_url = "https://demo.wp-api.org/"
  api = Pywordapi.WpRest(api_url)
  results = api.get_posts()

Get categories

.. code-block:: python

  from pywordapi import Pywordapi
  api_url = "https://demo.wp-api.org/"
  api = Pywordapi.WpRest(api_url)
  results = api.get_categories()

Variable **results** will return instance of type list (of dict).

Using proxy

.. code-block:: python

  from pywordapi import Pywordapi
  api_url = "https://demo.wp-api.org/"
  proxy_url = "http://username:password@IP_ADDRESS:PORT"
  api = Pywordapi.WpRest(api_url, proxy_url)
  results = api.get_posts()


Documentation
=============


https://pywordapi.readthedocs.io/


Changelog
=========

1.0.0 (2019-06-21)
------------------

* First release on PyPI.