{"repo":"Donnype/pydfy","free":true,"listed":false,"github":"https://github.com/Donnype/pydfy","clone":"git clone https://github.com/Donnype/pydfy.git","description":"Turn DataFrames Into PDF Reports","language":"Python","stars":64,"topics":["data","datavisualization","pdf-generation","pdf-reporting","python","data-analysis","data-reporting","data-visualization","pdf"],"license":"MIT","category":"media-processing","readme_excerpt":"Pydfy: Turn DataFrames into PDF Reports Pydfy makes creating beautiful PDF reports in Python as simple as you hope it to be. In practice, this is often not the case as: - Not the whole team knows LaTeX - The support for this in BI tooling is lacking - Webpages are usually not tuned for PDF exports - PDF builders are too complex to get something out the door by the end of the week Hence, pydfy boils it down to the data and some text, with just enough CSS to beat matplotlib in terms of design. Fortunately, that bar was not high. Installation First, make sure tailwindcss is in your PATH , which for Linux means: Check https://github.com/tailwindlabs/tailwindcss/releases/latest to find the matching binary for your system. Also make sure to install Chromium: Now run: And you should be good to go. Optionally install the extra dependencies as well: Usage Example The main entrypoint is defined, in this context, by the pf.PDF function, which accepts the rows of the PDF as arguments and wraps a pf. PDF model for ease of use. A row here can either be a single component or an iterable of components, as shown in the example above. Overview of Components Output location By default, this renders a PDF file called out.pdf in the current working directory. To control the location of the build files, you can do: Custom Components You can create custom components with custom html templates as follows: Where the contents of two numbers.html is: To see a working example, check out examples/custom ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Donnype","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Donnype/pydfy/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."}