Results for python · 1.368s

Sponsored
News for “python”
20 results • 1354 ms server time
Moozonian News
github.com• Jul 6, 2026• 1 min read
Show HN: Belgie – Run TypeScript from Python in an Embedded Deno SandboxHi HN! I built Belgie, a Python library that embeds Deno, allowing Python applications to run JavaScript and TypeScript without requiring Node.js or Deno to be installed on the host system. It supports the features you’d expect from Deno (npm, JSR, and URL imports, isolated package environments, etc.), plus:- Pass JSON-safe values seamlessly between Python and JavaScript.- Agentic code generation with typed interfaces, similar to Pydantic’s Monty.- Manage dependencies programmatically or from the CLI.
Moozonian News
fabian-kuebler.com• Jul 6, 2026• 1 min read
Show HN: Python running on the Super Nintendo (in-browser demo)MicroPython (lexer, compiler and VM) on the SNES: 3.58 MHz 65816, 56 KB Python heap, 16-bit int. The REPL runs right inside the post via EmulatorJS and also works on real hardware via flashcart.I did this as a benchmark for Claude Fable. When the export ban hit, switching to Opus got the project stuck for three weeks; Fable came back and found the real bug in ninety minutes.Along the way: 23 compiler bugs and 4 MicroPython bugs, each root-caused with a minimal reproducer and filed upstream.If you run it on real hardware, I want a picture!
Advertisement
Moozonian News
github.com• Jun 23, 2026• 1 min read
Show HN: Videopython – local-first video processing, editing and AI workflowsI've been building videopython, a Python library for programmatic video editing, processing and AI workflows. Repo: https://github.com/BartWojtowicz/videopythonThe core idea is that edit is just a JSON / Pydantic plan. This plan can be validated against metadata of source video(s) via a dry run, then edit plan can be executed via streaming pipeline (many thanks to ffmpeg!) without holding frames in memory.Thanks to the JSON/Pydantic format of edit schema, you can easily expose it as tool for LLMs and let your agent-of-choice be your personal editor (MCP support included). The usual flow is first analysing videos via a number of ML models to get both visual and audio understanding of all videos. Next, based on the understanding, you build the edit plan, validate it and render the final video. There's a simple refine loop catching errors and fixing the simple mechanical ones, which allows model to converge on executable schema.Currently, the whole ML/AI stack is deliberately local, mostl
Advertisement
Moozonian News
pypi.org• May 14, 2026• 1 min read
Show HN: Textual-debugger, a Python TUI debugger with power featuresI'm a vim/command line guy and loved using pudb (https://pypi.org/project/pudb/) as I was learning Python. Gradually my code became more complex and pudb wasn't keeping up; event loops and the threading and multiprocessing modules were problematic.TL;DR: I used Claude Code to write the TUI debugger of my dreams: https://pypi.org/project/textual-debugger/ It's built with textual and debugpy so can do all the things possible you'd would expect with the Debug Adapter Protocol (remote attach, thread/process inspection).And then some!I added a JSON-RPC interface so the debugger can be controlled by external tools (eg an AI agent). I also added the capability to run the debug target in a separate terminal which is handy for debugging applications that make demands on the terminal (like curses / rich / textual apps).Here's a video of that in action: https://youtu.be/121aihjAQ8gScreenshots: - https://github.com/AlDanial/tdb/blob/main/gallery/async_brea... - https://github.com/AlDanial/tdb/blob
Moozonian News
github.com• May 12, 2026• 1 min read
Show HN: Retrace – reverse debugging for production CPython applicationsNathan here, one of the people who built Retrace. Happy to answer technical questions. Retrace records a CPython application's interactions with the nondeterministic outside world i.e. network, DB, filesystem, time, randomness, subprocesses, and lets you replay that execution locally and deterministically. The goal is to take a production failure and open the same execution in VS Code, with the ability to step forwards and backwards through the replay.The core idea is to record boundary crossings rather than tracing every Python line in production. External calls are recorded as calls/results/errors, and replay stubs return the recorded results so the original application code runs again deterministically.The preview today covers Python 3.11/3.12 on macOS and Linux, with Flask, Django, requests, psycopg2, and threading/forking covered. There is a compatibility table in the README.This is a preview, not a finished product. Things we know are missing: async support is partial, FastAPI is
Moozonian News
figpack.org• Apr 24, 2026• 1 min read
Show HN: Figpack science viz – Python script → Shareable HTML Bundle in cloudSharing interactive scientific visualizations is hard. I don’t want my colleagues to have to install specialized software. I just want to email them a link which they can click on and see the full interactive visualization and explore my (potentially large) dataset and results. I want figures to be long-term archivable (Zenodo, etc). And local first (no upload required to view).I created Figpack to solve these problems by creating self-contained HTML bundles for rich interactive scientific viz.How it works. You import figpack in your Python project, pass numpy data (large time series, images, domain-specific data) to a figpack view object (many existing types, extensible via custom javascript/react), and then the show() command creates a completely self-contained HTML bundle with rich interactive visualization in a temporary directory and spins up a local web server to view it in the browser. The data and rendering code are all in one stand-alone directory. Easy!To share with a colleag
Advertisement
Moozonian News
news.ycombinator.com• Apr 22, 2026• 1 min read
BendersLib: A Benders Decomposition Library in PythonBendersLib (https://benders.dev) is a Python library that supports a range of Benders decomposition variants, including Classical Benders Decomposition, Combinatorial Benders Decomposition, L-shaped Method, Integer L-shaped Method, Generalized Benders Decomposition, and Logic-based Benders Decomposition. While BendersLib provides built-in implementations of these methods, it is designed to be extensible. Users can implement custom Benders decomposition methods by customizing subproblem solvers and cut generators, and defining callback functions for enhancement strategies. BendersLib is solver agnostic and has built-in interfaces for popular Mathematical Programming and Constraint Programming solvers. Its support for rapid prototyping and high extensibility are designed to meet the needs of both researchers and practitioners in Operations Research and related fields.
Moozonian News
github.com• Apr 17, 2026• 1 min read
Show HN: Discourse-reader – a typed, read-only Python client for DiscourseHi HN,I've had to pull data from Discourse forums a few times now, and always had to keep dealing with raw requests.get(), rate-limiting and navigating the returned JSON. Our ecosystem is in Python so I looked if there was already a solution, I found pydiscourse (https://github.com/pydiscourse/pydiscourse), but it requires setting up an API key (a hassle) and only returns raw dicts.There were good solutions in other languages (like discourse2 in TypeScript) but yeah that wasn't in Python.This is useful if you don't want to set up an API key, only care about retrieving data (not interacting with the platform) and want something in Python. Also has some basic rate-limiting built in!Example usage: from discourse_reader import DiscourseClient client = DiscourseClient("https://meta.discourse.org") topic = client.topics.get(12345) print(topic.posts) print(topic.accepted_answer.cooked) for topic in client.topics.latest(limit=100): print(f"{topic.views:>6} views {topic.title}") The Pydantic mo
Sponsored