Skip to main content

Easily Install your Wordpress blog in your Django project using wp rest API v1

Project description

https://badge.fury.io/py/django-wordpress-api.png https://travis-ci.org/swappsco/django-wordpress-api.png?branch=master https://coveralls.io/repos/github/swappsco/django-wordpress-api/badge.svg?branch=master https://readthedocs.org/projects/django-wordpress-api/badge/?version=latest

Easily Install your Wordpress blog in your Django project

This package allows to communicate easily with any wordpress project that is using wordpress core >= 4.7.0.

Even though the WP REST API package is already on the 2 version; it is still on beta so it was decided that this package will only support v1 until v2 is out of beta.

Documentation

The full documentation is at https://django-wordpress-api.readthedocs.org.

Quickstart

Install Django Wordpres API:

pip install django-wordpress-api

Then use it in a project:

import wordpress_api

Features

  • Connect to an external wordpress application

  • Retrieves all the blog posts ordered by pages

  • Filter blog posts using several of the available filters in WP REST API

  • Search blog posts using a keyword

  • order the blog posts by several attributes like author, title, type, etc; ascending and descending order (default order is descending date)

  • Retrieve posts with a different type than “post”

  • Four Views to display the blog page, The Post detail, The Posts filtered by category and the Posts filtered by tag; All of this with the search by keyword option

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements.txt
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python manage.py test

Credits

Tools used in rendering this package:

History

0.1.0 (2016-09-02)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-wordpress-api-0.2.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

django_wordpress_api-0.2.0-py2.py3-none-any.whl (13.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-wordpress-api-0.2.0.tar.gz.

File metadata

  • Download URL: django-wordpress-api-0.2.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for django-wordpress-api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bb822d052c2d120d4a28994122b03a8f0b5335c171cd97934d6c2e28df359f8f
MD5 607d24b8c47d908dc8f451c42e117b78
BLAKE2b-256 2766a428d10ad53fa5dca74a74364624e084583b96b559527840657c6344f49b

See more details on using hashes here.

File details

Details for the file django_wordpress_api-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_wordpress_api-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for django_wordpress_api-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 04a6d80fbe07d7185f8cdecefbc35bcec972443cc6a8ed9ae81be498b34feb3e
MD5 afcb37849900994f97fe8ceaeeacbf82
BLAKE2b-256 cd6194ad02342474368e6264e6ec6be89654f41f16edd7f545beebafb7303d42

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page