Python HTML

Open-source Python projects categorized as HTML

Top 23 Python HTML Projects

  • pyscript

    Try PyScript: https://pyscript.com Examples: https://tinyurl.com/pyscript-examples Community: https://discord.gg/HxvBtukrg2

    Project mention: RustPython | news.ycombinator.com | 2024-02-07

    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

  • requests-html

    Pythonic HTML Parsing for Humans™

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

  • WeasyPrint

    The awesome document factory

    Project mention: Launch HN: Onedoc (YC W24) – A better way to create PDFs | news.ycombinator.com | 2024-03-11

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

  • grip

    Preview GitHub README.md files locally before committing them.

    Project mention: Show HN: Offline Renderer for GitHub flavoured Markdown | news.ycombinator.com | 2024-04-02

    A popular implementation of the idea written in Python:

    https://github.com/joeyespo/grip

  • pywebview

    Build GUI for your Python program with JavaScript, HTML, and CSS

    Project mention: Show HN: Pywebview 5 | news.ycombinator.com | 2024-03-13

    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

  • toapi

    Every web site provides APIs.

  • pandas-datareader

    Extract data from a wide range of Internet sources into a pandas DataFrame.

    Project mention: Seeking recommendations for forex economic data API | /r/algotrading | 2023-05-03

    I've looked at https://github.com/pydata/pandas-datareader and it looks good, does anyone have experience?

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

    Project mention: Ludic: New framework for Python with seamless Htmx support | news.ycombinator.com | 2024-03-21

    It 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

  • WTForms

    A flexible forms validation and rendering library for Python.

  • flask-wtf

    Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.

  • mlscraper

    🤖 Scrape data from HTML websites automatically by just providing examples

    Project mention: What are the best tools for web scraping and analysis of natural language to populate a dataset? | /r/datasets | 2023-04-12

    See if something like autoscraper or mlscraper suits your needs.

  • portray

    Your Project with Great Documentation.

  • pypandoc

    Thin wrapper for "pandoc" (MIT)

    Project mention: Web Scraping in Python – The Complete Guide | news.ycombinator.com | 2024-02-20

    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

  • hacker-news-digest

    :newspaper: Let ChatGPT Summarize Hacker News for You

    Project mention: What's the fun in writing on the internet anymore? | news.ycombinator.com | 2024-02-17

    https://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."

  • MarkupSafe

    Safely add untrusted strings to HTML/XML markup.

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

  • djLint

    ✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang

    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

  • doorstop

    Requirements management using version control.

  • Neutron

    Create modern cross-platform apps in Python using HTML and CSS (by IanTerzo)

  • obsidian-html

    Python code to convert Obsidian notes to proper markdown and optionally to create an html site too. (by obsidian-html)

    Project mention: Obsidian 1.3.6 adds deep linking to PDF selections and annotations (available for early access on desktop) | /r/ObsidianMD | 2023-06-27

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

  • 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: Ask HN: What's your "it's not stupid if it works" story? | news.ycombinator.com | 2023-12-22

    It 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

  • SaaSHub

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

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). The latest post mention was on 2024-04-02.

Python HTML related posts

Index

What are some of the best open-source HTML projects in Python? This list will help you:

Project Stars
1 pyscript 17,412
2 requests-html 13,567
3 WeasyPrint 6,594
4 grip 6,340
5 pywebview 4,268
6 toapi 3,462
7 pandas-datareader 2,810
8 best-of-web-python 2,149
9 pretix 1,661
10 dominate 1,637
11 WTForms 1,457
12 flask-wtf 1,429
13 mlscraper 1,216
14 portray 859
15 pypandoc 790
16 hacker-news-digest 641
17 MarkupSafe 593
18 pytablewriter 593
19 djLint 587
20 doorstop 453
21 Neutron 424
22 obsidian-html 320
23 html2image 309
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com