{"repo":"ppatrzyk/merkury","free":true,"listed":false,"github":"https://github.com/ppatrzyk/merkury","clone":"git clone https://github.com/ppatrzyk/merkury.git","description":"Generate HTML reports from Python scripts","language":"Python","stars":10,"topics":["analytics","data-science","python","reporting","static-site","data-analysis","data-visualization"],"license":"MIT","category":"analytics","readme_excerpt":"Merkury Merkury is a command line utility to run Python scripts and render static HTML or Markdown reports with code and produced output. It uses standard .py files as input - any valid script that can be run from command line, can also be turned into a report. - Example Python report - Documentation It's a lightweight alternative to tools such as jupyter and papermill. While these have their advantages (and problems), when everything you need is to generate a report from a data analysis script, they might be an overkill. This project is meant to address that scenario. Non-goals of the project: - interactive code execution in the browser (see jupyter), - generating data apps that require backend server (see e.g. dash), - converting any input into static HTML (see e.g. nikola). Installation Usage PDF reports It is also possible to obtain PDF reports with usage of additional conversion tools (e.g., pandoc). For example: Note, in case your report file contains raw html chunks (such as plots or images), you will need use wkhtmltopdf pdf engine. Formatting and plots In produced report, code will be broken into sections. Each section ends with a statement printing some output (e.g., print() ). You can give titles to each section by placing magic comment #TITLE after line that produces output. Python When it comes to report formatting, there are 3 types of outputs in a Python script: Standard block (default), HTML, or Markdown. By default merkury treats any output as standard code p","default_branch":null,"files":null,"tree":[],"storefront":"/r/ppatrzyk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ppatrzyk/merkury/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}