In T171960 we're creating a script that adds page numbers and the table of contents to a PDF file. The script will be written in Python. Once the script is ready, how should we expose it be used by other services/extensions? The goal is to take a PDF generated by ElectronRenderService and post-process it and provide the output to the requesting service.
Should we:
- Use a WSGI server compliant python web framework such as Falcon or Flask?; or
- Should we just create a package and make it available via Pypi; or
- Bundle it as a dependency of Extension:Collection and execute the scripts from PHP?
Outcomes
- Decide on how to expose the script above.
- We document how we exposed the library for future projects.