Skip to content

davidvuong/pynodebb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8f76ee5 · Nov 10, 2015

History

94 Commits
Nov 5, 2015
Nov 10, 2015
Nov 10, 2015
Sep 27, 2015
Sep 17, 2015
Oct 12, 2015
Sep 17, 2015
Sep 18, 2015
Sep 17, 2015
Nov 6, 2015
Nov 5, 2015
Nov 4, 2015
Nov 4, 2015

Repository files navigation

Welcome to pyNodeBB

Build Status Coverage Status Code Climate PyPI version Documentation Status

pyNodeBB is a Python client for the NodeBB API (still under development).

Install

pip install pynodebb

Getting started

from __future__ import print_function
from pynodebb import Client

client = Client('http://localhost:4567', 'master_token')
client.configure(**{
  'page_size': 20
})

# Retrieves a NodeBB user given their `uid`.
status_code, user = client.users.get(uid)
print(user['username'])

# Updates the retrieved user's `fullname`.
client.users.update(user['uid'], **{'fullname': 'David Vuong'})

# Iterate over all topics in category given the `cid`.
status_code, topics = client.topics.list(1):
for topic in topics:
    print(topic['title'])

Documentation

Documentation is available at http://pynodebb.readthedocs.org/en/latest/.

License

MIT

About

PyNodeBB is a Python client for the NodeBB API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages