Skip to main content

Atwiki Client Library

Project description

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.7, 3.3, 3.4, 3.5 or 3.6.

Usage

atwiki-dump Tool

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

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

Python API

Python API provides access to @wiki features.

from atwiki import *

api = AtWikiAPI(AtWikiURI('https://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

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

atwiki-python-0.0.3.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file atwiki-python-0.0.3.tar.gz.

File metadata

File hashes

Hashes for atwiki-python-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f781dc1d5ce02ec68a9c34d4e9aea070dccf525b80b982888c6b6f268cd63bf0
MD5 60332c4899c592cd86d496e3aadc4853
BLAKE2b-256 b2875c5560d49fe9b68dd84a76c48f51a79ff2c39e0e996680f9ed28f9b05c9d

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