r/Python • • Mar 04 '26

Showcase FrostPPT – Generate frosted-glass HTML presentations from Python

1 Upvotes

Title:
FrostPPT – Generate frosted-glass HTML presentations from Python

Body:

What My Project Does

FrostPPT is a small Python CLI tool that generates standalone HTML presentation slide decks.

It creates:

  • Frosted glass / blur UI slides
  • Animated transitions
  • Fully offline HTML output
  • No runtime dependencies beyond Python
  • Simple text-based slide input

Example usage:

pip install frostppt
frostppt myslides.txt

It outputs a ready-to-present HTML file that can be opened in any modern browser.

Target Audience

This project is primarily:

  • Students who are allowed to use HTML presentations
  • Developers who prefer CLI tools over PowerPoint/Keynote
  • People who want lightweight, framework-free presentation generation

It is currently suitable for personal use, demos, and lightweight presentation needs.
It is not intended (yet) as an enterprise-grade replacement for major presentation software.

Comparison

Compared to alternatives:

  • Unlike PowerPoint/Keynote, it generates portable HTML instead of proprietary formats.
  • Unlike Reveal.js or full web frameworks, it requires no manual HTML/JS setup.
  • Unlike Google Slides, it works fully offline once generated.
  • Compared to Pandoc-based solutions, it focuses specifically on glassmorphism UI and visual effects.

The goal is minimal setup + aesthetic output with a simple CLI workflow.

Demo:
https://frostppt.netlify.app/

Source Code:
https://github.com/FrozenElsaVVVVV/frostppt/

PyPI:
https://pypi.org/project/frostppt/


r/Python • • Mar 04 '26

News https://www.youtube.com/watch?v=qKkyBhXIJJU

0 Upvotes

Just wanted to share(no affiliation) about live Python Unplugged on PyTv right now: https://www.youtube.com/watch?v=qKkyBhXIJJU

Interesting discussion about community mainly but development- focused for the Python community :)


r/Python • • Mar 04 '26

Showcase VSCode uv Extension: uv Auto venv (PEP 723 & pyproject.toml)

9 Upvotes

I created yet another VSCode extension: uv Auto venv
Find it here:
VSCode Marketplace & GitHub

What My Project Does
Automatically activates uv Python environments the moment you switch tabs in VS Code.
It works with standard projects AND scripts with PEP 723 inline metadata.

It doesn't create venv's for you, because I like to manage them explicitly myself using uv in the terminal. I just want the linting to work when i switch between projects and scripts.

Target Audience
Comes in handy for repos with multiple projects/scripts, where VSCode won't pick up the venv automatically.

Comparison
I couldn't find any extensions that work for both projects with pyproject.toml and PEP 723 inline metadata, so I created this one.

Call for Logo Design:
The logo is ugly, I created it with AI and don't like it. The repo is open for design contributions, if you want to contribute a new one, let me know!


r/Python • • Mar 04 '26

Showcase Made a networking library for multiplayer games -- pump() once per frame and forget about sockets

30 Upvotes

TL;DR: I built repod, a networking library for Python games (Pygame, Raylib, Arcade). No async/await boilerplate in your game loop—just send/receive dicts and call pump() once per frame.

repod is a high-level networking library designed for real-time multiplayer games. It abstracts away the complexity of asyncio and sockets, allowing developers to handle network events through simple class methods.

Instead of managing buffers or coroutines, you simply:

  1. Subclass a Channel (server) or ConnectionListener (client).
  2. Write methods starting with Network_ (e.g., Network_move).
  3. Call pump() once per frame in your main loop to dispatch all pending messages.

It uses msgpack for fast serialization and length-prefix framing to ensure data integrity.

Target Audience

This is currently meant for indie developers, hobbyists, and game jam participants.

  • Current Status: Early stages (v0.1.2), but stable enough for projects.
  • Goal: It's perfect for those who want to add multiplayer to a Pygame/Raylib project without restructuring their entire codebase around an asynchronous architecture.

Comparison

Compared to other solutions:

  • vs. Raw Sockets/Asyncio: Much higher level. No need to handle partial packets, byte encoding, or event loop management.
  • vs. PodSixNet: It’s essentially a modern spiritual successor. While PodSixNet is broken on Python 3.12+ (due to the removal of asyncore), repod uses a modern asyncio backend while keeping the same easy-to-use API.
  • vs. Twisted/Autobahn: Much lighter. It doesn't force a specific framework on you; it just sits inside your existing while True loop.

Quick Example (Server)

Python

from repod import Channel, Server

class GameChannel(Channel):
    def Network_chat(self, data: dict) -> None:
        # Broadcasts: {"action": "chat", "msg": "hello"}
        self.server.send_to_all({"action": "chat", "msg": data["msg"]})

class GameServer(Server):
    channel_class = GameChannel

GameServer(host="0.0.0.0", port=5071).launch()

Links & Info

I've included examples in the repo for a chat room, a shared whiteboard (pygame-ce), and Pong with server-authoritative physics. I'd love to hear your thoughts or what features you'd like to see next!


r/Python • • Mar 04 '26

