1217 lines
48 KiB
Python
1217 lines
48 KiB
Python
from _typeshed import Incomplete, StrOrBytesPath
|
|
from collections.abc import AsyncIterator, Awaitable
|
|
from datetime import timedelta, tzinfo
|
|
from ipaddress import IPv4Address, IPv6Address
|
|
from typing import Any, Final, final
|
|
|
|
@final
|
|
class BoardData:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "BoardData") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "BoardData": ...
|
|
@property
|
|
def active(self, /) -> bool |None: ...
|
|
@property
|
|
def board_temperature(self, /) -> float |None: ...
|
|
@property
|
|
def chips(self, /) -> list[ChipData]: ...
|
|
@property
|
|
def expected_chips(self, /) -> int |None: ...
|
|
@property
|
|
def expected_hashrate(self, /) -> HashRate |None: ...
|
|
@property
|
|
def frequency(self, /) -> float |None: ...
|
|
@property
|
|
def hashrate(self, /) -> HashRate |None: ...
|
|
@property
|
|
def inlet_chip_temperature(self, /) -> float |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "BoardData": ...
|
|
@property
|
|
def outlet_chip_temperature(self, /) -> float |None: ...
|
|
@property
|
|
def position(self, /) -> int: ...
|
|
@property
|
|
def serial_number(self, /) -> str |None: ...
|
|
@property
|
|
def tuned(self, /) -> bool |None: ...
|
|
@property
|
|
def voltage(self, /) -> float |None: ...
|
|
@property
|
|
def working_chips(self, /) -> int |None: ...
|
|
|
|
@final
|
|
class ChipData:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "ChipData") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "ChipData": ...
|
|
@property
|
|
def frequency(self, /) -> float |None: ...
|
|
@property
|
|
def hashrate(self, /) -> HashRate |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "ChipData": ...
|
|
@property
|
|
def position(self, /) -> int: ...
|
|
@property
|
|
def temperature(self, /) -> float |None: ...
|
|
@property
|
|
def tuned(self, /) -> bool |None: ...
|
|
@property
|
|
def voltage(self, /) -> float |None: ...
|
|
@property
|
|
def working(self, /) -> bool |None: ...
|
|
|
|
@final
|
|
class DataField:
|
|
ApiVersion: Final[DataField]
|
|
AverageTemperature: Final[DataField]
|
|
BestShare: Final[DataField]
|
|
Chips: Final[DataField]
|
|
ControlBoardVersion: Final[DataField]
|
|
DeviceInfo: Final[DataField]
|
|
Efficiency: Final[DataField]
|
|
ExpectedHashrate: Final[DataField]
|
|
Fans: Final[DataField]
|
|
FirmwareVersion: Final[DataField]
|
|
FluidTemperature: Final[DataField]
|
|
Hashboards: Final[DataField]
|
|
Hashrate: Final[DataField]
|
|
Hostname: Final[DataField]
|
|
Ip: Final[DataField]
|
|
IsMining: Final[DataField]
|
|
LightFlashing: Final[DataField]
|
|
Mac: Final[DataField]
|
|
Messages: Final[DataField]
|
|
OperatingState: Final[DataField]
|
|
OutletFluidTemperature: Final[DataField]
|
|
Pools: Final[DataField]
|
|
PsuFans: Final[DataField]
|
|
SchemaVersion: Final[DataField]
|
|
SerialNumber: Final[DataField]
|
|
SessionBestShare: Final[DataField]
|
|
Timestamp: Final[DataField]
|
|
TuningCapabilities: Final[DataField]
|
|
TuningPercent: Final[DataField]
|
|
TuningTarget: Final[DataField]
|
|
Uptime: Final[DataField]
|
|
Wattage: Final[DataField]
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __int__(self, /) -> int: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "DataField") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "DataField": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "DataField": ...
|
|
|
|
@final
|
|
class DeviceInfo:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "DeviceInfo") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "DeviceInfo": ...
|
|
@property
|
|
def algo(self, /) -> HashAlgorithm: ...
|
|
@property
|
|
def firmware(self, /) -> str: ...
|
|
@property
|
|
def hardware(self, /) -> MinerHardware: ...
|
|
@property
|
|
def make(self, /) -> str: ...
|
|
@property
|
|
def model(self, /) -> str: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "DeviceInfo": ...
|
|
|
|
class FanConfig:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "FanConfig") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "FanConfig": ...
|
|
@staticmethod
|
|
def auto(target_temp: float, idle_speed: int |None = None) -> FanConfig: ...
|
|
@property
|
|
def fan_speed(self, /) -> int |None: ...
|
|
@property
|
|
def idle_speed(self, /) -> int |None: ...
|
|
@staticmethod
|
|
def manual(fan_speed: int) -> FanConfig: ...
|
|
@property
|
|
def mode(self, /) -> str: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "FanConfig": ...
|
|
@property
|
|
def target_temp(self, /) -> float |None: ...
|
|
@final
|
|
class Auto(FanConfig):
|
|
__match_args__: Final = ("target_temp", "idle_speed")
|
|
def __new__(cls, /, target_temp: float, idle_speed: int |None) -> FanConfig.Auto: ...
|
|
@property
|
|
def idle_speed(self, /) -> int |None: ...
|
|
@property
|
|
def target_temp(self, /) -> float: ...
|
|
@final
|
|
class Manual(FanConfig):
|
|
__match_args__: Final = ("fan_speed",)
|
|
def __new__(cls, /, fan_speed: int) -> FanConfig.Manual: ...
|
|
@property
|
|
def fan_speed(self, /) -> int: ...
|
|
|
|
@final
|
|
class FanData:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "FanData") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "FanData": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "FanData": ...
|
|
@property
|
|
def position(self, /) -> int: ...
|
|
@property
|
|
def rpm(self, /) -> float |None: ...
|
|
|
|
@final
|
|
class FanMode:
|
|
Auto: Final[FanMode]
|
|
Manual: Final[FanMode]
|
|
def __int__(self, /) -> int: ...
|
|
def __repr__(self, /) -> str: ...
|
|
|
|
@final
|
|
class FirmwareImage:
|
|
@property
|
|
def bytes(self, /) -> list[int]: ...
|
|
@property
|
|
def filename(self, /) -> str: ...
|
|
|
|
@final
|
|
class FirmwareStats:
|
|
@property
|
|
def current_version(self, /) -> str |None: ...
|
|
@property
|
|
def latest_version(self, /) -> str |None: ...
|
|
@property
|
|
def update_available(self, /) -> bool: ...
|
|
@property
|
|
def firmware(self, /) -> "FirmwareUpdate | None": ...
|
|
|
|
class FirmwareUpdate:
|
|
@property
|
|
def variant(self, /) -> str: ...
|
|
@property
|
|
def url(self, /) -> str |None: ...
|
|
@property
|
|
def filename(self, /) -> str |None: ...
|
|
@property
|
|
def data(self, /) -> list[int] |None: ...
|
|
|
|
@final
|
|
class HashAlgorithm:
|
|
Blake256R14: Final[HashAlgorithm]
|
|
Blake2S256: Final[HashAlgorithm]
|
|
Eaglesong: Final[HashAlgorithm]
|
|
Equihash: Final[HashAlgorithm]
|
|
EtHash: Final[HashAlgorithm]
|
|
Handshake: Final[HashAlgorithm]
|
|
KHeavyHash: Final[HashAlgorithm]
|
|
Kadena: Final[HashAlgorithm]
|
|
SHA256: Final[HashAlgorithm]
|
|
Scrypt: Final[HashAlgorithm]
|
|
Unknown: Final[HashAlgorithm]
|
|
X11: Final[HashAlgorithm]
|
|
def __eq__(self, /, other: Any) -> bool: ...
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __hash__(self, /) -> int: ...
|
|
def __int__(self, /) -> int: ...
|
|
def __ne__(self, /, other: Any) -> bool: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "HashAlgorithm") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "HashAlgorithm": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "HashAlgorithm": ...
|
|
|
|
@final
|
|
class HashRate:
|
|
def __float__(self, /) -> float: ...
|
|
def __format__(self, /, format_spec: str) -> str: ...
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __new__(cls, /, value: float, unit: "HashRateUnit | None" = None, algo: "HashAlgorithm | str | None" = None) -> HashRate: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "HashRate") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "HashRate": ...
|
|
@property
|
|
def algo(self, /) -> HashAlgorithm: ...
|
|
def as_unit(self, /, unit: "HashRateUnit") -> HashRate: ...
|
|
def into_unit(self, /, unit: "HashRateUnit") -> HashRate: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "HashRate": ...
|
|
@property
|
|
def unit(self, /) -> HashRateUnit: ...
|
|
@property
|
|
def value(self, /) -> float: ...
|
|
|
|
@final
|
|
class HashRateTuningCapabilities:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "HashRateTuningCapabilities") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "HashRateTuningCapabilities": ...
|
|
@property
|
|
def default(self, /) -> TuningTarget |None: ...
|
|
@property
|
|
def maximum(self, /) -> TuningTarget |None: ...
|
|
@property
|
|
def minimum(self, /) -> TuningTarget |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "HashRateTuningCapabilities": ...
|
|
|
|
@final
|
|
class HashRateUnit:
|
|
EH: Final[HashRateUnit]
|
|
ExaHash: Final[HashRateUnit]
|
|
GH: Final[HashRateUnit]
|
|
GigaHash: Final[HashRateUnit]
|
|
H: Final[HashRateUnit]
|
|
Hash: Final[HashRateUnit]
|
|
KH: Final[HashRateUnit]
|
|
KiloHash: Final[HashRateUnit]
|
|
MH: Final[HashRateUnit]
|
|
MegaHash: Final[HashRateUnit]
|
|
PH: Final[HashRateUnit]
|
|
PetaHash: Final[HashRateUnit]
|
|
TH: Final[HashRateUnit]
|
|
TeraHash: Final[HashRateUnit]
|
|
YH: Final[HashRateUnit]
|
|
YottaHash: Final[HashRateUnit]
|
|
ZH: Final[HashRateUnit]
|
|
ZettaHash: Final[HashRateUnit]
|
|
default: Final[HashRateUnit]
|
|
def __eq__(self, /, other: Any) -> bool: ...
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __hash__(self, /) -> int: ...
|
|
def __int__(self, /) -> int: ...
|
|
def __int__(self, /) -> int: ...
|
|
def __ne__(self, /, other: Any) -> bool: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "HashRateUnit") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "HashRateUnit": ...
|
|
@classmethod
|
|
def from_str(cls, /, value: str) -> HashRateUnit: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "HashRateUnit": ...
|
|
@property
|
|
def value(self, /) -> int: ...
|
|
|
|
@final
|
|
class MessageSeverity:
|
|
Error: Final[MessageSeverity]
|
|
Info: Final[MessageSeverity]
|
|
Warning: Final[MessageSeverity]
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __int__(self, /) -> int: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "MessageSeverity") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "MessageSeverity": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "MessageSeverity": ...
|
|
|
|
@final
|
|
class Miner:
|
|
def __repr__(self, /) -> str: ...
|
|
@property
|
|
def algo(self, /) -> HashAlgorithm: ...
|
|
def change_password(self, /, password: str) -> Awaitable[bool]: ...
|
|
@property
|
|
def expected_chips(self, /) -> int |None: ...
|
|
@property
|
|
def expected_fans(self, /) -> int |None: ...
|
|
@property
|
|
def expected_hashboards(self, /) -> int |None: ...
|
|
def factory_reset(self, /) -> Awaitable[bool]: ...
|
|
@property
|
|
def firmware(self, /) -> str: ...
|
|
def check_firmware_update(self, /) -> Awaitable[FirmwareStats |None]: ...
|
|
def get_api_version(self, /) -> Awaitable[str |None]: ...
|
|
def get_best_share(self, /) -> Awaitable[float |None]: ...
|
|
def get_control_board_version(self, /) -> Awaitable[str |None]: ...
|
|
def get_data(self, /, exclude: "list[DataField] | None" = None) -> Awaitable[MinerData]: ...
|
|
def get_expected_hashrate(self, /) -> Awaitable[HashRate |None]: ...
|
|
def get_fan_config(self, /) -> Awaitable[FanConfig |None]: ...
|
|
def get_fans(self, /) -> Awaitable[list[FanData]]: ...
|
|
def get_firmware_version(self, /) -> Awaitable[str |None]: ...
|
|
def get_fluid_temperature(self, /) -> Awaitable[float |None]: ...
|
|
def get_hashboards(self, /) -> Awaitable[list[BoardData]]: ...
|
|
def get_hashboards_no_chips(self, /) -> Awaitable[list[BoardData]]: ...
|
|
def get_hashrate(self, /) -> Awaitable[HashRate |None]: ...
|
|
def get_hostname(self, /) -> Awaitable[str |None]: ...
|
|
def get_is_mining(self, /) -> Awaitable[bool]: ...
|
|
def get_operating_state(self, /) -> Awaitable[OperatingState | None]: ...
|
|
def get_light_flashing(self, /) -> Awaitable[bool |None]: ...
|
|
def get_mac(self, /) -> Awaitable[str |None]: ...
|
|
def get_messages(self, /) -> Awaitable[list[MinerMessage]]: ...
|
|
def get_outlet_fluid_temperature(self, /) -> Awaitable[float |None]: ...
|
|
def get_pools(self, /) -> Awaitable[list[PoolGroupData]]: ...
|
|
def get_pools_config(self, /) -> Awaitable[list[PoolGroup] |None]: ...
|
|
def get_psu_fans(self, /) -> Awaitable[list[FanData]]: ...
|
|
def get_scaling_config(self, /) -> Awaitable[ScalingConfig |None]: ...
|
|
def get_serial_number(self, /) -> Awaitable[str |None]: ...
|
|
def get_session_best_share(self, /) -> Awaitable[float |None]: ...
|
|
def get_temperature_config(self, /) -> Awaitable[TemperatureConfig |None]: ...
|
|
def get_timezone_config(self, /) -> Awaitable[TimezoneConfig |None]: ...
|
|
def get_tuning_config(self, /) -> Awaitable[TuningConfig |None]: ...
|
|
def get_tuning_percent(self, /) -> Awaitable[int |None]: ...
|
|
def get_presets(self, /) -> Awaitable[list[PresetInfo]]: ...
|
|
def get_tuning_target(self, /) -> Awaitable[TuningTarget |None]: ...
|
|
def get_uptime(self, /) -> Awaitable[timedelta |None]: ...
|
|
def get_wattage(self, /) -> Awaitable[float |None]: ...
|
|
@property
|
|
def hardware(self, /) -> MinerHardware: ...
|
|
@property
|
|
def ip(self, /) -> IPv4Address |IPv6Address: ...
|
|
@property
|
|
def make(self, /) -> str: ...
|
|
@property
|
|
def model(self, /) -> str: ...
|
|
def pause(self, /, at_time: "timedelta | float | int | None" = None) -> Awaitable[bool]: ...
|
|
def prepare_firmware(self, /, path: StrOrBytesPath) -> Awaitable[FirmwareImage]: ...
|
|
def read_logs(self, /) -> Awaitable[str |None]: ...
|
|
def restart(self, /) -> Awaitable[bool]: ...
|
|
def resume(self, /, at_time: "timedelta | float | int | None" = None) -> Awaitable[bool]: ...
|
|
def revalidate(self, /) -> Awaitable[bool |None]: ...
|
|
def set_auth(self, /, username: str, password: str) -> None: ...
|
|
def set_fan_config(self, /, config: "FanConfig") -> Awaitable[bool]: ...
|
|
def set_fault_light(self, /, fault: bool) -> Awaitable[bool]: ...
|
|
def set_pools_config(self, /, groups: "list[PoolGroup]") -> Awaitable[bool]: ...
|
|
def set_power_limit(self, /, watts: float) -> Awaitable[bool]: ...
|
|
def set_scaling_config(self, /, config: "ScalingConfig") -> Awaitable[bool]: ...
|
|
def set_token(self, /, token: str) -> None: ...
|
|
def set_timezone_config(self, /, config: "TimezoneConfig") -> Awaitable[bool]: ...
|
|
def set_tuning_config(self, /, config: "TuningConfig", scaling_config: "ScalingConfig | None" = None) -> Awaitable[bool]: ...
|
|
def set_tuning_percent(self, /, percent: int) -> Awaitable[bool]: ...
|
|
@property
|
|
def supports_change_password(self, /) -> bool: ...
|
|
@property
|
|
def supports_factory_reset(self, /) -> bool: ...
|
|
@property
|
|
def supports_fan_config(self, /) -> bool: ...
|
|
@property
|
|
def supports_pause(self, /) -> bool: ...
|
|
@property
|
|
def supports_prepare_firmware(self, /) -> bool: ...
|
|
@property
|
|
def supports_pools_config(self, /) -> bool: ...
|
|
@property
|
|
def supports_presets(self, /) -> bool: ...
|
|
def supports_read_logs(self, /) -> bool: ...
|
|
@property
|
|
def supports_restart(self, /) -> bool: ...
|
|
@property
|
|
def supports_resume(self, /) -> bool: ...
|
|
@property
|
|
def supports_scaling_config(self, /) -> bool: ...
|
|
@property
|
|
def supports_set_fault_light(self, /) -> bool: ...
|
|
@property
|
|
def supports_set_power_limit(self, /) -> bool: ...
|
|
@property
|
|
def supports_set_tuning_percent(self, /) -> bool: ...
|
|
@property
|
|
def supports_temperature_config(self, /) -> bool: ...
|
|
def supports_timezone_config(self, /) -> bool: ...
|
|
@property
|
|
def supports_tuning_config(self, /) -> bool: ...
|
|
@property
|
|
def supports_check_firmware_update(self, /) -> bool: ...
|
|
def supports_upgrade_firmware(self, /) -> bool: ...
|
|
def upgrade_firmware(self, /, path: StrOrBytesPath) -> Awaitable[bool]: ...
|
|
|
|
class MinerComponent:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "MinerComponent") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "MinerComponent": ...
|
|
@staticmethod
|
|
def chip(idx: int, chip_idx: int) -> MinerComponent: ...
|
|
@staticmethod
|
|
def control_board() -> MinerComponent: ...
|
|
@staticmethod
|
|
def fan(idx: int) -> MinerComponent: ...
|
|
@staticmethod
|
|
def hashboard(idx: int, chip_idx: int |None = None) -> MinerComponent: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "MinerComponent": ...
|
|
@staticmethod
|
|
def power_supply(idx: int) -> MinerComponent: ...
|
|
@final
|
|
class ControlBoard(MinerComponent):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> MinerComponent.ControlBoard: ...
|
|
@final
|
|
class Fan(MinerComponent):
|
|
__match_args__: Final = ("idx",)
|
|
def __new__(cls, /, idx: int) -> MinerComponent.Fan: ...
|
|
@property
|
|
def idx(self, /) -> int: ...
|
|
@final
|
|
class HashBoard(MinerComponent):
|
|
__match_args__: Final = ("idx", "chip_idx")
|
|
def __new__(cls, /, idx: int, chip_idx: int |None) -> MinerComponent.HashBoard: ...
|
|
@property
|
|
def chip_idx(self, /) -> int |None: ...
|
|
@property
|
|
def idx(self, /) -> int: ...
|
|
@final
|
|
class PowerSupply(MinerComponent):
|
|
__match_args__: Final = ("idx",)
|
|
def __new__(cls, /, idx: int) -> MinerComponent.PowerSupply: ...
|
|
@property
|
|
def idx(self, /) -> int: ...
|
|
|
|
@final
|
|
class MinerControlBoard:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "MinerControlBoard") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "MinerControlBoard": ...
|
|
@property
|
|
def known(self, /) -> bool: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "MinerControlBoard": ...
|
|
@property
|
|
def name(self, /) -> str: ...
|
|
|
|
@final
|
|
class MinerData:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "MinerData") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "MinerData": ...
|
|
@property
|
|
def api_version(self, /) -> str |None: ...
|
|
@property
|
|
def average_temperature(self, /) -> float |None: ...
|
|
@property
|
|
def best_share(self, /) -> float |None: ...
|
|
@property
|
|
def control_board_version(self, /) -> MinerControlBoard |None: ...
|
|
@property
|
|
def device_info(self, /) -> DeviceInfo: ...
|
|
@property
|
|
def efficiency(self, /) -> float |None: ...
|
|
@property
|
|
def expected_chips(self, /) -> int |None: ...
|
|
@property
|
|
def expected_fans(self, /) -> int |None: ...
|
|
@property
|
|
def expected_hashboards(self, /) -> int |None: ...
|
|
@property
|
|
def expected_hashrate(self, /) -> HashRate |None: ...
|
|
@property
|
|
def fans(self, /) -> list[FanData]: ...
|
|
@property
|
|
def firmware_version(self, /) -> str |None: ...
|
|
@property
|
|
def fluid_temperature(self, /) -> float |None: ...
|
|
@property
|
|
def hashboards(self, /) -> list[BoardData]: ...
|
|
@property
|
|
def hashrate(self, /) -> HashRate |None: ...
|
|
@property
|
|
def hostname(self, /) -> str |None: ...
|
|
@property
|
|
def ip(self, /) -> IPv4Address |IPv6Address: ...
|
|
@property
|
|
def is_mining(self, /) -> bool: ...
|
|
@property
|
|
def operating_state(self, /) -> OperatingState | None: ...
|
|
@property
|
|
def light_flashing(self, /) -> bool |None: ...
|
|
@property
|
|
def mac(self, /) -> str |None: ...
|
|
@property
|
|
def messages(self, /) -> list[MinerMessage]: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "MinerData": ...
|
|
@property
|
|
def outlet_fluid_temperature(self, /) -> float |None: ...
|
|
@property
|
|
def pools(self, /) -> list[PoolGroupData]: ...
|
|
@property
|
|
def psu_fans(self, /) -> list[FanData]: ...
|
|
@property
|
|
def scaled_tuning_target(self, /) -> TuningTarget |None: ...
|
|
@property
|
|
def schema_version(self, /) -> str: ...
|
|
@property
|
|
def serial_number(self, /) -> str |None: ...
|
|
@property
|
|
def session_best_share(self, /) -> float |None: ...
|
|
@property
|
|
def timestamp(self, /) -> int: ...
|
|
@property
|
|
def total_chips(self, /) -> int |None: ...
|
|
@property
|
|
def tuning_capabilities(self, /) -> TuningCapabilities |None: ...
|
|
@property
|
|
def tuning_percent(self, /) -> int |None: ...
|
|
@property
|
|
def tuning_target(self, /) -> TuningTarget |None: ...
|
|
@property
|
|
def uptime(self, /) -> timedelta |None: ...
|
|
@property
|
|
def wattage(self, /) -> float |None: ...
|
|
|
|
@final
|
|
class MinerFactory:
|
|
def __new__(cls, /) -> MinerFactory: ...
|
|
@classmethod
|
|
def from_octets(cls, /, octet1: "str | int", octet2: "str | int", octet3: "str | int", octet4: "str | int") -> "MinerFactory": ...
|
|
@classmethod
|
|
def from_range(cls, /, range: str) -> MinerFactory: ...
|
|
@classmethod
|
|
def from_subnet(cls, /, subnet: str) -> MinerFactory: ...
|
|
def get_miner(self, /, ip: str) -> Awaitable[Miner |None]: ...
|
|
def scan(self, /) -> Awaitable[list[Miner]]: ...
|
|
def scan_stream(self, /) -> AsyncIterator[Miner]: ...
|
|
def scan_stream_with_ip(self, /) -> AsyncIterator[tuple[IPv4Address |IPv6Address, Miner |None]]: ...
|
|
def with_concurrent_limit(self, /, limit: int) -> MinerFactory: ...
|
|
def with_connectivity_retries(self, /, retries: int) -> MinerFactory: ...
|
|
def with_connectivity_timeout_secs(self, /, timeout_secs: int) -> MinerFactory: ...
|
|
def with_identification_timeout_secs(self, /, timeout_secs: int) -> MinerFactory: ...
|
|
def with_octets(self, /, octet1: "str | int", octet2: "str | int", octet3: "str | int", octet4: "str | int") -> "MinerFactory": ...
|
|
def with_port_check(self, /, enabled: bool) -> MinerFactory: ...
|
|
def with_range(self, /, range: str) -> MinerFactory: ...
|
|
def with_subnet(self, /, subnet: str) -> MinerFactory: ...
|
|
|
|
@final
|
|
class MinerHardware:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "MinerHardware") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "MinerHardware": ...
|
|
@property
|
|
def board_count(self, /) -> int |None: ...
|
|
@property
|
|
def boards(self, /) -> list[int |None] |None: ...
|
|
@property
|
|
def chips(self, /) -> int |None: ...
|
|
@property
|
|
def fans(self, /) -> int |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "MinerHardware": ...
|
|
|
|
@final
|
|
class MinerListener:
|
|
def __new__(cls, /) -> MinerListener: ...
|
|
def listen(self, /) -> AsyncIterator[Miner]: ...
|
|
def listen_ip_only(self, /) -> AsyncIterator[IPv4Address |IPv6Address]: ...
|
|
|
|
@final
|
|
class MinerMessage:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "MinerMessage") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "MinerMessage": ...
|
|
@property
|
|
def code(self, /) -> int: ...
|
|
@property
|
|
def component(self, /) -> MinerComponent |None: ...
|
|
@property
|
|
def message(self, /) -> str: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "MinerMessage": ...
|
|
@property
|
|
def severity(self, /) -> MessageSeverity: ...
|
|
@property
|
|
def timestamp(self, /) -> int: ...
|
|
|
|
@final
|
|
class MiningMode:
|
|
High: Final[MiningMode]
|
|
Low: Final[MiningMode]
|
|
Normal: Final[MiningMode]
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __int__(self, /) -> int: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "MiningMode") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "MiningMode": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "MiningMode": ...
|
|
|
|
class OperatingState:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __eq__(self, other: object, /) -> bool: ...
|
|
def __hash__(self, /) -> int: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "OperatingState") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "OperatingState": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "OperatingState": ...
|
|
@final
|
|
class Mining(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Mining: ...
|
|
@final
|
|
class Stable(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Stable: ...
|
|
@final
|
|
class Initializing(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Initializing: ...
|
|
@final
|
|
class Starting(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Starting: ...
|
|
@final
|
|
class Tuning(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Tuning: ...
|
|
@final
|
|
class AdjustingFrequency(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.AdjustingFrequency: ...
|
|
@final
|
|
class AdjustingVoltage(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.AdjustingVoltage: ...
|
|
@final
|
|
class AdjustingClockVoltage(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.AdjustingClockVoltage: ...
|
|
@final
|
|
class Idling(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Idling: ...
|
|
@final
|
|
class Paused(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Paused: ...
|
|
@final
|
|
class Suspended(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Suspended: ...
|
|
@final
|
|
class Restricted(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Restricted: ...
|
|
@final
|
|
class Stopping(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Stopping: ...
|
|
@final
|
|
class Stopped(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Stopped: ...
|
|
@final
|
|
class Restarting(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Restarting: ...
|
|
@final
|
|
class CoolingDown(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.CoolingDown: ...
|
|
@final
|
|
class DegradedMining(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.DegradedMining: ...
|
|
@final
|
|
class Error(OperatingState):
|
|
__match_args__: Final = ()
|
|
def __new__(cls, /) -> OperatingState.Error: ...
|
|
@final
|
|
class Unknown(OperatingState):
|
|
__match_args__: Final = ("raw",)
|
|
def __new__(cls, /, raw: str) -> OperatingState.Unknown: ...
|
|
@property
|
|
def raw(self, /) -> str: ...
|
|
|
|
@final
|
|
class Pool:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __new__(cls, /, *, url: "PoolURL | str", username: "str", password: "str") -> "Pool": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "Pool") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "Pool": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "Pool": ...
|
|
@property
|
|
def password(self, /) -> str: ...
|
|
@property
|
|
def url(self, /) -> PoolURL: ...
|
|
@property
|
|
def username(self, /) -> str: ...
|
|
|
|
@final
|
|
class PoolData:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "PoolData") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "PoolData": ...
|
|
@property
|
|
def accepted_shares(self, /) -> int |None: ...
|
|
@property
|
|
def active(self, /) -> bool |None: ...
|
|
@property
|
|
def alive(self, /) -> bool |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "PoolData": ...
|
|
@property
|
|
def position(self, /) -> int |None: ...
|
|
@property
|
|
def rejected_shares(self, /) -> int |None: ...
|
|
@property
|
|
def url(self, /) -> PoolURL |None: ...
|
|
@property
|
|
def user(self, /) -> str |None: ...
|
|
|
|
@final
|
|
class PoolGroup:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __new__(cls, /, *, name: "str", quota: "int", pools: "list[Pool]") -> "PoolGroup": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "PoolGroup") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "PoolGroup": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "PoolGroup": ...
|
|
@property
|
|
def name(self, /) -> str: ...
|
|
@property
|
|
def pools(self, /) -> list[Pool]: ...
|
|
@property
|
|
def quota(self, /) -> int: ...
|
|
|
|
@final
|
|
class PoolGroupData:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "PoolGroupData") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "PoolGroupData": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "PoolGroupData": ...
|
|
@property
|
|
def name(self, /) -> str: ...
|
|
@property
|
|
def pools(self, /) -> list[PoolData]: ...
|
|
@property
|
|
def quota(self, /) -> int: ...
|
|
|
|
@final
|
|
class PoolScheme:
|
|
StratumV1: Final[PoolScheme]
|
|
StratumV1SSL: Final[PoolScheme]
|
|
StratumV2: Final[PoolScheme]
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __int__(self, /) -> int: ...
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "PoolScheme") -> "object": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "PoolScheme": ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "object": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "PoolScheme": ...
|
|
|
|
@final
|
|
class PoolURL:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "PoolURL") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "PoolURL": ...
|
|
@property
|
|
def host(self, /) -> str: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "PoolURL": ...
|
|
@property
|
|
def port(self, /) -> int: ...
|
|
@property
|
|
def pubkey(self, /) -> str |None: ...
|
|
@property
|
|
def scheme(self, /) -> PoolScheme: ...
|
|
|
|
@final
|
|
class PowerTuningCapabilities:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "PowerTuningCapabilities") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "PowerTuningCapabilities": ...
|
|
@property
|
|
def default(self, /) -> TuningTarget |None: ...
|
|
@property
|
|
def maximum(self, /) -> TuningTarget |None: ...
|
|
@property
|
|
def minimum(self, /) -> TuningTarget |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "PowerTuningCapabilities": ...
|
|
|
|
class PresetInfo:
|
|
def __repr__(self, /) -> str: ...
|
|
@property
|
|
def name(self, /) -> str: ...
|
|
@property
|
|
def pretty(self, /) -> str |None: ...
|
|
@property
|
|
def status(self, /) -> str |None: ...
|
|
|
|
@final
|
|
class PresetTuningCapabilities:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "PresetTuningCapabilities") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "PresetTuningCapabilities": ...
|
|
@property
|
|
def default(self, /) -> TuningTarget |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "PresetTuningCapabilities": ...
|
|
@property
|
|
def presets(self, /) -> list[TuningTarget]: ...
|
|
|
|
@final
|
|
class ScalingConfig:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __new__(cls, /, step: int, minimum: int, shutdown: bool |None = None, shutdown_duration: float |None = None) -> ScalingConfig: ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "ScalingConfig") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "ScalingConfig": ...
|
|
@property
|
|
def minimum(self, /) -> int: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "ScalingConfig": ...
|
|
@property
|
|
def shutdown(self, /) -> bool |None: ...
|
|
@property
|
|
def shutdown_duration(self, /) -> float |None: ...
|
|
@property
|
|
def step(self, /) -> int: ...
|
|
|
|
@final
|
|
class TemperatureConfig:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __new__(cls, /, *, hot: "float | None" = None, danger: "float | None" = None, minimum: "float | None" = None) -> "TemperatureConfig": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "TemperatureConfig") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "TemperatureConfig": ...
|
|
@property
|
|
def danger(self, /) -> float |None: ...
|
|
@property
|
|
def hot(self, /) -> float |None: ...
|
|
@property
|
|
def minimum(self, /) -> float |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "TemperatureConfig": ...
|
|
|
|
class TimezoneConfig:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __new__(cls, /, timezone: "tzinfo | str | None" = None, available: "list[tzinfo | str] | None" = None) -> TimezoneConfig: ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "TimezoneConfig") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "TimezoneConfig": ...
|
|
@property
|
|
def available(self, /) -> list[tzinfo]: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "TimezoneConfig": ...
|
|
@property
|
|
def timezone(self, /) -> tzinfo |None: ...
|
|
|
|
@final
|
|
class TuningCapabilities:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "TuningCapabilities") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "TuningCapabilities": ...
|
|
@property
|
|
def hashrate(self, /) -> HashRateTuningCapabilities |None: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "TuningCapabilities": ...
|
|
@property
|
|
def power(self, /) -> PowerTuningCapabilities |None: ...
|
|
@property
|
|
def presets(self, /) -> PresetTuningCapabilities |None: ...
|
|
|
|
@final
|
|
class TuningConfig:
|
|
@classmethod
|
|
def __get_pydantic_core_schema__(cls, /, _source_type: "object", _handler: "object") -> "object": ...
|
|
def __repr__(self, /) -> str: ...
|
|
@staticmethod
|
|
def _pydantic_serialize(value: "TuningConfig") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def _pydantic_validate(cls, /, value: "object") -> "TuningConfig": ...
|
|
@property
|
|
def algorithm(self, /) -> str |None: ...
|
|
@classmethod
|
|
def hashrate(cls, /, hashrate: HashRate, algorithm: Any |None = None) -> TuningConfig: ...
|
|
@classmethod
|
|
def manual(cls, /, boards: dict[int, tuple[float | None, float | None]] | None = None) -> TuningConfig: ...
|
|
@classmethod
|
|
def mode(cls, /, mode: MiningMode) -> TuningConfig: ...
|
|
def model_dump(self, /, **_kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_json_schema(cls, /, **kwargs: "object") -> "dict[str, object]": ...
|
|
@classmethod
|
|
def model_validate(cls, /, obj: "object", **_kwargs: "object") -> "TuningConfig": ...
|
|
@classmethod
|
|
def power(cls, /, watts: float, algorithm: Any |None = None) -> TuningConfig: ...
|
|
@classmethod
|
|
def preset(cls, /, name: str) -> TuningConfig: ...
|
|
@property
|
|
def target_boards(self, /) -> dict[int, tuple[float | None, float | None]] |None: ...
|
|
@property
|
|
def target_hashrate(self, /) -> HashRate |None: ...
|
|
@property
|
|
def target_mode(self, /) -> MiningMode |None: ...
|
|
@property
|
|
def target_preset(self, /) -> str |None: ...
|
|
@property
|
|
def target_watts(self, /) -> float |None: ...
|
|
@property
|
|
def variant(self, /) -> str: ...
|
|
|
|
class TuningTarget:
|
|
def __repr__(self, /) -> str: ...
|
|
def __str__(self, /) -> str: ...
|
|
@staticmethod
|
|
def hashrate(hashrate: HashRate) -> TuningTarget: ...
|
|
@staticmethod
|
|
def manual(boards: dict[int, tuple[float | None, float | None]] | None = None) -> TuningTarget: ...
|
|
@staticmethod
|
|
def mode(mode: MiningMode) -> TuningTarget: ...
|
|
@staticmethod
|
|
def power(watts: float) -> TuningTarget: ...
|
|
@staticmethod
|
|
def preset(name: str) -> TuningTarget: ...
|
|
@property
|
|
def boards(self, /) -> dict[int, tuple[float | None, float | None]] |None: ...
|
|
@property
|
|
def preset_name(self, /) -> str |None: ...
|
|
@property
|
|
def target_hashrate(self, /) -> HashRate |None: ...
|
|
@property
|
|
def target_mode(self, /) -> MiningMode |None: ...
|
|
@property
|
|
def variant(self, /) -> str: ...
|
|
@property
|
|
def watts(self, /) -> float |None: ...
|
|
@final
|
|
class HashRate(TuningTarget):
|
|
__match_args__: Final = ("target_hashrate",)
|
|
def __new__(cls, /, target_hashrate: HashRate) -> TuningTarget.HashRate: ...
|
|
@property
|
|
def target_hashrate(self, /) -> HashRate: ...
|
|
@final
|
|
class Manual(TuningTarget):
|
|
__match_args__: Final = ("boards",)
|
|
def __new__(cls, /, boards: dict[int, tuple[float | None, float | None]]) -> TuningTarget.Manual: ...
|
|
@property
|
|
def boards(self, /) -> dict[int, tuple[float | None, float | None]]: ...
|
|
@final
|
|
class Mode(TuningTarget):
|
|
__match_args__: Final = ("target_mode",)
|
|
def __new__(cls, /, target_mode: MiningMode) -> TuningTarget.Mode: ...
|
|
@property
|
|
def target_mode(self, /) -> MiningMode: ...
|
|
@final
|
|
class Power(TuningTarget):
|
|
__match_args__: Final = ("watts",)
|
|
def __new__(cls, /, watts: float) -> TuningTarget.Power: ...
|
|
@property
|
|
def watts(self, /) -> float: ...
|
|
@final
|
|
class Preset(TuningTarget):
|
|
__match_args__: Final = ("name",)
|
|
def __new__(cls, /, name: str) -> TuningTarget.Preset: ...
|
|
@property
|
|
def name(self, /) -> str: ...
|
|
|
|
def __getattr__(name: str) -> Incomplete: ...
|