Software Heritage Content Indexer
Project description
swh-indexer
Tools to compute multiple indexes on SWH's raw contents:
- content:
- mimetype
- ctags
- language
- fossology-license
- metadata
- revision:
- metadata
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
-
language (queue swh_indexer_content_language): detect the programming language
-
ctags (queue swh_indexer_content_ctags): compute tags information
-
fossology-license (queue swh_indexer_fossology_license): compute the license
-
metadata: translate file into translated_metadata dict
Current revision indexers:
- metadata: detects files containing metadata and retrieves translated_metadata in content_metadata table in storage or run content indexer to translate files.
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-0.8.0.tar.gz
(130.6 kB
view hashes)
Built Distribution
swh.indexer-0.8.0-py3-none-any.whl
(147.8 kB
view hashes)
Close
Hashes for swh.indexer-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0140a40024beb5a2e094929d571ea4d60b8d54a235cbd9c8757e1b52041e5de |
|
MD5 | 9f4aeb10ffaba01770aa6b3c502fa3eb |
|
BLAKE2b-256 | 1963ca5229cfc541bc84af89a5211a0b0ec6135b66e6e87ed8dac6ca84b56d1f |