frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

PyFrontKit – Create web pages from Python with minimal code

3•Edybrown•1h ago
I built PyFrontKit, a Python library to generate full HTML and CSS documents from Python. The goal is simple: focus on design, avoid repetitive tasks, and keep control, while writing minimal code. PyFrontKit does not replace HTML or CSS; it just makes the workflow faster and clearer.

Minimal example:

from pyfrontkit import div, HtmlDoc

# Create a full HTML document doc = HtmlDoc(title="Test Page")

# Create a simple div block div(ctn_p="Hello World").form("120px", "120px", "10px", "red", "white")

# Generate HTML and CSS files doc.create_document()

> The library automatically handles document structure (<!DOCTYPE html> to </body>), links CSS, and generates a class for the block.

Resulting HTML:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Test Page</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="block-1"> <p>Hello World</p> </div> </body> </html>

CSS snippet:

.block-1 { width: 120px; height: 120px; background-color: red; color: white; border-radius: 10px; }

Links: GitHub: https://github.com/Edybrown/Pyfrontkit PyPI: https://pypi.org/project/pyfrontkit/

Notes on porting the Wild linker to Illumos

https://roci.co.za/posts/notes-on-porting-wild/
1•daniel-levin•2m ago•0 comments

Show HN: An Agent Skill for analyzing FEC campaign finance filings

https://github.com/hodgesmr/agent-fecfile
1•m-hodges•4m ago•0 comments

YouTube Will Stop Submitting Data to U.S. Billboard Charts in 2026

https://variety.com/2025/digital/news/youtube-will-stop-submitting-data-to-billboard-charts-12366...
1•misterspaceman•5m ago•0 comments

How VW's Travel Assist System Works (2022) [pdf]

https://vwts.ru/pps/pps_728-travel-assist-eng.pdf
1•tangelogica•6m ago•0 comments

Iran Announces the Salman Rushdie Fatwa Video Game (2012)

https://newsfeed.time.com/2012/06/28/iran-announces-the-salman-rushdie-fatwa-video-game/
1•thomassmith65•8m ago•0 comments

The Exhilirating Movement from Treatment to Cures for Autoimmune Diseases

https://erictopol.substack.com/p/the-exhilirating-movement-from-treatment
1•herbertl•8m ago•0 comments

Dumbphone journey – eight month update

https://blog.frog.equipment/dumbphone-journey-eight-month-update
1•todsacerdoti•9m ago•0 comments

Show HN: postgres-graph-rag – High-precision Graph RAG native to PostgreSQL

https://github.com/h4gen/postgres-graph-rag
1•h4gen•10m ago•0 comments

SpaceX's historic rocket landing that changed launch forever

https://arstechnica.com/space/2025/12/ten-years-ago-spacex-turned-tragedy-into-triumph-with-a-his...
1•rbanffy•12m ago•0 comments

2-year project recovers 144 previously undumped Sega Genesis ROMs from the 90s

https://www.tomshardware.com/video-games/retro-gaming/massive-two-year-project-recovers-144-previ...
1•mikhael•13m ago•0 comments

Intellectual AI Bubble

https://xendo.bearblog.dev/intellectual-ai-bubble/
2•xendo•13m ago•0 comments

I can't upgrade to Windows 11, now leave me alone

https://idiallo.com/byte-size/cant-update-to-windows-11-leave-me-alone
2•firefoxd•14m ago•0 comments

Mullvad VPN: "This is a Chat Control 3.0 attempt."

https://mastodon.online/@mullvadnet/115742530333573065
8•janandonly•18m ago•1 comments

Stochastic Parrot

https://en.wikipedia.org/wiki/Stochastic_parrot
1•firefax•21m ago•0 comments

Show HN: Webapp to turn any phone number into WhatsApp chat links

https://wa-me-it-all.franzai.com/
1•franze•24m ago•0 comments

The Science of Deep Focus: How Your Brain Enters Flow State

https://focusflows.eu/blog/science-of-deep-focus-flow-state
2•Ben_Tycho•25m ago•1 comments

Is Gen Z's love of Fried chicken pushing Britain to 'peak pizza'?

https://www.theguardian.com/business/2025/nov/30/is-gen-zs-love-of-fried-chicken-pushing-britain-...
1•PaulHoule•25m ago•0 comments

Buying Servers/RAM/Flash amid price spikes

https://blog.rackout.net/buying-servers-2026-tips-surviving-ram-ssd-price-spikes
1•matt-p•26m ago•1 comments

Four Frictions: Or, How to Resist AI in Education

https://www.publicbooks.org/four-frictions-or-how-to-resist-ai-in-education/
1•homarp•27m ago•0 comments

Rust and the price of ignoring theory [video]

https://www.youtube.com/watch?v=1iPWt1gvT_w
2•pjmlp•27m ago•1 comments

You're Not Burnt Out. You're Existentially Starving

https://neilthanedar.com/youre-not-burnt-out-youre-existentially-starving/
2•thanedar•29m ago•1 comments

OnlyFans Defeats "Chatter Scam" Claim–N.Z. vs. Fenix

https://blog.ericgoldman.org/archives/2025/12/onlyfans-defeats-chatter-scam-claim-n-z-v-fenix.htm
1•hn_acker•30m ago•0 comments

Post-Mortem of a Misguided Logo Trademark Lawsuit–LegalForce vs. Internet Brands

https://blog.ericgoldman.org/archives/2025/12/post-mortem-of-a-misguided-logo-trademark-lawsuit-l...
1•hn_acker•31m ago•0 comments

Waymo temporarily suspends service in SF amid power outage

https://www.sfgate.com/bayarea/article/waymo-temporarily-suspends-service-sf-amid-power-21254917.php
8•pilingual•32m ago•2 comments

Extreme safety risk warning from FAA after three passenger jets in panic

https://www.dailymail.co.uk/news/article-15403243/Extreme-risk-FAA-Musk-rocket-explosion.html
5•Bender•32m ago•2 comments

I interviewed Claude and Gemini about my 2025 blog posts

https://passo.uno/interview-claude-gemini-2025/
2•taubek•32m ago•0 comments

Lessons in creating family photos that people want to keep

https://medium.com/@estherschindler/the-old-family-photos-project-lessons-in-creating-family-phot...
2•ohjeez•33m ago•0 comments

Trump AI czar David Sacks starts to worry the industry

https://www.politico.com/news/2025/12/20/big-tech-gets-worried-about-trumps-ai-czar-00701112
5•thm•36m ago•0 comments

San Francisco power outage puts 130k in the dark

https://www.foxnews.com/us/san-francisco-power-outage-puts-130000-dark-self-driving-car-service-s...
6•hellel•38m ago•0 comments

Day laborers protest noise machines installed at Home Depot

https://www.latimes.com/california/story/2025-12-17/day-laborers-protest-noise-machines-home-depot
17•geox•38m ago•1 comments