confluencer.tools package

Confluence supporting tools.

Classes and functions in this package help you to work with Confluence entities, and provide higher level abstractions to ease API usage.

Submodules

confluencer.tools.content module

Tools to discover and modify content.

class confluencer.tools.content.ConfluencePage(cf, url, markup='storage', expand=None)[source]

Bases: object

A page that holds enough state so it can be modified.

DIFF_COLS = {'+': 'green', '-': 'red', '@': 'yellow'}
dump_diff(changed)[source]

Dump a diff to terminal between changed and stored body.

etree()[source]

Parse the page’s body into an ElementTree.

json

The full JSON response data.

page_id

The numeric page ID.

space_key

The space this page belongs to.

tidy(log=None)[source]

Return a tidy copy of this page’s body.

title

The page’s title.

update(body=None, minor=True)[source]

Update a page’s content.

version

The page’s version number in history.