You can expose this package directly to nbconvert (so you could use jupyter nbconvert --to confluence your.ipynb) using entrypoints:
For example (from the docs):
setup(
...
entry_points = {
'nbconvert.exporters': [
'simple = mymodule:SimpleExporter',
'detail = mymodule:DetailExporter',
],
}
)