eegprep.CatalogValidationOptions#

class eegprep.CatalogValidationOptions(allow_private=False, check_installed=False, check_import=False, current_eegprep_version=None, version_provider=<function version>, entry_points_provider=<function entry_points>)#

Bases: object

Validation switches for local and future catalog-CI checks.

Parameters:
  • allow_private (bool)

  • check_installed (bool)

  • check_import (bool)

  • current_eegprep_version (str | None)

  • version_provider (Any)

  • entry_points_provider (Any)

__init__(allow_private=False, check_installed=False, check_import=False, current_eegprep_version=None, version_provider=<function version>, entry_points_provider=<function entry_points>)#
Parameters:
  • allow_private (bool)

  • check_installed (bool)

  • check_import (bool)

  • current_eegprep_version (str | None)

  • version_provider (Any)

  • entry_points_provider (Any)

Return type:

None

Methods

__init__([allow_private, check_installed, ...])

entry_points_provider()

Return EntryPoint objects for all installed packages.

version_provider()

Get the version string for the named package.

Attributes

allow_private: bool = False#
check_installed: bool = False#
check_import: bool = False#
current_eegprep_version: str | None = None#
version_provider()#

Get the version string for the named package.

Parameters:

distribution_name – The name of the distribution package to query.

Returns:

The version string for the package as defined in the package’s “Version” metadata key.

entry_points_provider()#

Return EntryPoint objects for all installed packages.

Pass selection parameters (group or name) to filter the result to entry points matching those properties (see EntryPoints.select()).

For compatibility, returns SelectableGroups object unless selection parameters are supplied. In the future, this function will return EntryPoints instead of SelectableGroups even when no selection parameters are supplied.

For maximum future compatibility, pass selection parameters or invoke .select with parameters on the result.

Returns:

EntryPoints or SelectableGroups for all installed packages.

Return type:

EntryPoints | SelectableGroups