This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Download the Lite and Asn files from the Distributor - #43
Draft
jwrosewell wants to merge 4 commits into
Draft
jwrosewell wants to merge 4 commits into
jwrosewell wants to merge 4 commits into
Conversation
…script.tests.ps1)
get-lite-file-from-azure.ps1 and get-lite-file-from-azure.sh downloaded both files from Azure blob storage. They now use the Distributor's free downloads, ipi-lite-v41 and ipi-asn-v41, which need no License Key, and send source=ip-intelligence-data so downloads can be counted. Their options and output files are unchanged. The Distributor sends each file as more than one gzip member. The PowerShell script now unpacks every member under Windows PowerShell, whose GZipStream stops after the first, and PowerShell 7 and gunzip already read them all. The shell script passes -f to curl, so an error answer is no longer saved as the archive.
This was referenced Nov 12, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get-lite-file-from-azure.ps1andget-lite-file-from-azure.shdownloaded the Lite and Asn files from Azure blob storage (https://51ddatafiles.blob.core.windows.net/enterpriseipi/). This repository is being replaced by https://github.com/51Degrees/data, whose links point at the Distributor's free downloads, and this pull request moves these two scripts there too before the repository is archived, so anyone still using them gets the files from the same place.What changes
https://distributor.51degrees.com/api/v2/free/ipi-lite-v41andipi-asn-v41, which need no License Key, withsource=ip-intelligence-data, so downloads can be counted by where they come from. Their options (-Force,-Lite,-Asnand-f,-lite,-asn) and the files they write are unchanged.gunzipand PowerShell 7 unpack both, but theGZipStreamof Windows PowerShell stops after the first, which leaves a 32 byte file. The PowerShell script now unpacks each member in turn there, using the same code as the data repository'sget-data-files.ps1, which its Download scripts workflow tests under Windows PowerShell.-fto curl, so an error answer such as a 429 is no longer saved as the archive.How it was checked
bash -n, and the PowerShell parser in PowerShell 7 and Windows PowerShell.Merge it after today's release pull request, #42, so that release is unchanged. It is part of the run book for moving every SDK to the data repository, 51Degrees/data#1.