by alexliu518 on 7/31/24, 6:43 AM with 18 comments
by networked on 7/31/24, 1:34 PM
I really like xmltodict (https://github.com/martinblech/xmltodict). Despite the name, it works in both directions. It is the most ergonomic library I have used for creating XML. It has external type stubs: https://pypi.org/project/types-xmltodict/.
Since you have recently discovered Rich, you may want rich-argparse (https://github.com/hamdanal/rich-argparse). It colorizes argparse CLIs with little effort from the user.
DeepDiff (https://github.com/seperman/deepdiff) has helped me with testing. I needed to compare two nested data structures but ignore any differences in floats (timestamps). DeepDiff let me do it:
diff = DeepDiff(
run_session(config), run_session(config, force=True), exclude_types=(float,)
)
assert not diff
pzp (https://github.com/andreax79/pzp) is like fzf in pure Python to use in your programs.
Keep in mind it is currently version 0.0.x.
I have found bugs, but I think it is just cool that it exists.by Crier1002 on 7/31/24, 9:59 AM
context: OpenAI API used to be super flaky back in the early days, i needed to retry my requests quite frequently and i found this
by srhtftw on 8/4/24, 6:55 PM
by jmkr on 7/31/24, 7:00 AM
Audio track seperation:
https://github.com/adefossez/demucs
demucs works pretty well.
by KolenCh on 8/1/24, 12:05 AM
The alternative is either you maintain two interfaces with boilerplate, or write a cli only if that’s the first priority.
Similar solutions exist, like fire. But fire’s cli is like an afterthought, in the sense it gives people a way to run things in command line where they already know how to run it from Python.
by hcfman on 7/31/24, 2:32 PM
by vismit2000 on 8/1/24, 6:10 AM
by skykery on 7/31/24, 7:15 AM
by Qem on 7/31/24, 8:55 PM
by Hasnep on 7/31/24, 10:48 AM
by enjoyyourlife on 8/5/24, 12:24 AM
by pizza on 8/3/24, 3:39 AM
- einops
- pytrees
- torchinfo
- joblib
- symbex
- nbdev