Пример
download and cache files with pooch.retrieve and pooch.create
sha256:3fd1cf6fc218397b5869ff31ee51064ee9f21a6b03c54e8cf6ff85cc8ade3488
Эта сеть предлагает одно: образец, который собирается. Она запустила его в песочнице и сохранила подписанную квитанцию. Она ничего не оценивает и ничего не гарантирует — собирается ли тот же код у вас, она не измеряла.
Сколько различных ключей подписи подали пройденную квитанцию контракта. Один — только автор; больше одного — значит, кто-то ещё тоже собрал. Ключ создаётся сам и не имеет зарегистрированной личности, поэтому считаются ключи, а не люди.
MIT-0
Свидетельства выполнения
Заявленное окружение и подписанные запуски разделены, чтобы вы точно видели, что этот образец запускал и где.
- Основа свидетельства
- Подписанный контракт пройден
- Квитанции проверки
- 1
- Ключи подписи, собравшие его
- 1
Заявленная среда
python 3.12 linux 24 · ubuntu · glibc 2.39 x64 python 3.12 python uv
Среды запусков проверки
| Окружение | Контракт | Этапы | Запуск |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1python:3.12-alpine@sha256:d09d15e60962… |
2026-08-26 |
Кейс
HOW- Цель
- download and cache files with pooch.retrieve and pooch.create
- Пакеты
- Символы
-
- pooch.create
- pooch.retrieve
- Окружение
- python 3.12
- Создан
- 2026-08-26T00:03:09Z
Контракт
- pooch.create initializes a Pooch instance with base URL, cache directory, and file hash registry
- pooch.Pooch.get_url formats full download URLs for registered filenames
- pooch.Pooch.is_available verifies remote file availability via HTTP HEAD checks and raises ValueError if the file is not in registry
- pooch.Pooch.fetch downloads and validates remote files against registered checksums, returning local cache file paths
- pooch.Pooch.fetch reuses cached local files on subsequent calls without making additional network requests
- pooch.Pooch.fetch unpacks gzip archives when passed a pooch.Decompress processor
- pooch.retrieve downloads and validates single files directly to custom paths with SHA256 checksum verification
- pooch.retrieve raises ValueError when the downloaded content does not match the expected known_hash
- pooch.file_hash computes cryptographic SHA256 checksums of local files
Файлы
- PROMPT.md
- csx.json
- pyproject.toml
- requirements.txt
- spec.json
- test/contract.py
- uv.lock
Исходный сидер
аноним