Settings
Settings
- class oagdedupe.settings.Settings(_env_file: Optional[Union[str, PathLike, List[Union[str, PathLike]], Tuple[Union[str, PathLike], ...]]] = '<object object>', _env_file_encoding: Optional[str] = None, _env_nested_delimiter: Optional[str] = None, _secrets_dir: Optional[Union[str, PathLike]] = None, *, attributes: list = ['name', 'addr'], name: str = 'default', folder: Path = PosixPath('.dedupe'), model: SettingsModel = SettingsModel(dedupe=True, n=5000, k=3, max_compare=1000000, n_covered=500000, cpus=1, path_model=PosixPath('.dedupe/model')), db: Optional[SettingsDB] = SettingsDB(path_database='postgresql+psycopg2://username:password@0.0.0.0:8000/db', db_schema='dedupe'), label_studio: SettingsLabelStudio = SettingsLabelStudio(host='http://0.0.0.0', port=8090, api_key='please provide an api key', description='entity resolution'), fast_api: SettingsService = SettingsService(host='http://0.0.0.0', port=8090))[source]
project settings
- _abc_impl = <_abc_data object>
- property compare_cols: List[str]
gets comparison columns with “_l” and “_r” suffices
- Return type
List[str]
Examples
>>> self.settings.attributes = ["name", "address"] >>> compare_cols() [ "name_l", "address_l", "name_r", "address_r", "_index_l", "_index_r" ]
- db: Optional[SettingsDB]
label studio settings
- fast_api: SettingsService
- label_studio: SettingsLabelStudio
fast api settings
- model: SettingsModel
other project settings
- class oagdedupe.settings.SettingsDB(*, path_database: str = 'postgresql+psycopg2://username:password@0.0.0.0:8000/db', db_schema: str = 'dedupe')[source]
Other project settings
- _abc_impl = <_abc_data object>
- property db
- class oagdedupe.settings.SettingsLabelStudio(*, host: str = 'http://0.0.0.0', port: int = 8090, api_key: str = 'please provide an api key', description: str = 'entity resolution')[source]
- _abc_impl = <_abc_data object>