hired.search.registry#

Registry system for managing job search sources.

Functions

get_registry()

Get the global source registry.

register_source(source[, source_class])

Register a source with the global registry.

Classes

SourceRegistry()

Registry for job search sources.

class hired.search.registry.SourceRegistry[source]#

Bases: object

Registry for job search sources.

Provides a plugin system where sources can be registered and retrieved by name.

get(name)[source]#

Get a source by name.

Parameters:

name (str) – Name of the source

Return type:

JobSearchSource

Returns:

JobSearchSource instance

Raises:

KeyError – If source not found

get_source_info(name)[source]#

Get information about a source.

Parameters:

name (str) – Name of the source

Return type:

Dict[str, Any]

Returns:

Dictionary with source information

list_available_sources()[source]#

List sources that are properly configured and ready to use.

Return type:

List[str]

Returns:

List of source names that are configured

list_sources()[source]#

List all registered source names.

Return type:

List[str]

Returns:

List of source names

list_unconfigured_sources()[source]#

List sources that are registered but not configured.

Return type:

List[str]

Returns:

List of source names that need configuration

register(source, source_class=None)[source]#

Register a job search source.

Parameters:
Return type:

None

unregister(name)[source]#

Unregister a source by name.

Parameters:

name (str) – Name of the source to unregister

Return type:

None

hired.search.registry.get_registry()[source]#

Get the global source registry.

Return type:

SourceRegistry

hired.search.registry.register_source(source, source_class=None)[source]#

Register a source with the global registry.

Parameters:
Return type:

None