MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_index

Function get_index

src/licensedcode/cache.py:456–470  ·  view source on GitHub ↗

Return and eventually build and cache a LicenseIndex.

(
    only_builtin=False,
    force=False,
    index_all_languages=False,
    additional_directory=None
)

Source from the content-addressed store, hash-verified

454
455
456def get_index(
457 only_builtin=False,
458 force=False,
459 index_all_languages=False,
460 additional_directory=None
461):
462 """
463 Return and eventually build and cache a LicenseIndex.
464 """
465 return get_cache(
466 only_builtin=only_builtin,
467 force=force,
468 index_all_languages=index_all_languages,
469 additional_directory=additional_directory
470 ).index
471
472
473get_cached_index = get_index

Calls 1

get_cacheFunction · 0.70