How to use it in a Python script

confluence.md allows you to push any markdown file to Confluence. You can create a new page (under given parent) or update an existing one.

 Instructions

It's simple to embed confluence.md in your Python script. See this example:

from md2cf.utils.confluencemd import ConfluenceMD conf_md = ConfluenceMD(username=user, md_file=md_file, token=token, url=url, convert_jira=convert_jira) # create new page under parent_id new_page_id = conf_md.create_new("parent_id", "title") # update existing page with given page_id page_id = conf_md.update_existing("page_id")

 Related articles