@wiki Client for Python
Python
Permalink
Failed to load latest commit information.
atwiki fix CSS selector not working on Python 2.6 Aug 10, 2016
.coveragerc add code Aug 9, 2016
.gitignore add code Aug 9, 2016
.travis.yml add code Aug 9, 2016
LICENSE add code Aug 9, 2016
README.rst update README for package release Aug 10, 2016
setup.py update audiences Aug 10, 2016
tox.ini add code Aug 9, 2016

README.rst

Travis Coveralls PyPi

atwiki-python

atwiki-python is a client library to access @wiki from Python.

This package also includes atwiki-dump command to dump source from @wiki wiki site.

Install

pip install atwiki-python

Requirements

  • Python 2.6, 2.7, 3.3, 3.4 or 3.5.

Usage

atwiki-dump Tool

Dump source and page name for each page in the wiki site.

atwiki-dump -o /tmp/dump_dir http://www65.atwiki.jp/python-client/

Python API

Python API provides access to @wiki features.

from atwiki import *

api = AtWikiAPI(AtWikiURI('http://www65.atwiki.jp/python-client/'))

# Show list of tags.
for page in api.get_tags():
  print(page['name'])

# Show list of pages.
for page in api.get_list():
  print(page['name'])

# Show list of pages tagged with 'tag01'.
for page in api.get_list('tag01'):
  print(page['name'])

# Show source of page ID 14.
print(api.get_source(14))

# Show results of wiki search.
for result in api.search('test'):
  print(result)

License

MIT License