Skip to main content

A Python library for Atlassian Confluence REST API

Project description

confluencepy

GitHub Workflow Status PyPI

A Python library for Atlassian Confluence REST API

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

Uploaded Source

Built Distribution

conflupy-1.0.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conflupy-1.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for conflupy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b4ba5c9e035041ea5b217d0487b632606bf4135ac06ca41f7ecbb8419040e6eb
MD5 1241b4b7660b5882b73c8dda1fe4b8f6
BLAKE2b-256 8eb739adaea08d468543c265badfc8ca089a1e2a22d51d7acd068e5213388677

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: conflupy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31942e6f5581a782e9e7467017a7f7c0cb823c9f0858c94c1af2b1cf66a3edd5
MD5 6a1bef96161169f73d6505e51fdf904f
BLAKE2b-256 a4de90615a59d544307b8adc45b9a882e489d18f875ad839e76cdd531939a895

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