Skip to content

Make downloading from Github slightly less annoying. Refactor common URL and NamedTemporaryFile code.#389

Merged
JamesParrott merged 1 commit into
GeospatialPython:masterfrom
JamesParrott:Separate_download_and_tempfile_creation
May 19, 2026
Merged

Make downloading from Github slightly less annoying. Refactor common URL and NamedTemporaryFile code.#389
JamesParrott merged 1 commit into
GeospatialPython:masterfrom
JamesParrott:Separate_download_and_tempfile_creation

Conversation

@JamesParrott
Copy link
Copy Markdown
Collaborator

…tmp_file)

Update changelog.txt

Make _try_to_download_binary_file require a ParseResult, & use it

Update shapefile.py

Minimise code inside try: Use a named tuple methods, instead of mutating list.

Refactor common url download code into _try_http_download

Refactor common url download code into _try_http_download

Change type annotation to ReadWriteSeekableBinStream from NamedTemporaryFile

…tmp_file)

Update changelog.txt

Make _try_to_download_binary_file require a ParseResult, & use it

Update shapefile.py

Minimise code inside try: Use a named tuple methods, instead of mutating list.

Refactor common url download code into _try_http_download

Refactor common url download code into _try_http_download

Change type annotation to ReadWriteSeekableBinStream from NamedTemporaryFile
@JamesParrott JamesParrott merged commit f10ba79 into GeospatialPython:master May 19, 2026
29 checks passed
@JamesParrott JamesParrott deleted the Separate_download_and_tempfile_creation branch May 19, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant