Skip to content

Credentials catalog

credentials_catalog

Credential declarations owned by axm-init.

pypi_credentials()

Declare the PyPI token consumed by axm-init.

Source code in packages/axm-init/src/axm_init/credentials_catalog.py
Python
def pypi_credentials() -> list[CredentialGroup]:
    """Declare the PyPI token consumed by axm-init."""
    token = CredentialSpec(
        name="token",
        env="PYPI_API_TOKEN",
        kind="token",
        sensitivity=Sensitivity.SECRET,
        required=True,
        default=None,
        prompt="PyPI API token: ",
        aliases=(),
    )
    group = CredentialGroup(
        id="pypi",
        package="axm-init",
        title="PyPI",
        specs=(token,),
        multi=False,
    )
    return [group]