record_registry

Registry mapping record NSIDs to their model.

atproto_client.models.record_registry.register_record_types(models_package: str, aliases: Mapping[str, str]) None

Register the record models a generated package defines.

Registration is by name, so no model module is imported until a record of that type is actually decoded.

Parameters:
  • models_package – Import path of the generated models package.

  • aliases – NSID to the alias of the module holding its Record.

atproto_client.models.record_registry.resolve_record_type(nsid: str) Type[UnknownRecordType] | None

Return the record model registered for an NSID, or None if there is none.