News Google just open-sourced cel-expr-python (CEL) — safe, typed expressions for Python (C++ wrapper)

90 Upvotes

Google Open Source Blog posted a new release today (Mar 3, 2026): cel-expr-python, a native Python API for compiling + evaluating CEL (Common Expression Language) expressions.

Repo: https://github.com/cel-expr/cel-python

Announcement: https://opensource.googleblog.com/2026/03/announcing-cel-expr-python-the-common-expression-language-in-python-now-open-source.html

Codelab: https://github.com/cel-expr/cel-python/blob/main/codelab/index.lab.md

Why I’m interested:

- It’s the official CEL team’s Python wrapper over the production CEL C++ implementation (so semantics should match what other CEL runtimes do).

- It’s designed for “compile once, eval many” workflows with type-checking during compile (so you can validate expressions up front instead of `eval()`-ing arbitrary Python).

- It supports extensions and can serialize compiled expressions.

Quick start (from the blog/docs; blog snippet had a small typo so I’m writing the corrected version here):

pip install cel-expr-python

from cel_expr_python import cel

env = cel.NewEnv(variables={"who": cel.Type.STRING})

expr = env.compile("'Hello, ' + who + '!'")

print(expr.eval(data={"who": "World"}).value()) # Hello, World!

Doc snippet: serialize + reuse compiled expressions

env = cel.NewEnv(variables={"x": cel.Type.INT, "y": cel.Type.INT})

expr = env.compile("x + y > 10")

blob = expr.serialize()

expr2 = env.deserialize(blob)

print(expr2.eval(data={"x": 7, "y": 4}).value()) # True

Doc snippet: custom function extension in Python

def my_func_impl(x):

return x + 1

my_ext = cel.CelExtension("my_extension", [cel.FunctionDecl("my_func", [cel.Overload("my_func_int", cel.Type.INT[cel.Type.INT], impl=my_func_impl)])])

env = cel.NewEnv(extensions=[my_ext])

expr = env.compile("my_func(41)")

print(expr.eval().value()) # 42

Side note / parallel that made me click on this:

I was just reading the r/Python thread on PEP 827 (type manipulation + expanding the type expression grammar):

https://www.reddit.com/r/Python/comments/1rimuu7/pep_827_type_manipulation_has_just_been_published/

Questions if there are any folks who’ve used CEL before:

- Where has CEL worked well (policy engines, validation, feature flags, filtering, etc.)?

- How does this compare to rolling your own AST-based evaluator / JsonLogic / JMESPath for real-world apps?

- Any gotchas with Python integration, perf, or packaging (looks like Linux + py3.11+ right now)?


r/Python • • Mar 04 '26

Showcase I built a cryptographic commitment platform with FastAPI and Bitcoin timestamps (MIT licensed)

0 Upvotes

PSI-COMMIT is a web platform (and Python backend) that lets you cryptographically seal a prediction, hypothesis, or decision — then reveal it later with mathematical proof you didn't change it. The backend is built entirely in Python with FastAPI and handles commitment storage, verification, Bitcoin timestamping via OpenTimestamps, and user authentication through Supabase.

All cryptographic operations run client-side via the Web Crypto API, so the server never sees your secret key. The Python backend handles:

  • Commitment storage and retrieval via FastAPI endpoints
  • HMAC-SHA256 verification on reveal (constant-time comparison)
  • OpenTimestamps submission and polling for Bitcoin block confirmation
  • JWT authentication and admin-protected routes
  • OTS receipt management and binary .ots file serving

GitHub: https://github.com/RayanOgh/psi-commit Live: https://psicommit.com

Target Audience

Anyone who needs to prove they said something before an outcome — forecasters, researchers pre-registering hypotheses, teams logging strategic decisions, or anyone tired of "I told you so" without proof. It's a working production tool with real users, not a toy project.

Comparison

