Pkg.Torrent — API for parsing torrent files

Overview

The Pkg.Torrent module contains the API for parsing torrent files.

Module API

Pkg.Torrent module API.

Classes:

TorrentObject()

This class represents a torrent file.

class TorrentObject

Bases: Pro.Core.CFFObject

This class represents a torrent file.

Methods:

CreationDate()

Returns the the creation time if available; otherwise returns an invalid date-time.

GetDictionary()

Returns the torrent contents as a dictionary.

GetFiles()

Returns the files as a list.

GetTrackers()

Returns the trackers as a dictionary.

CreationDate()Pro.Core.NTDateTime
Returns

Returns the the creation time if available; otherwise returns an invalid date-time.

Return type

NTDateTime

GetDictionary()Dict[Any, Any]
Returns

Returns the torrent contents as a dictionary.

Return type

Dict[Any, Any]

GetFiles()List[bytes]
Returns

Returns the files as a list.

Return type

List[bytes]

GetTrackers()Dict[Any, Any]
Returns

Returns the trackers as a dictionary.

Return type

Dict[Any, Any]