Skip to main content

haip.config

License Build Status

haip.confluence is a simple module to communicate with confluence REST API.

Features

  • getBody: get confluence page by id
  • setBody: set confluence page content by id
  • getChildren: get children of a page --> (version, title, body)

Getting Started

Installing

pip install haip-confluence

or from source:

git clone https://github.com/haipdev/confluence.git

Example

config-files

/path-to-my-config-dir/confluence.yml

confluence:
    url: https://myconfluence.domain.com/rest/api/latest
    username: user
    password: pass
    timeout: 10

python implementation

import haip.config as config
import haip.confluence as confluence

config.load('/path-to-my-config-dir', 'dev')
content = await confluence.getBody(12345)
page = await confluence.setBody(12345, 'hello world')
children = await confluence.getChildren(12344)

Running the tests

Tests are written using pytest and located in the "tests" directory.

pytest tests

Contributing

Feel free to use and enhance this project. Pull requests are welcome.

Authors

  • Reinhard Hainz - Initial work - haipdev

License

This project is licensed under the MIT License - see the LICENSE file for details

Dependencies

Metadata

Release files for haip-confluence 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haip-confluence 0.1.1
File Size Uploaded
haip-confluence-0.1.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for haip-confluence 0.1.1
File Interpreter ABI Platform
haip_confluence-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / haip-confluence-0.1.1.tar.gz

Download URL haip-confluence-0.1.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
293e321891cd2c847779afa090ae7269818ebe9821448000a9b0f0170a1561e4
BLAKE2b-256 checksum
How to use checksums
88e875db62d39e9ab537983a7e18fa1e3367ac703c5799c886df9fddf35ad5a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

Release files / haip_confluence-0.1.1-py3-none-any.whl

Download URL haip_confluence-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a77fd1526bdb79032804b82229cba8b26c84c847dc117aa20114469540ab7f60
BLAKE2b-256 checksum
How to use checksums
b4865144e59fecd0dd6135ed2a27d4708067e4128c12c6a44c44d4ac87c0f2ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page