Skip to content

Instantly share code, notes, and snippets.

View etrotta's full-sized avatar

etrotta

  • Brazil
  • 04:57 (UTC -03:00)
View GitHub Profile
@etrotta
etrotta / polars-jetstream.py
Created September 30, 2025 02:48
Demonstration of Polars streaming data via 1.34 Sink Batches + Input Plugins
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "httpx-ws==0.8.0",
# "httpx==0.28.1",
# "httpcore==1.0.9",
# "polars>=1.34.0b4",
# ]
# [tool.uv]
# prerelease = "allow"
@etrotta
etrotta / README.md
Created July 30, 2024 23:28
FastHTML + Polars Testing

Brief testing using fasthtml + polars + ag-grid

The way I'm injecting parameters into JS via string templates is definitely a terrible idea, this is just to show it is possible. I don't like frontend/JS whatsoever and don't plan to turn this into a proper plugin/component.

  • -eager files: Load the entire data in one go
  • main.py and table.js: Lazily load chunks as you scroll

The data files I used for testing are not included, it should work pretty much 'plug-n-play' with any CSV or Parquet file you have laying around.

@etrotta
etrotta / geminiextractor-ptbr.ipynb
Created May 9, 2024 00:42
GeminiExtractor-PTBR.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@etrotta
etrotta / geminifileextractor.ipynb
Created May 8, 2024 10:50
GeminiFileExtractor.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@etrotta
etrotta / kanji_joyo
Created February 14, 2024 00:42
A simple list of all Kanji in use for the Japanese language, based off the kanjidatabase and KANJIDIC projects