Install & Compatibility
Where this runs
tested against v2.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 37.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 5.7s · import 0.000s · 38MB
36MB installed
● package 36MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
md2cf
✓ import md2cf
md2cf is a CLI tool, not a library. Use via command line.
Convert a Markdown file to Confluence using environment variables for authentication.
import os
from md2cf import convert
# Requires environment variables or config file
result = convert(
path='README.md',
space=os.environ.get('CONFLUENCE_SPACE', ''),
parent=os.environ.get('CONFLUENCE_PARENT', ''),
url=os.environ.get('CONFLUENCE_URL', ''),
username=os.environ.get('CONFLUENCE_USERNAME', ''),
token=os.environ.get('CONFLUENCE_TOKEN', '')
)
print(result)
md2cf --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'md2cf'
md2cf is a CLI tool and its Python package might not expose a module named 'md2cf' directly. Use the command-line interface or install from source if you need the module.
fixRun `md2cf --help` from the terminal. If you need programmatic access, use subprocess to call the CLI.
AttributeError: module 'md2cf' has no attribute 'convert'
The Python module does not expose a public API; md2cf is primarily a CLI tool.
fixUse the command line: `md2cf --space SPACE --url URL ... README.md`
Error: unrecognized arguments: --bearer-token
The `--bearer-token` flag was renamed to `--token` in version 2.0.0.
fixReplace `--bearer-token` with `--token`.
Upgrade
Version history
2.3.0latest on PyPI · released Aug 6, 2023
Audit
Dependencies
No dependency data recorded yet.