Atwiki Client Library
Project description
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
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
atwiki-python-0.0.4.tar.gz
(7.8 kB
view details)
File details
Details for the file atwiki-python-0.0.4.tar.gz
.
File metadata
- Download URL: atwiki-python-0.0.4.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f9d9b9432bc9bd229d848bcd72decda2c8445968aaca86df06e19d7ebb4662 |
|
MD5 | 943c0add6380313103fdc778186c71f3 |
|
BLAKE2b-256 | 5633460338e1f14d5952245534235ba0618b8288919505f4914b09ff6c53ef81 |