David Brochart

2.3K posts

David Brochart banner
David Brochart

David Brochart

@davidbrochart

Better not to start, once begun better to finish.

Paris, France Katılım Nisan 2009
727 Takip Edilen1.6K Takipçiler
David Brochart
David Brochart@davidbrochart·
pycrdt has less than 200 GitHub stars, but it's downloaded quite a lot.
David Brochart tweet media
English
0
1
2
276
David Brochart
David Brochart@davidbrochart·
Just released tdiff v0.4.1 which adds support for auto-refresh on file change.
English
0
0
0
116
David Brochart
David Brochart@davidbrochart·
tdiff v0.4.0 adds support for recursively comparing two directories. Previously, in non-git mode, you could only diff two files. uvx tdiff --help
English
0
0
2
190
David Brochart
David Brochart@davidbrochart·
The nice thing about tdiff is that I use it to develop tdiff :) Anyways, v0.3.0 is out, which drops dulwich in favor of the git CLI. This way tdiff will behave much like `git diff`. The current API is `tdiff git`, with similar arguments. Next step: integrate with `git difftool`?
English
0
0
0
143
Will McGugan
Will McGugan@willmcgugan·
Thank you, Python.
Will McGugan tweet media
English
8
0
149
9.5K
David Brochart
David Brochart@davidbrochart·
I created Python bindings for Facebook's Yoga flexbox layout engine (entirely using AI): github.com/davidbrochart/… It's part of a bigger project to provide Python bindings to opencode's opentui.
English
0
0
1
165
Will McGugan
Will McGugan@willmcgugan·
@fvoron Oh, it won't be in the core library. I'm going to publish it separately.
English
1
0
1
52
Will McGugan
Will McGugan@willmcgugan·
Should I factor out the diff view widget I built for Toad into a new library? Self contained. Split, unified view. Syntax highlighting. Line and character diff highlights. It's pretty nifty.
Will McGugan tweet mediaWill McGugan tweet media
English
5
0
30
7.2K
Pydantic
Pydantic@pydantic·
We just revamped the Logfire Explore view. Enjoy a notebook-like interface to query your trace data with SQL helped by a new AI assistant. Watch @marcelotryle walkthrough the feature. youtube.com/watch?v=IrgpXq…
YouTube video
YouTube
English
1
1
18
2.8K
David Brochart
David Brochart@davidbrochart·
@prefix_dev Might not be a good example, because NumPy will be installed through SciPy?
English
0
0
0
32
prefix.dev
prefix.dev@prefix_dev·
Do you need more control over the packages that will be installed in your Pixi workspaces? You can now define [constraints], which allow you to specify which versions are allowed when a package is installed.
prefix.dev tweet media
English
1
5
11
430
Will McGugan
Will McGugan@willmcgugan·
Further refinements to the fuzzy path searching. I was using sub interpreters to do the matching across cores. Worked great, but it took ~300ms to start all those Python instances. It happens one time, but the delay was noticeable The fix was to ensure the code in the interpreter didn't pull in more imports that necessary. With that in place it is under 50ms. I've also fixed an issue with the directory scanning, where it was going multiple parallel scans. 🤦‍♂️ Now the initial directory scan is faster. Fixed a bunch of Path operations. Things like Path.resolve() touch the filesystem and will block asyncio for a brief period, potentially cause a tiny stutter. Always do those in asyncio.to_thread. Finally, I added truncation of the paths with a midline horizontal ellipsis (⋯) at the left if there is truncation. This makes much more sense for paths, where the final component should have priority. I *could* wrap the paths, but I figured that might look odd. WDYT? New Toad release coming tomorrow.
English
3
0
18
2K
David Brochart
David Brochart@davidbrochart·
Just published textual-editor to PyPI. It's a textual widget that is similar to TextArea but that actually runs a real editor and connects it to an embedded terminal emulator, so that you get all the power of neovim (or whatever your preferred editor is). github.com/davidbrochart/…
David Brochart tweet media
English
1
1
10
3.5K
David Brochart
David Brochart@davidbrochart·
Jupyverse now supports legacy Jupyter server extensions. It does that by proxying the server, so no rewrite of the original extensions is needed. You can try jupyterlab-git and jupyterlab-lsp with: pip install jupyverse[jupyterlab,auth,jupyterlab-git,jupyterlab-lsp]
English
0
0
1
154
Samuel Colvin
Samuel Colvin@samuelcolvin·
Fuck it, a bit early but here goes: Monty: a new python implementation, from scratch, in rust, for LLMs to run code without host access. Startup time measured in single digit microseconds, not seconds. @mitsuhiko here's another sandbox/not-sandbox to be snarky about 😜 Thanks @threepointone @dsp_ (inadvertently) for the idea. github.com/pydantic/monty
English
90
163
1.8K
319.6K