abydos.util package

abydos.util.

The util module defines various utility functions for other modules within Abydos, including:

  • _prod -- computes the product of a collection of numbers (akin to sum)

These functions are not intended for use by users.

abydos.util.download_package(resource_name: str, url: str | None = None, data_path: str | None = None, force: bool = False, silent: bool = False) None[source]

Download and install a package or collection.

abydos.util.list_available_packages(url: str | None = None) Tuple[List[Tuple[str, str, float, str, str, str]], List[Tuple[str, str, List[str]]]][source]

List all data packages available for install.

abydos.util.list_installed_packages(path: str | None = None) List[Tuple[str, str, float]][source]

List all installed data packages.

abydos.util.package_path(resource_name: str) str[source]

Given a resource name, returns the path to the package.