saturnin._scripts.commands.oids

Typer commands for managing Saturnin’s Object Identifier (OID) registry.

This includes listing registered OIDs, updating the registry from remote specifications, and displaying detailed information about individual OIDs. The OID registry helps in uniquely identifying various entities like vendors, platforms, services, and applications within the Saturnin ecosystem.

Globals

saturnin._scripts.commands.oids.app

Typer command group for OID management commands

Parameters:
Return type:

Any

Command functions

saturnin._scripts.commands.oids.list_oids(with_name: Annotated[str, <typer.models.OptionInfo object at 0x7092a3375050>]='', *, show_oids: Annotated[bool, <typer.models.OptionInfo object at 0x7092a3375d10>]=False) None[source]

Lists registered OIDs, optionally filtering by name.

By default, OIDs are displayed as UUIDs. Use the --show-oids option to display them in their dotted decimal notation (e.g., 1.3.6.1.4.1.53446).

Parameters:
  • with_name (Annotated[str, <typer.models.OptionInfo object at 0x7092a3375ad0>])

  • show_oids (Annotated[bool, <typer.models.OptionInfo object at 0x7092a349ff10>])

Return type:

None

saturnin._scripts.commands.oids.show_oid(oid: ~typing.Annotated[str, <typer.models.ArgumentInfo object at 0x7092a32b18d0>]) None[source]

Show information about OID.

Parameters:

oid (Annotated[str, <typer.models.ArgumentInfo object at 0x7092a34cb890>])

Return type:

None

saturnin._scripts.commands.oids.update_oids(url: Annotated[str, <typer.models.ArgumentInfo object at 0x7092a3377690>]='https://raw.githubusercontent.com/FirebirdSQL/firebird-uuid/master/root.oid')[source]

Updates the local OID registry by downloading and parsing specifications.

This command fetches OID specifications starting from the given URL. The specifications can be linked, forming a tree of OID definitions. The local registry (stored in oids.toml) is then updated with the parsed information.

Parameters:

url (Annotated[str, <typer.models.ArgumentInfo object at 0x7092a336aa50>])