A Python wrapper of the Discourse API
Project description
discourse
A Python wrapper of the Discourse API
This package allows Python developers to write software that makes use of the Discourse API. Functions available in the API are mirrored in this package as closely as possible, translating JSON responses to Python objects. You can find the current documentation for the Discourse API here:
Installing
pip install discourse
Quick Start
import discourse
client = discourse.Client(
host='http://127.0.0.1:3000/',
api_username='discourse1',
api_key='714552c6148e1617aeab526d0606184b94a80ec048fc09894ff1a72b740c5f19',
)
latest = client.get_latest_topics('default')
for topic in latest:
print(topic.title)
Full documentation for this package is not yet available. One of the milestones is complete documentation coverage, including currently undocumented portions of the Discourse API. For now, I encourage you to read the source code and use the Discourse API docs, it should be fairly straightforward.
Pull requests welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for discourse-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe7c5c002f89f283ca41237b62bdaba0a3be45fa78c0c68dc446b2eb0eaa0d2a |
|
MD5 | 2fececfeec928f4dfc423af74f30991e |
|
BLAKE2b-256 | a23d725825efa727479ef54aa3a018394589b63b631ee2636a59fa6ae885d02d |