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

This version

4.5.1

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.5.1.tar.gz (194.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.5.1-py3-none-any.whl (240.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swh_indexer-4.5.1.tar.gz
  • Upload date:
  • Size: 194.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.5.1.tar.gz
Algorithm Hash digest
SHA256 f9682daf9e35169f2dd89727ad2ff0ca2d2e81939e3c346c3bf87f5c4fbc5c01
MD5 4d34c5e39ac9f76b0fd303324c2651b2
BLAKE2b-256 96c151a81d7329ab4dfd5d1b0111460658c035517460ab8ed90ea9d0cce93826

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swh_indexer-4.5.1-py3-none-any.whl
  • Upload date:
  • Size: 240.4 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5854da877401eff2a18f0a224c5a83f17de477dbfd884f7b3f507f4bd70bb80
MD5 f0cd5a8ce4bd29d7d1393e7174bf820d
BLAKE2b-256 bab0c468d233ad560e12de27c54dbe072c6fe272d75d0ede7375e574ec90d002

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