Application ports for the core layer.
Defines the abstractions (Protocol) that the application depends
on. Concrete implementations live in axm_init.adapters and depend
on these ports, never the reverse (hexagonal dependency rule).
AvailabilityChecker
Bases: Protocol
Port for checking package-name availability on an index.
Source code in packages/axm-init/src/axm_init/core/ports.py
| Python |
|---|
| class AvailabilityChecker(Protocol):
"""Port for checking package-name availability on an index."""
def check_availability(self, name: str) -> AvailabilityStatus:
"""Return the availability status of ``name`` on the index."""
...
|
check_availability(name)
Return the availability status of name on the index.
Source code in packages/axm-init/src/axm_init/core/ports.py
| Python |
|---|
| def check_availability(self, name: str) -> AvailabilityStatus:
"""Return the availability status of ``name`` on the index."""
...
|