Debugging a Click application using pdb
This tip is for when you are working on a Python command-line application that runs using that program's name, as opposed to typing .
81 posts tagged “cli”.
This tip is for when you are working on a Python command-line application that runs using that program's name, as opposed to typing .
Rhet Turnbull shared this short script for looking up the named timezone for a given location from Python on macOS using and the framework. It uses the package and pyobjc-framework-CoreLocation.
Matt Holt asked: Is there a tool that uses the GitHub API to generate a doc with all release notes from a repo?
First, checkout the cpython repo: $ git clone git@github.com:python/cpython cd into the directory: $ cd cpython/Doc To get a virtual environment with Sphinx and other required tools, run like this: $…
Via Tony Hirst I found out about MapZen's elevation tiles, which encode elevation data in PNG and other formats.
I learned this trick today while browsing the code of Blacklite, a neat Java library for writing diagnostic logs to a SQLite database.
Use to find the container ID: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 81b2ad3194cb alexdebrie/livegrep-base:1 "/livegrep-github-re…" 2 minutes ago Up 2 minutes compassionate…
I wanted to be able to fetch details of a list of different repositories from the GitHub GraphQL API by name in a single operation.
Amplitude offers an "Export Data" button in the project settings page. This can export up to 365 days of events (up to 4GB per export), where the export is a zip file containing gzipped…
I was reviewing some older PRs and landed this one by Manuel Solorzano adding pricing for o4-mini-deep-research and o3-deep-research to my llm-prices.com site.
:warning: The OOB flow described in this document has been scheduled for deprecation by Google. See issue 39 for notes on how to replace it.
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.
I was using the Apache Bench command to exercise some new code I'm writing in Datasette and I noticed I was getting a lot of errors: Truncated output: What's with the 953 failed requests?
I deployed https://metmusem.datasettes.com/ by creating a folder on my computer containing a Dockerfile and then shipping that folder up to Google Cloud Run.
I ran a survey on Twitter the other day to try and figure out what people mean when they use the term "agents" with respect to AI.
The GraphQL schema language is a concise way to represent the available schema provided by a GraphQL endpoint.
Using gifsicle Tip via Mark Norman Francis on Twitter: Saw your GIF size TIL, and gets it down to 320k.
While exploring null bytes in this issue I learned that the command on macOS (and presumably other Unix systems) has a confusing default output.
Hacker News displays comments in a tree. This can be frustrating if you want to keep track of a particular conversation, as you constantly have to seek through the tree to find the latest comment.
https://www.w3.org/History/1991-WWW-NeXT/Implementation/ It's served up as a browseable Apache directory listing, but that's not the most delightful way to browse code - clicking a link to a file…