CodeSampleX

サンプル

verify pkg:pypi/orjson@3.11.9

sha256:f8344bc2f01f1dee17eb5cb282749b666f9c5af36338fe03921933d31be3be70

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 python 3.12 linux 24 · alpine · musl x64 python 3.12 python pip 24

検証実行環境

環境 コントラクト ステージ 実行日
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-28

ケース

HOW
ゴール
verify pkg:pypi/orjson@3.11.9
パッケージ
シンボル
  • orjson.dumps
  • orjson.loads
  • orjson.Fragment
  • orjson.OPT_APPEND_NEWLINE
  • orjson.OPT_INDENT_2
  • orjson.OPT_NAIVE_UTC
  • orjson.OPT_NON_STR_KEYS
  • orjson.OPT_OMIT_MICROSECONDS
  • orjson.OPT_PASSTHROUGH_DATACLASS
  • orjson.OPT_PASSTHROUGH_SUBCLASS
  • orjson.OPT_STRICT_INTEGER
  • orjson.OPT_UTC_Z
  • orjson.JSONDecodeError
  • orjson.JSONEncodeError
環境
python 3.12
作成日
2026-08-28T06:42:15Z

コントラクト

  1. assert orjson.dumps serializes @dataclass instances natively and respects OPT_PASSTHROUGH_DATACLASS for custom default serialization
  2. assert orjson.dumps with OPT_PASSTHROUGH_SUBCLASS delegates dict and list subclasses to default callable
  3. assert orjson.dumps with OPT_STRICT_INTEGER rejects integers outside 53-bit range [-(2**53-1), 2**53-1] with JSONEncodeError
  4. assert orjson.dumps supports OPT_APPEND_NEWLINE, OPT_NAIVE_UTC, OPT_OMIT_MICROSECONDS, and OPT_UTC_Z option bitmasks
  5. assert orjson.Fragment embeds raw pre-serialized JSON bytes directly into dumps output
  6. assert orjson.loads parses bytes, bytearray, memoryview, and str inputs while rejecting UTF-8 BOM and invalid UTF-8 with JSONDecodeError

ファイル

  • PROMPT.md
  • csx.json
  • pyproject.toml
  • requirements.txt
  • spec.json
  • test/contract.py

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名