mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
define s3 and local uprn lookup classes
This commit is contained in:
parent
429b18a5ea
commit
4cbc3456f0
3 changed files with 21 additions and 0 deletions
7
backend/condition/lookups/uprn_lookup.py
Normal file
7
backend/condition/lookups/uprn_lookup.py
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
from abc import ABC, abstractmethod
|
||||||
|
from typing import Dict
|
||||||
|
|
||||||
|
|
||||||
|
class UprnLookup(ABC):
|
||||||
|
def get_location_ref_to_uprn_map() -> Dict[str, int]:
|
||||||
|
pass
|
||||||
7
backend/condition/lookups/uprn_lookup_local.py
Normal file
7
backend/condition/lookups/uprn_lookup_local.py
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
from typing import Dict
|
||||||
|
from backend.condition.lookups.uprn_lookup import UprnLookup
|
||||||
|
|
||||||
|
|
||||||
|
class UprnLookupLocal(UprnLookup):
|
||||||
|
def get_location_ref_to_uprn_map() -> Dict[str, int]:
|
||||||
|
raise NotImplementedError
|
||||||
7
backend/condition/lookups/uprn_lookup_s3.py
Normal file
7
backend/condition/lookups/uprn_lookup_s3.py
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
from typing import Dict
|
||||||
|
from backend.condition.lookups.uprn_lookup import UprnLookup
|
||||||
|
|
||||||
|
|
||||||
|
class UprnLookupS3(UprnLookup):
|
||||||
|
def get_location_ref_to_uprn_map() -> Dict[str, int]:
|
||||||
|
raise NotImplementedError
|
||||||
Loading…
Add table
Reference in a new issue