Group File Set

The GroupFileSet class represents a Group file set.

class newsbinpro_client.groupfileset.GroupFileSet(data: str)

Bases: object

Represents a group file set with associated metadata such as ID, subject, file size, timestamp, poster, file count, parity count, and an indicator of whether it is old.

Attributes:

item_id (int): Unique identifier for the group file set. subject (str): Subject or title of the group file set. file_size (int): Size of the file in the group file set, in bytes. time_stamp (datetime.datetime): Timestamp representing the creation or upload time of the file set. poster (str): Name or identifier of the person or entity that posted the file set. file_count (int): Number of files included in the file set. par_count (int): Number of parity files in the file set. is_old (bool): Flag indicating whether the file set is considered old.

Methods:
__init__(data):

Parses a tab-separated string to initialize all the attributes of the group file set. Converts and formats certain attributes to appropriate data types.

__str__():

Returns a formatted string representation of the group file set showing all its attributes.

property file_count: int
Returns:

The current count of files as an integer

property file_size: int
Returns:

The size of the file as an integer.

property is_old: bool
Returns:

Returns a boolean value indicating whether the item is considered old.

property item_id: int
Returns:

The unique identifier associated with the object.

property par_count: int
Returns:

The current value of the _par_count attribute.

Return type:

int

property poster: str
Returns:

The poster associated with the object, which is typically used to access or reference specific content or resources.

property subject: str
Returns:

The value of the subject property.

property time_stamp: datetime
Returns:

The current timestamp value.