SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Python CSS Projects
-
WeasyPrint comes up in every "HTML to image" search, so it's worth being precise: it's an excellent, actively-maintained pure-Python engine — but it renders to PDF only (PNG export was removed in v53) and runs no JavaScript. If your table is static HTML/CSS and you actually want a PDF, WeasyPrint is a great, dependency-light choice and you don't need any of the above. If you need a PNG, or your table/chart is built by JavaScript, it can't do the job without a second PDF→PNG conversion step.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
Project mention: Show HN: PlutoPrint – Generate Beautiful PDFs and PNGs from HTML with Python | news.ycombinator.com | 2025-08-20
PlutoPrint supports a large subset of CSS, including flexbox for most common layouts, but it’s not a full browser engine, so there are some limitations. You can see a more complete list of supported features here: https://github.com/plutoprint/plutobook/blob/main/FEATURES.m.... We’re also actively tracking bugs and improvements on the GitHub repo: https://github.com/plutoprint/plutoprint/issues, and contributions or test cases are always appreciated to help expand coverage.
-
-
html2image
A package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.
html2image is a thin wrapper around the headless mode of a Chrome/Chromium/Edge that is already installed on the machine — it doesn't bundle one. Maintained (latest 2.0.7, May 2025), MIT, and genuinely the simplest local route when a browser is already present.
-
-
m.css
A no-nonsense, no-JavaScript CSS framework, site and documentation theme for content-oriented websites
-
-
FuncToWeb
Type hints → Web UI. Turn Python functions into web apps — standalone or mounted inside yours.
Project mention: Show HN: Func-to-web – Turn Python functions into web UIs with zero boilerplate | news.ycombinator.com | 2025-10-20- *Multiple functions*: Auto-generates index page
Not trying to replace full web frameworks, but for internal tools and quick utilities, this approach feels superior to writing HTML forms.
454 unit tests. Used daily for internal tools and rapid prototyping. Got 150 stars in the first week.
GitHub: https://github.com/offerrall/FuncToWeb
Sharing here in case others find it interesting too :)
-
Spotify-Readme
A dynamic, customizable, and real-time Spotify now-playing widget that seamlessly integrates with your website or GitHub markdown files!
-
-
-
bitchat-python
A Python implementation of the BitChat decentralized, peer-to-peer, encrypted chat application over BLE.
-
-
-
-
-
-
Split the transcription into shorter segments using LimitByCharsSplitter (see more details about the structure in the docs).
-
-
Python CSS discussion
Python CSS related posts
-
Render an HTML Table to PNG in Python (5 Ways, 2026)
-
Weasyprint: Web-Based Document Design
-
Coding in Style
-
Sharp Bilinear Filters: Big Clean Pixels for Pixel Art
-
WeasyPrint
-
HTML's Best Kept Secret: The Output Tag
-
Feedmaker: URL and CSS selectors = RSS feed
-
A note from our sponsor - SaaSHub
www.saashub.com | 18 Jun 2026
Index
What are some of the best open-source CSS projects in Python? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | WeasyPrint | 9,291 |
| 2 | pyquery | 2,380 |
| 3 | django-tailwind | 1,744 |
| 4 | parsel | 1,333 |
| 5 | plutoprint | 1,154 |
| 6 | needle | 596 |
| 7 | html2image | 454 |
| 8 | md2pdf | 431 |
| 9 | m.css | 428 |
| 10 | Django_blog | 416 |
| 11 | FuncToWeb | 413 |
| 12 | Spotify-Readme | 389 |
| 13 | banking-system | 344 |
| 14 | soupsieve | 265 |
| 15 | bitchat-python | 247 |
| 16 | flask-calendar | 229 |
| 17 | TkinterWeb | 227 |
| 18 | Watcher | 216 |
| 19 | export-archive-reddit-saved | 208 |
| 20 | webcolors | 175 |
| 21 | pycaps | 162 |
| 22 | markdown-css | 149 |
| 23 | pure-python-web-development | 101 |