cadrumo.core.product_identity module

Canonical, import-light Cadrumo product identity vocabulary.

This module is the single runtime authority for names that identify the application. PRODUCT_IDENTITY projects the accepted CADRUMO tuple into an immutable, import-light value.

AEAT remains correct when it denotes the Agencia Estatal de Administracion Tributaria, its portals, protocols, credentials, official artefacts, legal provenance, or registry classifications. It is not a former-product alias. Conversely, every product surface uses the CADRUMO values below; this module provides no legacy spelling, compatibility lookup, or fallback.

class ProductIdentity(display_name, prose_name, python_package, distribution, cli_executable, repository, plugin_identifier, environment_prefix, companion_distributions, companion_namespace)[source]

Bases: NamedTuple

Immutable names that jointly identify the Cadrumo product.

repository is the owner-qualified source repository slug.

Parameters:
  • display_name (str)

  • prose_name (str)

  • python_package (str)

  • distribution (str)

  • cli_executable (str)

  • repository (str)

  • plugin_identifier (str)

  • environment_prefix (str)

  • companion_distributions (tuple[str, str])

  • companion_namespace (str)

display_name: str

Alias for field number 0

prose_name: str

Alias for field number 1

python_package: str

Alias for field number 2

distribution: str

Alias for field number 3

cli_executable: str

Alias for field number 4

repository: str

Alias for field number 5

plugin_identifier: str

Alias for field number 6

environment_prefix: str

Alias for field number 7

companion_distributions: tuple[str, str]

Alias for field number 8

companion_namespace: str

Alias for field number 9

AEAT_AUTHORITY_SHORT_NAME: Final[str]

Short legal name retained only for the external tax authority referent.

normalise_product_identity_references(value)[source]

Replace only stale human command prefixes with the canonical executable.

Return type:

str

Parameters:

value (str)