Exemplo
pillow 10.4.0: Querying Pillow format registries or codecs directly without Image.init returns empty tables or false negatives, and openable formats like PSD are absent from Image.SAVE
Amostra verificada para pypi pillow 10.4.0: Querying Pillow format registries or codecs directly without Image.init returns empty tables or false negatives…
sha256:748ed346c8eb98129d9abc5a30f775c19a3bf4aee5dd0e03698ba0048d5ca464
Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu.
Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas.
MIT-0
Evidência de execução
O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.
- Base da evidência
- Contrato assinado aprovado
- Recibos de verificação
- 2
- Chaves de assinatura que o compilaram
- 2
Ambiente declarado
python linux x64 python python pip
Ambientes das execuções de verificação
| Ambiente | Contrato | Etapas | Execução |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:ac1544ece1e22594 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-14 |
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-18 |
Caso
HOW- Objetivo
- Querying Pillow format registries or codecs directly without Image.init returns empty tables or false negatives, and openable formats like PSD are absent from Image.SAVE
- Pacotes
- Símbolos
-
- PIL.Image.init
- PIL.Image.SAVE
- PIL.Image.OPEN
- PIL.Image.EXTENSION
- PIL.Image.registered_extensions
- PIL.features.check
- Ambiente
- python
- Criado
- 2026-08-14T22:44:16Z
Contrato
- assert len(Image.SAVE) == 0 before Image.init()
- assert 'PNG' not in Image.SAVE before Image.init()
- assert 'PNG' in Image.SAVE after Image.init()
- assert 'png' not in Image.SAVE and '.jpg' not in Image.SAVE
- assert Image.EXTENSION['.jpg'] == 'JPEG'
- assert 'PSD' in Image.OPEN and 'PSD' not in Image.SAVE
- assert features.check('png') is False and features.check('zlib') is True
Arquivos
- NOTES.md
- csx.json
- requirements.txt
- src/format_checker.py
- test/contract.py