Newsbin Pro Status
The NewsbinProStatus class represents the status of Newsbin Pro.
- class newsbinpro_client.newsbinprostatus.NewsbinProStatus
Bases:
objectRepresents the status of the NewsbinPro application, including information about download speed, free space in specific folders, queued file size, and speed samples.
- add(data: str) None
- Parameters:
data – A tab-delimited string containing key-value pairs or data sequences. The keys indicate the type of data (e.g., “Speed”, “DownloadFolder”, “DataFolder”, etc.), and the corresponding values provide the associated numerical data or list of numbers.
- Returns:
None. This method updates the object’s attributes or appends data to the speed_samples list based on the input.
- static convert_bytes_to_string(size_in_bytes: int) str
- Parameters:
size_in_bytes – The size in bytes that needs to be converted into a human-readable string representation.
- Returns:
A string representing the size in a readable format with appropriate units (e.g., KB, MB, GB).
- property data_folder_free_space: float
- Returns:
The available free space in the data folder.
- property data_folder_free_space_str: str
- Returns:
A human-readable string representing the available free space in the data folder. The value is converted from bytes to an appropriate unit (e.g., KB, MB, GB) for easier interpretation.
- property download_folder_free_space: float
- Returns:
The amount of free space available in the download folder.
- property download_folder_free_space_str: str
- Returns:
The available free space in the download folder as a human-readable string.
- property queued_file_size: float
- Returns:
The size of the file currently queued, represented by the private attribute _queued_file_size.
- property speed: int
- Returns:
The current speed of the object.
- property speed_samples: List[int]
- Returns:
Returns the recorded speed samples.