Unlike using GPG signatures (which require keypair management and aren't designed for commit-reveal schemes), PSI-COMMIT is purpose-built for timestamped commitments. Compared to hashing a file and posting it on Twitter, PSI-COMMIT adds domain separation to prevent cross-context replay, a 32-byte nonce per commitment, Bitcoin anchoring via OpenTimestamps for independent timestamp verification, and a public wall where revealed predictions are displayed with full cryptographic proof anyone can verify. The closest alternative is manually running openssl dgst and submitting to OTS yourself — this wraps that workflow into a clean web interface with user accounts and a verification UI.


r/Python • • Mar 04 '26

News I updated Dracula-AI based on some advice and criticism. You can see here what changed.

0 Upvotes

Firstly, hello everyone. I'm an 18-year-old Computer Engineering student in Turkey.

I wanted to develop a Python library because I always enjoy learning new things and want to improve my skills, so I started building it.

A little while ago, I shared Dracula-AI, a lightweight Python wrapper I built for the Google Gemini API. The response was awesome, but you guys gave me some incredibly valuable, technical criticism:

  1. "Saving conversation history in a JSON file is going to cause massive memory bloat."
  2. "Why is PyQt6 a forced dependency if I just want to run this on a server or a Discord bot?"
  3. "No exponential backoff/retry mechanism? One 503 error from Google and the whole app crashes."

I took every single piece of feedback seriously. I went back to the drawing board, and I tried to make it more stable.

Today, I’m excited to release Dracula v0.8.0.

What’s New?

  • SQLite Memory Engine: I gave up on using JSON and tried to build a memory system with SQLite. Conversation history and usage stats are now natively handled via a robust SQLite database (sqlite3 for sync, aiosqlite for async). It scales perfectly even for massive chat histories.
  • Smart Auto-Retry: Dracula now features an under-the-hood exponential backoff mechanism. It automatically catches temporary network drops, 429 rate limits, and 503 errors, retrying smoothly without crashing your app.
  • Zero UI Bloat: I split the dependencies!

    • If you're building a backend, FastAPI, or a Discord bot: pip install dracula-ai .
    • If you want the built-in PyQt6 desktop app: pip install dracula-ai[ui].
  • True Async Streaming: Fixed a generator bug so streaming now works natively without blocking the asyncio event loop.

Quick Example:

import os
from dracula import Dracula
from dotenv import load_dotenv

load_dotenv()

# Automatically creates SQLite db and handles retries under the hood
with Dracula(api_key=os.getenv("GEMINI_API_KEY")) as ai:
    response = ai.chat("What's the meaning of life?")
    print(response)
    
    # You can also use built-in tools, system prompts, and personas!

Building this has been a massive learning curve for me. Your feedback pushed me to learn about database migrations, optional package dependencies, and proper async architectures.

I’d love for you guys to check out the new version and tear it apart again so I can keep improving!

Let me know what you think, I need your feedback :)

By the way, if you want to review the code, you can visit my GitHub repo. Also, if you want to develop projects with Dracula, you can visit its PyPi page.


r/Python • • Mar 03 '26

Showcase formualizer: an Arrow-backed spreadsheet engine - 320+ functions, incremental recalc, PyO3 + Rust

72 Upvotes

pip install formualizer

import formualizer as fz

# Recalculate every formula in an xlsx and write it back - one call
fz.recalculate_file("model.xlsx", output="recalculated.xlsx")

# Or drive it programmatically
wb = fz.load_workbook("model.xlsx")
wb.set_value("Assumptions", 3, 2, 0.08)  # swap in a new interest rate
wb.evaluate_all()

print(wb.evaluate_cell("Summary", 5, 3))  # =IRR(...)
print(wb.evaluate_cell("Summary", 6, 3))  # =NPV(...)
print(wb.evaluate_cell("Summary", 7, 3))  # =PMT(...)

GitHub: https://github.com/psu3d0/formualizer Docs: https://www.formualizer.dev


Why this exists

Python's Excel formula situation sucks:

  • openpyxl reads and writes .xlsx perfectly, evaluates zero formulas. Cells with =SUM(A1:A10) return None unless Excel already cached the values when someone last saved the file.
  • xlcalc actually evaluates, but covers around 50 functions. XLOOKUP, SUMIFS with multiple criteria, IRR, XIRR, dynamic arrays (FILTER, UNIQUE, SORT), etc don't exist.
  • xlwings works if Excel is installed on the machine. Useless in Docker or on Linux.

The standard workaround - pre-calculate in Excel, save cached values, read with openpyxl - falls apart when someone changes the model, or you need to evaluate the same workbook across thousands of different inputs. Or even just need to evaluate real workbooks of non-trivial size.

formualizer is a Rust formula engine with PyO3 bindings. No Excel. No COM. Runs anywhere Python runs.


Bonus: register Python functions as Excel formulas

def risk_score(grid):
    flat = [v for row in grid for v in row]
    return sum(v ** 2 for v in flat) / len(flat)

wb.register_function("RISK_SCORE", risk_score, min_args=1, max_args=1)
wb.set_formula("Sheet1", 5, 1, "=RISK_SCORE(A1:D100)")

result = wb.evaluate_cell("Sheet1", 5, 1)

Your callback participates in the dependency graph like any built-in - change a cell in A1:D100 and it recalculates on the next evaluate_all().


Comparison

LibraryEvaluatesFunctionsDep. graphWrite xlsxNo ExcelLicense
formualizer✅320+✅ incremental✅✅MIT / Apache-2.0
xlcalc✅~50partial❌✅MIT
openpyxl❌—❌✅✅MIT
xlwings✅~400*❌✅❌BSD

Formal benchmarks are in progress. Rust core, incremental dependency graph (only affected cells recalculate on edits), MIT/Apache-2.0.

This library is fast.


What My Project Does

Python library for evaluating Excel formulas without Excel installed. Rust core via PyO3. 320+ Excel-compatible functions, .xlsx read/write, incremental dependency graph, custom Python formula callbacks, deterministic mode for reproducible evaluation. MIT/Apache-2.0.

Target Audience

Data engineers pulling business logic out of Excel workbooks, fintech/insurance teams running server-side formula evaluation (pricing, amortization, risk), SaaS builders who need spreadsheet logic without a server-side Excel dependency.