Skip to main content

A Python library for Atlassian Confluence REST API

Project description

conflupy

GitHub Workflow Status PyPI

A Python library for Atlassian Confluence REST API

Version 1.0.0, 1.1.0 is for distribution test and has bugs. Please use conflupy >= 1.2.0

Requirements

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.2.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

conflupy-1.2.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file conflupy-1.2.0.tar.gz.

File metadata

  • Download URL: conflupy-1.2.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

Hashes for conflupy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 203bca488c1a85b55a34e66ffff720a9593e79fece41fb33d49e49d7b209ec59
MD5 a115728afcbaf57c177e2fc64895ef2f
BLAKE2b-256 76ff7ae83f5aa9ef419d5f144956a3abcd3cda0ccf3b99e9a52322dbd3d2a29a

See more details on using hashes here.

Provenance

File details

Details for the file conflupy-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: conflupy-1.2.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

Hashes for conflupy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 506efdb31a6e27faff2a5d4a2fc0af0a22e174bf105520799d09880fb2a70142
MD5 cb01cd8675d68000c97960986c60e01f
BLAKE2b-256 856a4cdd91f1887d1d02c3702727e274982da4387eb7ce7e8b7eedea2ff1032a

See more details on using hashes here.

Provenance

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