SaaSHub helps you find the best software and product alternatives Learn more β
Top 23 Python HTML Projects
-
pyscript
Try PyScript: https://pyscript.com Examples: https://tinyurl.com/pyscript-examples Community: https://discord.gg/HxvBtukrg2
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
best-of-web-python
π A ranked list of awesome python libraries for web development. Updated weekly.
-
pretix
Ticket shop application for conferences, festivals, concerts, tech events, shows, exhibitions, workshops, barcamps, etc.
-
dominate
Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
-
flask-wtf
Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.
-
pytablewriter
pytablewriter is a Python library to write a table in various formats: AsciiDoc / CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.
-
obsidian-html
Python code to convert Obsidian notes to proper markdown and optionally to create an html site too. (by obsidian-html)
-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
You are right for the most part. I attended a talk about pyscript[1] (runs python in the browser using wasm which is similar) and there is a 2x performance hit.
[1] https://pyscript.net
Project mention: Launch HN: Onedoc (YC W24) β A better way to create PDFs | news.ycombinator.com | 2024-03-11Is there a reason you didn't consider something like Weasyprint?
https://weasyprint.org
I've gone through a number of systems to convert CV's, business cards, and other docs and it hasn't let me down yet.
Project mention: Show HN: Offline Renderer for GitHub flavoured Markdown | news.ycombinator.com | 2024-04-02A popular implementation of the idea written in Python:
https://github.com/joeyespo/grip
In case anyone else is unfamiliar:
> pywebview uses native GUI for creating a web component window: WinForms on Windows, Cocoa on macOS, QT or GTK on Linux and Kivy for Android.
https://github.com/r0x0r/pywebview
I've looked at https://github.com/pydata/pandas-datareader and it looks good, does anyone have experience?
Project mention: Ludic: New framework for Python with seamless Htmx support | news.ycombinator.com | 2024-03-21It feels weird at the beginning, but after a bit of practice I found it pretty nice to write HTML in Python.
Here is an example of a HTML page layout written with the DOMinate [1] library for example, in a "JSX-like" way:
https://github.com/olivierphi/zakuchess/blob/main/src/apps/w...
It may hurt your eyes at first sight, for sure... But similarly to technologies like Tailwind CSS, it's mostly a matter of getting used to it - and after a while it end ups feeling very natural to use :-)
1: https://github.com/Knio/dominate#readme
I recently used [0] Playwright for Python and [1] pypandoc to build a scraper that fetches a webpage and turns the content into sane markdown so that it can be passed into an AI coding chat [2].
They are both very gentle dependencies to add to a project. Both packages contain built in or scriptable methods to install their underlying platform-specific binary dependencies. This means you don't need to ask end users to use some complex, platform-specific package manager to install playwright and pandoc.
Playwright let's you scrape pages that rely on js. Pandoc is great at turning HTML into sensible markdown. Below is an excerpt of the openai pricing docs [3] that have been scraped to markdown [4] in this manner.
[0] https://playwright.dev/python/docs/intro
[1] https://github.com/JessicaTegner/pypandoc
[2] https://github.com/paul-gauthier/aider
[3] https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turb...
[4] https://gist.githubusercontent.com/paul-gauthier/95a1434a28d...
## GPT-4 and GPT-4 Turbo
Project mention: What's the fun in writing on the internet anymore? | news.ycombinator.com | 2024-02-17https://hackernews.betacat.io/ here they use ChatGTP so summarize HN frontpage stories, and it says "Article discusses automated plagiarism and the diminishing value of authorship online. It compares today's internet to ancient texts, where authorship was less defined."
Project mention: Django Code Formatting and Linting Made Easy: A Step-by-Step Pre-commit Hook Tutorial | dev.to | 2023-10-04- repo: https://github.com/Riverside-Healthcare/djLint rev: v1.32.0 hooks: - id: djlint-reformat-django - id: djlint-django
Project mention: Obsidian 1.3.6 adds deep linking to PDF selections and annotations (available for early access on desktop) | /r/ObsidianMD | 2023-06-27For me I am fine with exported bibliographies because zotero('s Better BibTeX-plugin) auto-exports to a bibtex file for me anyways, which is more consistent for myself and necessary anyways for my work with RMarkdown - Obsidian is only used for writing, I then convert obsidian-markdown to standard markdown via ObsidianHTML, and then convert to normal people's file formats via RMarkdown.
Project mention: Ask HN: What's your "it's not stupid if it works" story? | news.ycombinator.com | 2023-12-22It uses the headless version of Chrome/Chromium or Edge behind the scenes.
It made me realize that even big projects have features that just don't work. Edge headless wouldn't let you take screenshots up until recently, and I still encountered issues with Firefox last time I tried to add support for it in the package. I also stumbled upon weird behaviors of Chrome CDP when trying to implement an alternative to using the headless mode, and these issues eventually fixed themselves after some Chrome updates.
[1] https://github.com/vgalin/html2image
Python HTML related posts
- Ludic: New framework for Python with seamless Htmx support
- Show HN: Pywebview 5
- Launch HN: Onedoc (YC W24) β A better way to create PDFs
- Web Scraping in Python β The Complete Guide
- Show HN: A new open-source library to design PDF using React
- 1.5M PDFs in 25 Minutes
- I don't always use LaTeX, but when I do, I compile to HTML (2013)
-
A note from our sponsor - SaaSHub
www.saashub.com | 25 Apr 2024
Index
What are some of the best open-source HTML projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | pyscript | 17,435 |
2 | requests-html | 13,575 |
3 | WeasyPrint | 6,635 |
4 | grip | 6,351 |
5 | pywebview | 4,302 |
6 | toapi | 3,462 |
7 | pandas-datareader | 2,819 |
8 | best-of-web-python | 2,163 |
9 | pretix | 1,675 |
10 | dominate | 1,640 |
11 | WTForms | 1,462 |
12 | flask-wtf | 1,435 |
13 | mlscraper | 1,225 |
14 | portray | 859 |
15 | pypandoc | 799 |
16 | hacker-news-digest | 645 |
17 | MarkupSafe | 598 |
18 | djLint | 598 |
19 | pytablewriter | 593 |
20 | doorstop | 454 |
21 | Neutron | 425 |
22 | obsidian-html | 322 |
23 | html2image | 318 |
Sponsored