Hashes are also available via PyPI's JSON API <https://warehouse.readthedocs.io/api-reference/json/>.
On Tue, Feb 12, 2019 at 7:15 AM Tzu-ping Chung <[email protected]> wrote: > I believe you’re looking for the PEP 503 simple API > <https://www.python.org/dev/peps/pep-0503/>. This is what pip uses to > find the hashes (among other things) as well. The hash value is included as > a fragment in the URL. > > TP > > On 12/2/2019, at 23:03, Eric Peterson <[email protected]> > wrote: > > Hi all, > > When in the "Download files" section of a project on PyPI, next to each > download there is a convenient "SHA256" link that will copy the SHA-256 > fingerprint for that file to the clipboard. I am wondering if there is a > programmatic way to access the SHA-256 for a file (besides just scraping > the web page)? Ideally there would be some way to construct a URL based on > the name of the file that, when called, would return the fingerprint. > > Thanks, > Eric > -- > Distutils-SIG mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/distutils-sig.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/FLNOENK2525RMHGL7SV2SBUXKSOJHSEZ/ > > > -- > Distutils-SIG mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/distutils-sig.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/EY2SRYRV5NDKOSISK4JEX34YOOLUQ5ED/ >
-- Distutils-SIG mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/POUPL2ETXYFRRFR4RFZLPC7KDHILAFIU/
