Skip to content

protocol

plugins.protocol.Plugin

Bases: Protocol

Source code in plugins/protocol.py
27
28
29
30
31
32
33
@runtime_checkable
class Plugin(Protocol):
	@abstractmethod
	async def get_address_by_zipcode(
		self: Self, zipcode: PositiveInt
	) -> DictResponse:
		"""Get address by zipcode."""

get_address_by_zipcode(zipcode) abstractmethod async

Get address by zipcode.

Source code in plugins/protocol.py
29
30
31
32
33
@abstractmethod
async def get_address_by_zipcode(
	self: Self, zipcode: PositiveInt
) -> DictResponse:
	"""Get address by zipcode."""