eqty-sdk 2.4.1__tar.gz → 2.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/Cargo.toml +1 -1
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/PKG-INFO +1 -1
- eqty_sdk-2.4.2/docs/examples/association-and-compute.md +9 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/index.md +1 -0
- eqty_sdk-2.4.2/examples/association-and-compute.py +67 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/pyproject.toml +1 -1
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/config.rs +73 -8
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/vc.rs +13 -7
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.claude/settings.local.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.envrc +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.github/workflows/build-import-test-images.yml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.github/workflows/ci.yml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.github/workflows/code-scan.yaml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.github/workflows/docs.yml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.github/workflows/import-tests.yml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.github/workflows/release.yml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.github/workflows/test-release.yml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.gitignore +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.pre-commit-config.yaml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.python-version +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.rgignore +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/.trivyignore +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/Cargo.lock +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/Justfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/LICENSE +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/README.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/clippy.toml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/assets.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/cid.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/compute.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/context.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/declaration.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/did.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/global-functions.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/index.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/init-and-config.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/service.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/signer.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/statements.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/uuid.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/api/verification.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/async-compute.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/auth-service-signer.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/basic-workflow.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/context-linking.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/custom-serialize.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/model-signing.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/nested-contexts.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/path-backed-assets.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/examples/service-registering.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/auditwheel-show-linux-aarch64.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/auditwheel-show-linux-x86_64.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/auditwheel-show-musllinux-aarch64.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/auditwheel-show-musllinux-x86_64.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/built-in-asset-types.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/otool-show-macos-arm64.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/otool-show-macos-x86_64.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/generated/otool-show-macos.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/index.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/install/min-version.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/install/package-managers.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/install/source.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/javascripts/theme-toggle.js +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/quick-start.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/docs/stylesheets/extra.css +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/__init__.pyi +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/_rust.pyi +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/agent.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/asset.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/benchmark.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/binary.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/certificate.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/code.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/configuration.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/credential.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/custom.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/database.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/dataset.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/document.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/guardrail.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/media.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/model.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/prompt.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/reasoning.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/skill.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/system_prompt.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/token.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/asset/tool.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/compute/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/compute/computation.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/compute/compute.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/compute/decorator.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/context.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/declaration.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/errors.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/metadata.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/py.typed +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/eqty_sdk/statements.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/async-compute.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/auth-service-signer.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/basic-workflow.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/context-linking.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/creating-the-model.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/custom-serialize.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/model-signing.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/path-backed-assets.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/quick-start.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/service-registering.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/examples/using-the-model.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/flake.lock +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/flake.nix +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/_basic_import.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/_basic_test.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/_example_manifests_test.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/_install_and_run.sh +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/_resolve_latest_github_version.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/_sys_info.sh +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/basic-workflow.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/context-linking.customer-project.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/context-linking.daily-run-2026-03-25.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/creating-the-model.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/model-signing.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/path-backed-assets.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/using-the-model.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/README.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/alpine322-python312/Dockerfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/centos7-python310/Dockerfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/debian-bookworm-python311/Dockerfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/ubi10-python312/Dockerfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/ubi9-python311/Dockerfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/ubuntu2204-python310/Dockerfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/ubuntu2404-python312/Dockerfile +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/install_and_run.sh +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/install_and_run_native.sh +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/manifests/keep +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/mkdocs.yml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/poetry.lock +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/pypi-readme.md +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/rust-toolchain +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/rustfmt.toml +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/scripts/generate_auditwheel_report.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/scripts/generate_stubs.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/scripts/manifest_diff.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/scripts/verify_manifest_roundtrip.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/cid.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/did.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/entity.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/indexer/mod.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/indexer/sqlite.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/indexer/sqlite_tests.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/indexer/testdata/simple.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/integrity_service/blobs.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/integrity_service/graph.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/integrity_service/statements.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/integrity_service.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/lib.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/signer.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/association.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/computation.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/data.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/did.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/entity.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/governance.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/metadata.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/mod.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/model_signing.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/statements/storage.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/stream.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/uuid.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/src/verification.rs +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/01_config_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/01_config_tests/test_config.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_add_declaration.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_basics.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_issue_vc.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_names.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_serialize_for_hashing.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_skip_registration.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_string.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_tuple.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_types.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_asset_with_context.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_blob_types.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_dataset_basics.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_model_signing_sigstore.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/asset_tests/test_prompt_assets.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_async_compute.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_computation_compute_cid.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_computation_inputs.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_computation_none_return.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_computation_outputs.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_computation_register.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_computation_store.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_compute.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_compute_decorator.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_compute_issue_vc.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/computation_tests/test_compute_list.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/context_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/context_tests/test_context_export.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/context_tests/test_context_factory.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/context_tests/test_context_linking.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/context_tests/test_context_new_guard.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/core_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/core_tests/test_cid.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/core_tests/test_store_blobs.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/core_tests/test_verification.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/fixtures/assets/datasets/file/file_text.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/fixtures/assets/datasets/file/file_text.txt.cid +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/fixtures/computations/output.txt +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/fixtures/computations/test.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/fixtures/iroh/collection/file1.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/fixtures/iroh/collection/file2.json +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/indexer_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/indexer_tests/test_graph_factory.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/signer_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/signer_tests/test_signer.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/statement_tests/__init__.py +0 -0
- {eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/tests/statement_tests/test_public_statements.py +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Association and Compute Statements
|
|
2
|
+
|
|
3
|
+
This example creates assets, records a computation from an input dataset to an output dataset, and adds one association statement for each association type: `CERTIFIES`, `INCLUDES`, and `IS_INSTANCE_OF`. Each association includes CID, UUID, and DID predicates. It then exports the context as a manifest.
|
|
4
|
+
|
|
5
|
+
Source: `examples/association-and-compute.py`
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
--8<-- "examples/association-and-compute.py"
|
|
9
|
+
```
|
|
@@ -4,6 +4,7 @@ These examples show how to use the SDK end to end instead of one API surface at
|
|
|
4
4
|
|
|
5
5
|
- `Basic Workflow`: initialize the SDK, create input assets, define a `@compute` function, execute it, and export a manifest.
|
|
6
6
|
- `Async Compute`: use `@compute` with async functions and async generators.
|
|
7
|
+
- `Association and Compute Statements`: create computation and association statements, then export them in one manifest.
|
|
7
8
|
- `Context Linking`: split lineage across root and child graphs while keeping them connected.
|
|
8
9
|
- `Nested Contexts`: create a local default context under a Governance Studio project, then create run-specific child contexts beneath it.
|
|
9
10
|
- `Path-Backed Assets`: register files from disk with `from_path(...)`.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""Create a manifest containing computation and association statements."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
from eqty_sdk import (
|
|
6
|
+
ASSOCIATION_TYPES,
|
|
7
|
+
DID,
|
|
8
|
+
UUID,
|
|
9
|
+
Association,
|
|
10
|
+
Computation,
|
|
11
|
+
Dataset,
|
|
12
|
+
Model,
|
|
13
|
+
Signer,
|
|
14
|
+
init,
|
|
15
|
+
set_active_signer,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
cfg = init()
|
|
19
|
+
|
|
20
|
+
signer = Signer.load_or_create(name="Association and Compute Signer")
|
|
21
|
+
set_active_signer(signer)
|
|
22
|
+
|
|
23
|
+
raw_data = Dataset.from_object(
|
|
24
|
+
{"records": 128, "source": "warehouse.snapshot"},
|
|
25
|
+
name="Raw Customer Records",
|
|
26
|
+
)
|
|
27
|
+
trained_model = Model.from_object(
|
|
28
|
+
{"name": "customer-segmenter", "version": "1.0"},
|
|
29
|
+
name="Customer Segmenter",
|
|
30
|
+
)
|
|
31
|
+
predictions = Dataset.from_object(
|
|
32
|
+
{"segments": ["enterprise", "self-serve"]},
|
|
33
|
+
name="Customer Segments",
|
|
34
|
+
)
|
|
35
|
+
data_steward = DID.from_did_string("did:key:z6MkiTBz1ymuepAQ4HEHYSF1H8quG5GLVVQR3djdX3mDooWp")
|
|
36
|
+
model_owner = DID.from_did_string("did:key:z6MknN7KqPUKfRkFqNmA4p6htpH7uUTiQzVtV3LZgMmMcV7S")
|
|
37
|
+
|
|
38
|
+
Computation.new(name="Generate Customer Segments").add_input_cid([raw_data.cid]).add_output_cid(
|
|
39
|
+
[predictions.cid]
|
|
40
|
+
).finalize()
|
|
41
|
+
|
|
42
|
+
Association.new(predictions.cid, ASSOCIATION_TYPES.IS_INSTANCE_OF).add_predicate(
|
|
43
|
+
[
|
|
44
|
+
trained_model.cid,
|
|
45
|
+
UUID("123e4567-e89b-12d3-a456-426614174000"),
|
|
46
|
+
model_owner,
|
|
47
|
+
]
|
|
48
|
+
).finalize()
|
|
49
|
+
|
|
50
|
+
Association.new(trained_model.cid, ASSOCIATION_TYPES.CERTIFIES).add_predicate(
|
|
51
|
+
[
|
|
52
|
+
predictions.cid,
|
|
53
|
+
UUID("123e4567-e89b-12d3-a456-426614174001"),
|
|
54
|
+
data_steward,
|
|
55
|
+
]
|
|
56
|
+
).finalize()
|
|
57
|
+
|
|
58
|
+
Association.new(raw_data.cid, ASSOCIATION_TYPES.INCLUDES).add_predicate(
|
|
59
|
+
[
|
|
60
|
+
predictions.cid,
|
|
61
|
+
UUID("123e4567-e89b-12d3-a456-426614174002"),
|
|
62
|
+
data_steward,
|
|
63
|
+
model_owner,
|
|
64
|
+
]
|
|
65
|
+
).finalize()
|
|
66
|
+
|
|
67
|
+
cfg.get_default_context().export(Path("./manifests/association-and-compute.json"))
|
|
@@ -44,7 +44,7 @@ build-backend = "maturin"
|
|
|
44
44
|
|
|
45
45
|
[project]
|
|
46
46
|
name = "eqty_sdk"
|
|
47
|
-
version = "2.4.
|
|
47
|
+
version = "2.4.2" # replaced from the release tag by release.yml
|
|
48
48
|
description = "Python SDK for generating cryptographically verifiable manifests, modeling asset lineage, signing outputs, and integrating with Governance Studio."
|
|
49
49
|
readme = { file = "pypi-readme.md", content-type = "text/markdown" }
|
|
50
50
|
license = "Apache-2.0"
|
|
@@ -7,11 +7,11 @@ use std::{
|
|
|
7
7
|
sync::Arc,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
use anyhow::{anyhow, Result};
|
|
10
|
+
use anyhow::{anyhow, bail, Result};
|
|
11
11
|
use integrity::{
|
|
12
12
|
blob_store::{BlobStore, LocalFs},
|
|
13
13
|
cid::iroh::{CidIgnoreConfig, HashingConfig},
|
|
14
|
-
signer::SignerType,
|
|
14
|
+
signer::{SignerType, VCompNotarySigner},
|
|
15
15
|
};
|
|
16
16
|
use once_cell::sync::Lazy;
|
|
17
17
|
use pyo3::prelude::*;
|
|
@@ -491,6 +491,67 @@ impl Config {
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
+
/// Notary's current signing DID via /get_dids.
|
|
495
|
+
async fn notary_container_did(url: &str) -> Result<String> {
|
|
496
|
+
let res: serde_json::Value = reqwest::Client::new()
|
|
497
|
+
.get(format!("{url}/get_dids"))
|
|
498
|
+
.send()
|
|
499
|
+
.await?
|
|
500
|
+
.json()
|
|
501
|
+
.await?;
|
|
502
|
+
res.get("registeredBy")
|
|
503
|
+
.and_then(|d| d.as_str())
|
|
504
|
+
.map(String::from)
|
|
505
|
+
.ok_or_else(|| anyhow!("notary /get_dids response missing registeredBy"))
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/// Register a signer's DID-registration credentials and blobs into the store.
|
|
509
|
+
async fn register_vcomp_credentials(
|
|
510
|
+
config: &Config,
|
|
511
|
+
signer: &VCompNotarySigner,
|
|
512
|
+
) -> Result<Vec<CID>> {
|
|
513
|
+
use integrity::lineage::models::statements::{Statement, StatementTrait};
|
|
514
|
+
let mut ids = Vec::new();
|
|
515
|
+
if let Some(statements) = &signer.credentials {
|
|
516
|
+
for value in statements.values() {
|
|
517
|
+
let statement: Statement = serde_json::from_value(value.clone())?;
|
|
518
|
+
ids.push(CID::new(statement.get_id()));
|
|
519
|
+
config
|
|
520
|
+
.sql_lite
|
|
521
|
+
.register_statement(&statement, &config.default_context.id)
|
|
522
|
+
.await?;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if let Some(blobs) = &signer.did_blobs {
|
|
526
|
+
for data in blobs.values() {
|
|
527
|
+
config.blob_store.put(data.clone(), 0, None).await?;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
Ok(ids)
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/// Notary signer for the next statement; if the notary rotated its key, fetch and store the new credential.
|
|
534
|
+
pub async fn sync_active_notary_signer(
|
|
535
|
+
config: &Config,
|
|
536
|
+
vcomp: &VCompNotarySigner,
|
|
537
|
+
) -> Result<SignerType> {
|
|
538
|
+
let signing_did = notary_container_did(&vcomp.url).await?;
|
|
539
|
+
if signing_did == vcomp.did_doc.id {
|
|
540
|
+
return Ok(SignerType::VCompNotarySigner(vcomp.clone()));
|
|
541
|
+
}
|
|
542
|
+
let fresh = VCompNotarySigner::create(&vcomp.url, None).await?;
|
|
543
|
+
if fresh.did_doc.id != signing_did {
|
|
544
|
+
bail!(
|
|
545
|
+
"notary signing key {signing_did} does not match fetched credential key {}",
|
|
546
|
+
fresh.did_doc.id
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
register_vcomp_credentials(config, &fresh).await?;
|
|
550
|
+
let signer = SignerType::VCompNotarySigner(fresh);
|
|
551
|
+
Config::set_active_signer_async(signer.clone(), None).await?;
|
|
552
|
+
Ok(signer)
|
|
553
|
+
}
|
|
554
|
+
|
|
494
555
|
/// Creates a VC statement for the given statement id and registers it to sqlite
|
|
495
556
|
pub async fn create_vc_for_statement(
|
|
496
557
|
config: &Config,
|
|
@@ -503,13 +564,17 @@ pub async fn create_vc_for_statement(
|
|
|
503
564
|
vc,
|
|
504
565
|
};
|
|
505
566
|
|
|
506
|
-
let signer = config
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
567
|
+
let signer = match &config.active_signer {
|
|
568
|
+
Some(ActiveSigner {
|
|
569
|
+
signer: SignerType::VCompNotarySigner(vcomp),
|
|
570
|
+
..
|
|
571
|
+
}) => sync_active_notary_signer(config, vcomp).await?,
|
|
572
|
+
Some(active) => active.signer.clone(),
|
|
573
|
+
None => bail!("An active signer is not set"),
|
|
574
|
+
};
|
|
510
575
|
|
|
511
|
-
let registered_by = signer.
|
|
512
|
-
let vc = vc::issue_vc(&statement_id.to_string(), signer
|
|
576
|
+
let registered_by = signer.get_did_doc().id.clone();
|
|
577
|
+
let vc = vc::issue_vc(&statement_id.to_string(), signer).await?;
|
|
513
578
|
let vc = serde_json::from_value(serde_json::to_value(vc)?)?;
|
|
514
579
|
let vc_statement =
|
|
515
580
|
Statement::CredentialRegistration(VcStatement::create(vc, registered_by, timestamp).await?);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
use anyhow::anyhow;
|
|
2
2
|
use integrity::{
|
|
3
3
|
lineage::models::statements::{Statement, StatementTrait, VcStatement},
|
|
4
|
+
signer::SignerType,
|
|
4
5
|
vc,
|
|
5
6
|
};
|
|
6
7
|
use pyo3::{pyfunction, PyResult, Python};
|
|
7
8
|
|
|
8
|
-
use crate::{with_cfg, Context, CID};
|
|
9
|
+
use crate::{config::ActiveSigner, with_cfg, Context, CID};
|
|
9
10
|
|
|
10
11
|
#[pyfunction]
|
|
11
12
|
#[pyo3(signature = (subject, *, timestamp=None, context=None))]
|
|
@@ -17,12 +18,17 @@ pub fn add_vc_statement(
|
|
|
17
18
|
) -> PyResult<CID> {
|
|
18
19
|
with_cfg!(py, |ctx| {
|
|
19
20
|
let graph_id = ctx.resolve_graph_id(context);
|
|
20
|
-
let signer = ctx
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
let signer = match &ctx.active_signer {
|
|
22
|
+
Some(ActiveSigner {
|
|
23
|
+
signer: SignerType::VCompNotarySigner(vcomp),
|
|
24
|
+
..
|
|
25
|
+
}) => crate::config::sync_active_notary_signer(&ctx, vcomp).await?,
|
|
26
|
+
Some(active) => active.signer.clone(),
|
|
27
|
+
None => Err(anyhow!("No active signer available"))?,
|
|
28
|
+
};
|
|
29
|
+
let registered_by = signer.get_did_doc().id.clone();
|
|
30
|
+
|
|
31
|
+
let vc = vc::issue_vc(&subject, signer).await?;
|
|
26
32
|
let vc = serde_json::from_value(serde_json::to_value(vc).map_err(anyhow::Error::from)?)
|
|
27
33
|
.map_err(anyhow::Error::from)?;
|
|
28
34
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/examples/context-linking.customer-project.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eqty_sdk-2.4.1 → eqty_sdk-2.4.2}/integration-tests/images/debian-bookworm-python311/Dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|