Configuration

ManagerRuntimeConfig

class auto_proxy_vpn.configs.ManagerRuntimeConfig(log: bool = True, log_file: str | None = None, log_format: str = '%(asctime)-10s %(levelname)-5s %(message)s', logger: logging.Logger | None = None)[source]

Bases: object

log: bool = True
log_file: str | None = None
log_format: str = '%(asctime)-10s %(levelname)-5s %(message)s'
logger: Logger | None = None

BaseConfig

class auto_proxy_vpn.configs.BaseConfig(ssh_key: list[dict[str, str] | str] | dict[str, str] | str)[source]

Bases: ABC

provider: ClassVar[CloudProvider]
ssh_key: list[dict[str, str] | str] | dict[str, str] | str
abstractmethod unique_key() tuple[CloudProvider, str][source]

Returns a hashable value that uniquely identifies this configuration. Used to detect duplicates inside ProxyPool.

GoogleConfig

class auto_proxy_vpn.configs.GoogleConfig(ssh_key: list[dict[str, str] | str] | dict[str, str] | str, project: str, credentials: str = '')[source]

Bases: BaseConfig

provider: ClassVar = 'google'
project: str
credentials: str = ''
unique_key() tuple[CloudProvider, str][source]

Returns a hashable value that uniquely identifies this configuration. Used to detect duplicates inside ProxyPool.

AzureConfig

class auto_proxy_vpn.configs.AzureConfig(ssh_key: list[dict[str, str] | str] | dict[str, str] | str, credentials: str | dict[str, str] = '')[source]

Bases: BaseConfig

provider: ClassVar = 'azure'
credentials: str | dict[str, str] = ''
unique_key() tuple[CloudProvider, str][source]

Returns a hashable value that uniquely identifies this configuration. Used to detect duplicates inside ProxyPool.

DigitalOceanConfig

class auto_proxy_vpn.configs.DigitalOceanConfig(ssh_key: list[dict[str, str] | str] | dict[str, str] | str, project_name: str = 'AutoProxyVPN', project_description: str = 'On demand proxies', token: str = '')[source]

Bases: BaseConfig

provider: ClassVar = 'digitalocean'
project_name: str = 'AutoProxyVPN'
project_description: str = 'On demand proxies'
token: str = ''
unique_key() tuple[CloudProvider, str][source]

Returns a hashable value that uniquely identifies this configuration. Used to detect duplicates inside ProxyPool.

AwsConfig

class auto_proxy_vpn.configs.AwsConfig(ssh_key: list[dict[str, str] | str] | dict[str, str] | str, credentials: dict[str, str] | None = None)[source]

Bases: BaseConfig

provider: ClassVar = 'aws'
credentials: dict[str, str] | None = None
unique_key() tuple[CloudProvider, str][source]

Returns a hashable value that uniquely identifies this configuration. Used to detect duplicates inside ProxyPool.