Types#

class aioproxyline.types.Balance(*, balance: float, partner_balance: float)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

balance: float#
partner_balance: float#
class aioproxyline.types.ProxyStatus(value)[source]#

Bases: str, Enum

An enumeration.

ACTIVE = 'active'#
EXPIRED = 'expired'#
DELETED = 'deleted'#
class aioproxyline.types.ProxyProtocol(value)[source]#

Bases: int, Enum

An enumeration.

IPv4 = 4#
IPv6 = 6#
class aioproxyline.types.ProxyType(value)[source]#

Bases: Enum

An enumeration.

DEDICATED = 'dedicated'#
SHARED = 'shared'#
class aioproxyline.types.Countries(*, code: str, name: str, cities: List[Cities])[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

code: str#
name: str#
cities: List[Cities]#
class aioproxyline.types.ProxyFormat(value)[source]#

Bases: str, Enum

An enumeration.

HTTP = 'txt-http'#
SOCKS5 = 'txt-socks5'#
CUSTOM_HTTP = 'custom-http'#
CUSTOM_SOCKS5 = 'custom-socks5'#
class aioproxyline.types.IPs(*, id: int, ip: str)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

id: int#
ip: str#
class aioproxyline.types.IPsCount(*, count: int)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

count: int#
class aioproxyline.types.OrderPrice(*, amount: float, data: PriceData)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

price: float#
data: PriceData#
class aioproxyline.types.Order(*, id: int, date: datetime)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

id: int#
date: datetime#
class aioproxyline.types.ProxyInfo(*, id: int, ip: str, internal_ip: Optional[str] = None, port_http: int, port_socks5: int, user: str, username: str, password: str, order_id: int, type: ProxyType, ip_version: ProxyProtocol, country: str, date: datetime, date_end: datetime, tags: Optional[List[ProxyTags]] = None, access_ips: Optional[List[ProxyAccessIPs]] = None)[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

id: int#
ip: str#
internal_ip: Optional[str]#
http_port: int#
socks5_port: int#
user: str#
username: str#
password: str#
order_id: int#
type: ProxyType#
ip_version: ProxyProtocol#
country: str#
date: datetime#
date_end: datetime#
tags: Optional[List[ProxyTags]]#
access_ips: Optional[List[ProxyAccessIPs]]#
class aioproxyline.types.ProxyList(*, count: int, next: Optional[str] = None, previous: Optional[str] = None, results: List[ProxyInfo])[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

count: int#
next: Optional[str]#
previous: Optional[str]#
results: List[ProxyInfo]#