Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davidvuong/pynodebb

PyNodeBB is a Python client for the NodeBB API
https://github.com/davidvuong/pynodebb

Last synced: 23 days ago
JSON representation

PyNodeBB is a Python client for the NodeBB API

Awesome Lists containing this project

README

        

# Welcome to pyNodeBB

[![Build Status](https://travis-ci.org/davidvuong/pynodebb.svg?branch=master)](https://travis-ci.org/davidvuong/pynodebb)
[![Coverage Status](https://coveralls.io/repos/davidvuong/pynodebb/badge.svg?branch=master&service=github)](https://coveralls.io/github/davidvuong/pynodebb?branch=master)
[![Code Climate](https://codeclimate.com/github/davidvuong/pynodebb/badges/gpa.svg)](https://codeclimate.com/github/davidvuong/pynodebb)
[![PyPI version](https://badge.fury.io/py/pynodebb.svg)](http://badge.fury.io/py/pynodebb)
[![Documentation Status](https://readthedocs.org/projects/pynodebb/badge/?version=latest)](https://readthedocs.org/projects/pynodebb/?badge=latest)

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

### Install

```
pip install pynodebb
```

### Getting started

```python
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](https://github.com/davidvuong/pynodebb/blob/master/LICENSE.md)