Skip to main content

No project description provided

Project description

iscc-lib

CI PyPI License

Experimental: This library is in early development (v0.0.x). APIs may change without notice. Not recommended for production use yet.

High-performance Python bindings for ISO 24138:2024 -- International Standard Content Code (ISCC). Built on a Rust core for speed, with a Pythonic API that is a drop-in replacement for iscc-core.

What is ISCC

The ISCC is a similarity-preserving fingerprint and identifier for digital media assets. ISCCs are generated algorithmically from digital content, just like cryptographic hashes. However, instead of using a single cryptographic hash function to identify data only, the ISCC uses various algorithms to create a composite identifier that exhibits similarity-preserving properties (soft hash).

Installation

pip install iscc-lib

Quick Start

import iscc_lib as ic

result = ic.gen_meta_code_v0("ISCC Test Document!")
print(f"Meta-Code: {result['iscc']}")

API Overview

Code Generators

Function Description
gen_meta_code_v0 Generate a Meta-Code from metadata fields
gen_text_code_v0 Generate a Text-Code from plain text
gen_image_code_v0 Generate an Image-Code from pixel data
gen_audio_code_v0 Generate an Audio-Code from Chromaprint data
gen_video_code_v0 Generate a Video-Code from frame signatures
gen_mixed_code_v0 Generate a Mixed-Code from Content-Codes
gen_data_code_v0 Generate a Data-Code from bytes or stream
gen_instance_code_v0 Generate an Instance-Code from bytes or stream
gen_iscc_code_v0 Generate a composite ISCC-CODE

Utilities

  • Text processing: text_clean, text_remove_newlines, text_trim, text_collapse
  • Algorithm primitives: alg_simhash, alg_minhash_256, alg_cdc_chunks, sliding_window
  • Soft hashing: soft_hash_video_v0
  • Encoding: encode_base64
  • Codec: iscc_decompose
  • Streaming: DataHasher, InstanceHasher for incremental processing
  • Diagnostics: conformance_selftest

Streaming functions (gen_data_code_v0, gen_instance_code_v0) accept both bytes and file-like objects (BinaryIO).

Links

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iscc_lib-0.0.1.tar.gz (89.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

iscc_lib-0.0.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (492.3 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

iscc_lib-0.0.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (493.4 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

iscc_lib-0.0.1-cp310-abi3-win_amd64.whl (428.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (533.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (492.7 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

iscc_lib-0.0.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (969.5 kB view details)

Uploaded CPython 3.10+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file iscc_lib-0.0.1.tar.gz.

File metadata

  • Download URL: iscc_lib-0.0.1.tar.gz
  • Upload date:
  • Size: 89.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iscc_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 143ea53d6a55849c6fd74c64f6c6a9557d30a9f9a71970aa8fdf73726c30dc1d
MD5 8fd689e4c0c008161beecb0178f2de33
BLAKE2b-256 df20f2ba3ee55ee7c96337838fae3eca7478846eb55c3f26298f569519d2fe3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for iscc_lib-0.0.1.tar.gz:

Publisher: release.yml on iscc/iscc-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iscc_lib-0.0.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for iscc_lib-0.0.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6e4ac915718356c4cfcc26ceed4d91774405a7479453dc112d7359b85e1274eb
MD5 4e4410abf0d54d91fb8e97adbf174466
BLAKE2b-256 cbfde2f18ff175dc05712fb7853856b9ff86cbe6ddd9279ab80580f12dc48ce1

See more details on using hashes here.

Provenance

The following attestation bundles were made for iscc_lib-0.0.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on iscc/iscc-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iscc_lib-0.0.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for iscc_lib-0.0.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a27f60abcc95b30a093d5a998640d08591d8d44db56c246fdb236144155c027e
MD5 653406e1587be87ec00ebd70b0adb6fc
BLAKE2b-256 ec87692db1e26b4cb90ab7552213bb504b84c1abe9c808caf0322bceca12c2f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for iscc_lib-0.0.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on iscc/iscc-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iscc_lib-0.0.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: iscc_lib-0.0.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 428.8 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iscc_lib-0.0.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 74471b4dc3b407f09cd4dde90e01fbc581eaf803d76dd9c3682686ed8370de90
MD5 af4f01b21d0135a46fe0d3e0bb2ddb6b
BLAKE2b-256 11e7db45f74c7750213f9f3a09b38cfb2cc45c018cc7728cc6a37153b5f7eec3

See more details on using hashes here.

Provenance

The following attestation bundles were made for iscc_lib-0.0.1-cp310-abi3-win_amd64.whl:

Publisher: release.yml on iscc/iscc-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ca6c896dea41ff7ab854bfe29605e8e27d1ecfe5ed23bf8b1a626c550ef8c82
MD5 02b806f18506070e320fd398cb21027a
BLAKE2b-256 57b38ba28484b026211ff0bf79fab63ec2aa58d5805f9f7112079abb70bcf585

See more details on using hashes here.

Provenance

The following attestation bundles were made for iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on iscc/iscc-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5c72754a3684b0126dd63a927a57c891897a93a9f06de1c31e93e49226231870
MD5 84a622bdbdb1c2fb37d1b2a7f6fd875d
BLAKE2b-256 a14a6ece4e43f8dcc4606faa531d390b9aa7d95de1ff953ca3dd31e40c2250fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for iscc_lib-0.0.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on iscc/iscc-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iscc_lib-0.0.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for iscc_lib-0.0.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 42c55be19f2d07c4362359c43545121eb8bd7e43bf6d6afa7fc0a3da3dcfad63
MD5 898b5307a606ce94025f1e1fc3517186
BLAKE2b-256 487eda3d05e52f64f1b9965081e6963ffaaabafec56c03b5764a837dcb7c3b13

See more details on using hashes here.

Provenance

The following attestation bundles were made for iscc_lib-0.0.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl:

Publisher: release.yml on iscc/iscc-lib

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page