Running pytest against a specific Python version with uv run
Related
More from Simon Willison TIL
Rhet Turnbull shared this short script for looking up the named timezone for a given location from Python on macOS using objc and the CoreLocation framework. It uses the objc package and pyobjc-framework-CoreLocation. This piqued my interest, so I conversed with Claude about other things I could do with that same framework. Here's the script we...
TikTok may or may not be banned in the USA within the next 24 hours or so. Here's a pattern you can use to download all of the videos from a specific account. Scrape the list of video URLs I used a variant of my Twitter scraping trick. Start by loading up a profile page - like https://www.tiktok.com/@ilgallinaio_special - in Firefox or Chrome or...
I wanted to know how large the deepseek-ai/DeepSeek-V3-Base repo on Hugging Face was without actually downloading all of the files. With some help from Claude, here's the recipe that worked. First, clone the repo without having Git LFS download the files: GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/deepseek-ai/DeepSeek-V3-Base cd...
I was exploring the original BERT model from 2018, which is mainly useful if you fine-tune a model on top of it for a specific task. dslim/distilbert-NER by David S. Lim is a popular implementation of this, with around 20,000 downloads from Hugging Face every month. I tried the demo from the README but it didn't quite work - it complained about...
I was getting the following warning for one of my Python test suites: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). I also saw a deprecation warning elsewhere for my usage of...