bitween.components.web.api package

Submodules

bitween.components.web.api.bt module

BitTorrent related functions of the JSONRPCAPI

bitween.components.web.api.bt.add_path(path='')[source]

create a torrent by path

Parameters:path – Path of folder or file to share
Returns:
bitween.components.web.api.bt.add_torrent_by_hash(hash, save_path)[source]

add a new torrent based on hash

Parameters:
  • hash – hash of the torrent
  • save_path – path to save the torrent
Returns:

bitween.components.web.api.bt.del_torrent(hash)[source]

delete a torrent by hash

Parameters:hash
Returns:
bitween.components.web.api.bt.get_torrents()[source]

return a list of own torrents

Returns:

bitween.components.web.api.xmpp module

XMPP related functions of the JSONRPCAPI

bitween.components.web.api.xmpp.get_all_hashes()[source]

return a list of all hashes with associated address tuples

Returns:
bitween.components.web.api.xmpp.get_all_shares()[source]

return a list of all collected shares

Returns:

Module contents

bitween.components.web.api.safe_exit()[source]

trigger shutdown

Returns:
bitween.components.web.api.versions()[source]

get the currently used versions of libtorrent and sleekxmpp

Returns: