Skip to content

Commit e7cd96f

Browse files
authored
Use HTTPS URLs in python README (#46)
1 parent f688194 commit e7cd96f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

python/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ These Python scripts can be run directly from their URLs using `uv run`.
77
Display an image in the terminal using [rich-pixels](https://pypi.org/project/rich-pixels/):
88

99
```bash
10-
uv run http://tools.simonwillison.net/python/show_image.py \
10+
uv run https://tools.simonwillison.net/python/show_image.py \
1111
image.jpg
1212
```
1313
Add `--lanczos` to use Lanczos scaling, default is NEAREST (crisp pixel art).
@@ -19,7 +19,7 @@ Calculate the size of a model on [ModelScope](https://modelscope.cn/).
1919
Example:
2020

2121
```bash
22-
uv run http://tools.simonwillison.net/python/modelscope_size.py \
22+
uv run https://tools.simonwillison.net/python/modelscope_size.py \
2323
https://modelscope.cn/models/Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8
2424
```
2525
Outputs:
@@ -32,15 +32,15 @@ Outputs:
3232
Stream the Markdown result of an LLM prompt using Textual's streaming Markdown feature.
3333

3434
```bash
35-
uv run http://tools.simonwillison.net/python/streaming_textual_markdown.py \
35+
uv run https://tools.simonwillison.net/python/streaming_textual_markdown.py \
3636
'Epic saga of a pelican and a wolf becoming friends over their love for welding'
3737

3838
## check_invisible_text.py
3939

4040
Check a PDF file for possibly instances of invisible text. [Claude transcript](https://claude.ai/share/0d82324d-d575-40d9-ba85-732ab234197a).
4141

4242
```bash
43-
uv run http://tools.simonwillison.net/python/check_invisible_text.py \
43+
uv run https://tools.simonwillison.net/python/check_invisible_text.py \
4444
my-file.pdf
4545
```
4646
Example output:
@@ -82,7 +82,7 @@ Page 0: White text (invisible on white background)
8282
Inspect a GGUF file (a format used by [llama.cpp](https://github.com/ggml-org/llama.cpp)) and print out the key/value pairs. No dependencies.
8383
8484
```bash
85-
uv run http://tools.simonwillison.net/python/gguf_inspect.py \
85+
uv run https://tools.simonwillison.net/python/gguf_inspect.py \
8686
~/.ollama/models/blobs/sha256-b158411543050d042608cef16fdfeec0d9bc1cf2e63a3625f3887fc0c4249521 \
8787
--json --exclude tokenizer.ggml.
8888
```
@@ -92,21 +92,21 @@ uv run http://tools.simonwillison.net/python/gguf_inspect.py \
9292
Given a text file that includes JSON syntax but is not valid JSON - a Markdown README file for example - this tool finds all valid JSON objects within that text and returns the largest, or all of them if you specify `-a`.
9393

9494
```bash
95-
uv run http://tools.simonwillison.net/python/json_extractor.py \
95+
uv run https://tools.simonwillison.net/python/json_extractor.py \
9696
README.md
9797
```
9898
You can also pipe data into it:
9999
```bash
100100
curl 'https://raw.githubusercontent.com/simonw/json-flatten/refs/heads/main/README.md' \
101-
| uv run http://tools.simonwillison.net/python/json_extractor.py
101+
| uv run https://tools.simonwillison.net/python/json_extractor.py
102102
```
103103

104104
## http_check.py
105105

106106
Check if a given URL supports gzip, ETags and Last-modified conditional GET requests.
107107

108108
```bash
109-
uv run http://tools.simonwillison.net/python/http_check.py \
109+
uv run https://tools.simonwillison.net/python/http_check.py \
110110
https://simonw.github.io/ollama-models-atom-feed/atom.xml
111111
```
112112

@@ -115,7 +115,7 @@ uv run http://tools.simonwillison.net/python/http_check.py \
115115
Replace any lines that are entirely whitespace with blank lines in specified files or folders:
116116

117117
```bash
118-
uv run http://tools.simonwillison.net/python/whitespace_cleaner.py \
118+
uv run https://tools.simonwillison.net/python/whitespace_cleaner.py \
119119
my-file.txt my-folder
120120
```
121121
Has a `--dry-run` option for seeing how many files it would modify.
@@ -125,7 +125,7 @@ Has a `--dry-run` option for seeing how many files it would modify.
125125
View the size of the files in all of your Google Cloud buckets. You'll need to have [gcloud installed](https://cloud.google.com/sdk/docs/install) and do the `gcloud auth` dance first.
126126

127127
```bash
128-
uv run http://tools.simonwillison.net/python/all_gcp_buckets.py
128+
uv run https://tools.simonwillison.net/python/all_gcp_buckets.py
129129
```
130130
This will leave `.txt` files for each bucket containing a file listing, in a directory called `bucket_listings_DATE`.
131131

@@ -134,19 +134,19 @@ This will leave `.txt` files for each bucket containing a file listing, in a dir
134134
Run PDF files through the [Mistral OCR](https://mistral.ai/fr/news/mistral-ocr) API:
135135

136136
```bash
137-
uv run http://tools.simonwillison.net/python/mistral_ocr.py \
137+
uv run https://tools.simonwillison.net/python/mistral_ocr.py \
138138
my-file.pdf > output.md
139139
```
140140
Or to generate HTML and save images and HTML to a directory:
141141
```bash
142-
uv run http://tools.simonwillison.net/python/mistral_ocr.py \
142+
uv run https://tools.simonwillison.net/python/mistral_ocr.py \
143143
my-file.pdf -d output-dir -he
144144
```
145145
`-he` is short for `--html --extract-images`.
146146

147147
Or to create HTML with images inlined as base64 URIs:
148148
```bash
149-
uv run http://tools.simonwillison.net/python/mistral_ocr.py \
149+
uv run https://tools.simonwillison.net/python/mistral_ocr.py \
150150
my-file.pdf -hi > output.html
151151
```
152152
`-hi` is short for `--html --inline-images`.
@@ -202,7 +202,7 @@ Given input text to stdin and search/highlight terms, outputs matches plus conte
202202

203203
Example usage:
204204
```bash
205-
cat myfile.py | uv run http://tools.simonwillison.net/python/highlight.py re search
205+
cat myfile.py | uv run https://tools.simonwillison.net/python/highlight.py re search
206206
```
207207

208208
## debug_s3_access.py
@@ -212,7 +212,7 @@ Use this with a URL to an object in an S3 bucket to try and debug why that objec
212212
Example usage:
213213

214214
```bash
215-
uv run http://tools.simonwillison.net/python/debug_s3_access.py \
215+
uv run https://tools.simonwillison.net/python/debug_s3_access.py \
216216
https://test-public-bucket-simonw.s3.us-east-1.amazonaws.com/0f550b7b28264d7ea2b3d360e3381a95.jpg
217217
```
218218
Output:

0 commit comments

Comments
 (0)