[Go to site: main page, start]

Python CSS

Open-source Python projects categorized as CSS

Top 23 Python CSS Projects

  1. WeasyPrint

    The awesome document factory

    Project mention: Render an HTML Table to PNG in Python (5 Ways, 2026) | dev.to | 2026-06-08

    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.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. pyquery

    A jquery-like library for python

  4. django-tailwind

    Django + Tailwind CSS = 💚

  5. parsel

    Parsel lets you extract data from XML/HTML documents using XPath or CSS selectors

  6. plutoprint

    A Python Library for Generating PDFs and Images from HTML, powered by PlutoBook

    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.

  7. needle

    Automated tests for your CSS. (by python-needle)

  8. 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.

    Project mention: Render an HTML Table to PNG in Python (5 Ways, 2026) | dev.to | 2026-06-08

    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.

  9. md2pdf

    Markdown to PDF with styles

  10. m.css

    A no-nonsense, no-JavaScript CSS framework, site and documentation theme for content-oriented websites

  11. Django_blog

    A blog application made with Django and bootstrap (by TheAbhijeet)

  12. 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 :)

  13. Spotify-Readme

    A dynamic, customizable, and real-time Spotify now-playing widget that seamlessly integrates with your website or GitHub markdown files!

  14. banking-system

    A Banking System Concept Created Using Django Python Web Framework and Tailwind CSS

  15. soupsieve

    A modern CSS selector implementation for BeautifulSoup

  16. bitchat-python

    A Python implementation of the BitChat decentralized, peer-to-peer, encrypted chat application over BLE.

  17. flask-calendar

    Simple Python & Flask web-calendar

  18. TkinterWeb

    HTML/CSS widgets for Tkinter

  19. Watcher

    Minimal open source Screen-Time Tracker for Linux (by Waishnav)

  20. export-archive-reddit-saved

    Script to download Reddit saved posts. Website here:

  21. webcolors

    A library for working with HTML/CSS color formats in Python.

  22. pycaps

    Create beautiful, animated video subtitles with Python and CSS.

    Project mention: Adding Animated Subtitles to Videos with Python | dev.to | 2025-06-29

    Split the transcription into shorter segments using LimitByCharsSplitter (see more details about the structure in the docs).

  23. markdown-css

    A tool convert css style into markdown inline style (by wecatch)

  24. pure-python-web-development

    Avoid the CSS/JS/HTML soup - develop web apps entirely in Python

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python CSS discussion

Log in or Post with

Python CSS related posts

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com