A Python library for Atlassian Confluence REST API
Project description
conflupy
A Python library for Atlassian Confluence REST API
Version with 1.0.x ~ 1.2.x are for distribution tests and have bugs. Please use conflupy >= 1.3.0
Requirements
- Python >= 3.9
- Atlassian Confluence (REST API docs)
- This library is tested in
Atlassian Confluence 7.19.0
- Confluence REST API examples
- Confluence Storage Format
- This library is tested in
Installation
pip install conflupy
Usage
from confluence import Confluence
# Initialize Confluence
confluence = Confluence(base_url: 'https://confluence.example.com', account: (USER_ID, USER_PW))
# Get Pages
pages = confluence.get_pages(space_key='TEST')
print('Pages :', pages)
# Get Specific Page
page = confluence.get_content(content_id='1349141')
print('Page :', page)
# Create a new Page
body = '<h1>Hello</h1><br /><p>This is a page created with REST API</p>'
new_page = create_page(space_key='TEST', title='Test Page', body=body)
print('New Page :', new_page)
Build & Deploy (PyPi)
# Build
pip install build
python -m build
# whl file & archived src(tar.gz) file will be generated.
# Deploy
pip install twine
python -m twine upload dist/*
# package will be uploaded to PyPi registry
# https://pypi.org/project/conflupy
However, this project use GitHub Actions workflow to automatically publish the package to PyPI when a tag pushed.
To Do
- Unittest
Authors
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
conflupy-1.3.0.tar.gz
(8.4 kB
view details)
Built Distribution
conflupy-1.3.0-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file conflupy-1.3.0.tar.gz
.
File metadata
- Download URL: conflupy-1.3.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e20afc7c17a3dddb1e1a4a9443ccb59318c3cb0c587446b26517defb88ecbc12 |
|
MD5 | ac7d03212cf5e3aacb5ca0dde79828d7 |
|
BLAKE2b-256 | 7ff8d08f4fdefd23236d754595250391b432d9458f2a289f9a1802268f627ae8 |
Provenance
File details
Details for the file conflupy-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: conflupy-1.3.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48defbfe1602dedfa165c6d8d6867fe0de5508c8bc147b20138ffb49856d4155 |
|
MD5 | 3bb40c4f25e561b16f9d48d76aae966e |
|
BLAKE2b-256 | fdafeec5b822710450a6ca316f1549a90c8b32e4958281795468fc7b119f17cd |