Skip to main content

Software Heritage indexer

Project description

Tools to compute multiple indexes on SWH’s raw contents:

  • content:

    • mimetype

    • fossology-license

    • metadata

  • origin:

    • metadata (intrinsic, using the content indexer; and extrinsic)

An indexer is in charge of:

  • looking up objects

  • extracting information from those objects

  • store those information in the swh-indexer db

There are multiple indexers working on different object types:

  • content indexer: works with content sha1 hashes

  • revision indexer: works with revision sha1 hashes

  • origin indexer: works with origin identifiers

Indexation procedure:

  • receive batch of ids

  • retrieve the associated data depending on object type

  • compute for that object some index

  • store the result to swh’s storage

Current content indexers:

  • mimetype (queue swh_indexer_content_mimetype): detect the encoding and mimetype

  • fossology-license (queue swh_indexer_fossology_license): compute the license

  • metadata: translate file from an ecosystem-specific formats to JSON-LD (using schema.org/CodeMeta vocabulary)

Current origin indexers:

  • metadata: translate file from an ecosystem-specific formats to JSON-LD (using schema.org/CodeMeta and ForgeFed vocabularies)

Custom indexers and metadata mappings can be added as plugins.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

swh_indexer-4.10.0.tar.gz (200.6 kB view details)

Uploaded Source

Built Distribution

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

swh_indexer-4.10.0-py3-none-any.whl (247.3 kB view details)

Uploaded Python 3

File details

Details for the file swh_indexer-4.10.0.tar.gz.

File metadata

  • Download URL: swh_indexer-4.10.0.tar.gz
  • Upload date:
  • Size: 200.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for swh_indexer-4.10.0.tar.gz
Algorithm Hash digest
SHA256 7eadf9fccf1c1bb716f26f1c4558497caff244a8df53b91e9c787d1837574cc0
MD5 2ba7aa8973dd7aaba183ecfd2cfcaf88
BLAKE2b-256 d3e11fce0ff1e2d41f6007a4291d52c5272fa5123160cd0ca0ed0dee9ac77a9f

See more details on using hashes here.

File details

Details for the file swh_indexer-4.10.0-py3-none-any.whl.

File metadata

  • Download URL: swh_indexer-4.10.0-py3-none-any.whl
  • Upload date:
  • Size: 247.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for swh_indexer-4.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33af63c68b6a305ef4916cc827400555b788bde930185bfaa5696a1c070d7ac6
MD5 8ffc7b49938b3a4ebdb085e546b19be6
BLAKE2b-256 160f6e0c365c6be0d74facb7df889d5e63a4d359b9fc905ef67c86e9d5d989c4

See more details on using hashes here.

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