Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tribler/tribler
/ functions
Functions
1,819 in github.com/Tribler/tribler
⨍
Functions
1,819
◇
Types & classes
310
↳
Endpoints
21
↓ 4 callers
Method
get_file_index
Get the index of a file or directory in a torrent, or None if it does not exist.
src/tribler/core/libtorrent/download_manager/download.py:1223
↓ 4 callers
Method
get_file_length
Get the length of a file or directory in bytes. Returns 0 if the given path does not point to an existing path.
src/tribler/core/libtorrent/download_manager/download.py:1213
↓ 4 callers
Method
get_files
Return file information of a specific download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:852
↓ 4 callers
Method
get_libtorrent_settings
Return Libtorrent session settings.
src/tribler/core/libtorrent/restapi/libtorrent_endpoint.py:53
↓ 4 callers
Method
get_next_tracker
Gets the next tracker. :return: The next tracker for torrent-checking.
src/tribler/core/torrent_checker/tracker_manager.py:139
↓ 4 callers
Method
get_num_seeds_peers
Returns the sum of the number of seeds and peers. :return: A tuple (num seeds, num peers)
src/tribler/core/libtorrent/download_manager/download_state.py:259
↓ 4 callers
Method
get_piece_priorities
Get the priorities of all pieces in the download.
src/tribler/core/libtorrent/download_manager/download.py:1134
↓ 4 callers
Method
get_seeding_ratio
Get the actual seeding ratio of this download (the user config may be ``None``).
src/tribler/core/libtorrent/download_manager/download.py:725
↓ 4 callers
Method
get_size_from_bloomfilter
Return the estimated number of items in the bloom filter. :param bf: The bloom filter of which we estimate the size. :return
src/tribler/core/libtorrent/download_manager/dht_health_manager.py:96
↓ 4 callers
Method
get_torrent_data
Return torrent data, if the handle is valid and metadata is available.
src/tribler/core/libtorrent/download_manager/download.py:270
↓ 4 callers
Method
get_v2_piece_hash
Get the (32-byte) SHA-256 hash for the specified piece from its buffer.
src/tribler/core/libtorrent/torrentdef.py:131
↓ 4 callers
Method
get_versions
Get all versions in our state directory.
src/tribler/core/versioning/manager.py:45
↓ 4 callers
Function
infohash_to_id
This function is used to devise ``id_`` from infohash in deterministic way. Used in FFA channels.
src/tribler/core/database/orm_bindings/torrent_metadata.py:101
↓ 4 callers
Method
limit
(limit: int)
src/tribler/core/database/orm_bindings/tracker_state.py:51
↓ 4 callers
Method
local_search
Perform a search for a given query.
src/tribler/core/database/restapi/database_endpoint.py:282
↓ 4 callers
Method
move_storage
Move the output files to a different location.
src/tribler/core/libtorrent/download_manager/download.py:785
↓ 4 callers
Method
on_torrent_finished_alert
Handle a torrent finished alert.
src/tribler/core/libtorrent/download_manager/download.py:708
↓ 4 callers
Method
on_tribler_exception
An exception has occurred in Tribler.
src/tribler/core/restapi/events_endpoint.py:204
↓ 4 callers
Method
order_by
(selector: int | Callable)
src/tribler/core/database/orm_bindings/tracker_state.py:48
↓ 4 callers
Method
process_compressed_mdblob
Decompress the given data and return a list of uncompressed results.
src/tribler/core/database/store.py:366
↓ 4 callers
Function
reloadPaths
(dir: string)
src/tribler/ui/src/dialogs/SelectRemotePath.tsx:101
↓ 4 callers
Method
remove_download
Remove a download and optionally also remove the downloaded file(s) and checkpoint.
src/tribler/core/libtorrent/download_manager/download_manager.py:909
↓ 4 callers
Method
remove_tag
Remove a custom tag from the given download.
src/tribler/core/database/restapi/database_endpoint.py:469
↓ 4 callers
Function
require_handle
Invoke the function once the handle is available. Returns a future that will fire once the function has completed. Author(s): Egbert Bouman
src/tribler/core/libtorrent/torrents.py:67
↓ 4 callers
Function
return_handled_exception
Create a RESTResponse that tells the use that an exception is handled. :param exception: the handled exception :return: JSON dictionary
src/tribler/core/restapi/rest_endpoint.py:79
↓ 4 callers
Method
sanitize_parameters
Sanitize the parameters for a request that fetches channels.
src/tribler/core/database/restapi/database_endpoint.py:104
↓ 4 callers
Method
save_resume_data
Save the resume data of a download. This method returns when the resume data is available. Note that this method only calls save_resu
src/tribler/core/libtorrent/download_manager/download.py:813
↓ 4 callers
Method
send_event
Put event message to a queue to be sent to GUI.
src/tribler/core/restapi/events_endpoint.py:164
↓ 4 callers
Method
send_remote_select
Query a peer using an SQL statement descriptions (kwargs).
src/tribler/core/content_discovery/community.py:293
↓ 4 callers
Method
sendto
Attemp to send data to the given address. :raises Socks5Error: If we have not associated UDP yet.
src/tribler/core/socks5/client.py:208
↓ 4 callers
Function
setBandwidthLimit
( selectedDownloads: Download[], value: number | undefined, direction: "up" | "down", t: TFunc
src/tribler/ui/src/pages/Downloads/Actions.tsx:136
↓ 4 callers
Function
setInvalidName
(target: HTMLInputElement)
src/tribler/ui/src/dialogs/CreateTorrent.tsx:209
↓ 4 callers
Method
set_share_mode
Set whether this download is in sharing mode.
src/tribler/core/libtorrent/download_manager/download.py:1091
↓ 4 callers
Method
stop
Stop downloading the download.
src/tribler/core/libtorrent/download_manager/download.py:968
↓ 4 callers
Method
tracker_force_announce
Forcefully announce to the given tracker.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:801
↓ 4 callers
Function
updateDownloads
(infohashes: string[] | undefined = undefined)
src/tribler/ui/src/pages/Downloads/index.tsx:305
↓ 4 callers
Function
updateRowSelection
( table: ReactTable<any>, rowSelection: RowSelectionState, setRowSelection: Dispatch<SetStateActio
src/tribler/ui/src/components/ui/simple-table.tsx:215
↓ 4 callers
Method
update_lt_status
Update libtorrent stats and check if the download should be stopped.
src/tribler/core/libtorrent/download_manager/download.py:734
↓ 4 callers
Function
useFormField
()
src/tribler/ui/src/components/ui/form.tsx:33
↓ 4 callers
Function
usePrevious
(value: T)
src/tribler/ui/src/hooks/usePrevious.tsx:3
↓ 4 callers
Method
wait_for_status
Wait for a given download status to occur.
src/tribler/core/libtorrent/download_manager/download.py:377
↓ 4 callers
Method
write
Write the configuration to disk.
src/tribler/tribler_config.py:421
↓ 3 callers
Method
_send
Send data to the remote and wait for an answer.
src/tribler/core/socks5/client.py:111
↓ 3 callers
Method
add_signature
Create a signature for this payload.
src/tribler/core/database/serialization.py:135
↓ 3 callers
Method
add_tag
Add a custom tag to the given download.
src/tribler/core/database/restapi/database_endpoint.py:404
↓ 3 callers
Method
add_tracker
(self, tracker_url: str)
src/tribler/core/database/orm_bindings/torrent_metadata.py:274
↓ 3 callers
Function
add_url_params
Add GET params to provided URL being aware of existing. >> url = 'http://stackoverflow.com/test?answers=true' >> new_params = {'answers'
src/tribler/core/libtorrent/trackers.py:149
↓ 3 callers
Function
batched
Backport for ``itertools.batched()``.
src/tribler/upgrade_script.py:35
↓ 3 callers
Method
callback
(version: str)
src/tribler/test_unit/core/test_notifier.py:46
↓ 3 callers
Function
check_handle
Return the libtorrent handle if it's available, else return the default value. Author(s): Egbert Bouman
src/tribler/core/libtorrent/torrents.py:41
↓ 3 callers
Method
completions
Return auto-completion suggestions for a given query.
src/tribler/core/database/restapi/database_endpoint.py:357
↓ 3 callers
Method
create_node
Set up a fake dht provider.
src/tribler/test_unit/core/tunnel/test_community.py:57
↓ 3 callers
Method
encode_message
Use JSON to dump the given message to bytes.
src/tribler/core/restapi/events_endpoint.py:130
↓ 3 callers
Method
error_message
Create an error message for the GUI.
src/tribler/core/restapi/events_endpoint.py:118
↓ 3 callers
Function
filterDuplicates
(data: any[], key: string)
src/tribler/ui/src/lib/utils.ts:154
↓ 3 callers
Method
get_api_port
Get the API port of the currently running server.
src/tribler/core/restapi/rest_manager.py:210
↓ 3 callers
Method
get_candidates
Get all the peers that we can create circuits with. When requesting exits, prefer peers that aren't backups.
src/tribler/core/tunnel/community.py:141
↓ 3 callers
Method
get_current_speed
Returns the current up or download speed. :return: The speed in bytes/s.
src/tribler/core/libtorrent/download_manager/download_state.py:125
↓ 3 callers
Method
get_download
Get the download belonging to a given infohash.
src/tribler/core/libtorrent/download_manager/download_manager.py:937
↓ 3 callers
Method
get_download_limit
Get the download bandwidth limit for this torrent.
src/tribler/core/libtorrent/download_manager/download.py:1291
↓ 3 callers
Method
get_files_info_json
Return file information as JSON from a specified download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:137
↓ 3 callers
Method
get_health
Lookup the health of a given infohash. :param infohash: The 20-byte infohash to lookup. :param timeout: The timeout of the l
src/tribler/core/libtorrent/download_manager/dht_health_manager.py:35
↓ 3 callers
Method
get_libtorrent_session_info
Return Libtorrent session information.
src/tribler/core/libtorrent/restapi/libtorrent_endpoint.py:92
↓ 3 callers
Method
get_lookup_info_hash
Get the SHA-1 hash to lookup for a given torrent info hash.
src/tribler/core/tunnel/community.py:423
↓ 3 callers
Method
get_num_connected_seeds_peers
Return the number of connected seeders and leechers.
src/tribler/core/libtorrent/download_manager/download.py:875
↓ 3 callers
Method
get_peer_list
Returns a list of dictionaries, one for each connected peer containing the statistics for that peer. In particular, the dictionary co
src/tribler/core/libtorrent/download_manager/download.py:829
↓ 3 callers
Method
get_peer_list
Returns a list of dictionaries, one for each connected peer, containing the statistics for that peer.
src/tribler/core/libtorrent/download_manager/download_state.py:374
↓ 3 callers
Method
get_post_handle_ops
Get the post-handle operations flag for this torrent.
src/tribler/core/libtorrent/download_manager/download_config.py:400
↓ 3 callers
Method
get_settings
Return all the session settings that can be found in Tribler.
src/tribler/core/restapi/settings_endpoint.py:39
↓ 3 callers
Method
get_torrent
Create the raw torrent data from this download.
src/tribler/core/libtorrent/download_manager/download.py:891
↓ 3 callers
Method
get_torrent_health
Fetch the swarm health of a specific torrent.
src/tribler/core/database/restapi/database_endpoint.py:164
↓ 3 callers
Method
get_tracker_status
Retrieve an overview of the trackers and their statuses.
src/tribler/core/libtorrent/download_manager/download.py:905
↓ 3 callers
Method
get_upload_limit
Get the upload bandwidth limit for this torrent.
src/tribler/core/libtorrent/download_manager/download.py:1277
↓ 3 callers
Method
gossip_random_torrents_health
Gossip random torrent health information to another peer.
src/tribler/core/content_discovery/community.py:167
↓ 3 callers
Function
handleHTTPError
(error: Error | AxiosError)
src/tribler/ui/src/services/reporting.ts:12
↓ 3 callers
Function
handleSuggestionClick
(value: string)
src/tribler/ui/src/components/ui/autocomplete.tsx:38
↓ 3 callers
Method
has_session
Check if we have a session for the given number of anonymization hops.
src/tribler/core/libtorrent/download_manager/download_manager.py:399
↓ 3 callers
Method
iter_pieces
Generator function that yield the pieces for the active file index.
src/tribler/core/libtorrent/download_manager/stream.py:124
↓ 3 callers
Method
load_blacklist
Load the blacklist.
src/tribler/test_unit/core/torrent_checker/test_tracker_manager.py:25
↓ 3 callers
Method
load_legacy_checkpoint
Deal with legacy checkpoints. This is deprecated functionality: remove later. Once enough people use the new format, this method can
src/tribler/core/libtorrent/download_manager/download_manager.py:1107
↓ 3 callers
Method
old
Whether this check is more than 4 hours old.
src/tribler/core/torrent_checker/healthdataclasses.py:46
↓ 3 callers
Method
older_than
Whether this check is older than the given check.
src/tribler/core/torrent_checker/healthdataclasses.py:53
↓ 3 callers
Method
on_notification
Callback for when a notification is received. Check if we should forward it to the GUI.
src/tribler/core/restapi/events_endpoint.py:84
↓ 3 callers
Function
open_webbrowser_tab
Open a webbrowser tab with the given URL.
src/run_tribler.py:221
↓ 3 callers
Method
post_alert
Manually post an alert.
src/tribler/core/libtorrent/download_manager/download.py:464
↓ 3 callers
Method
process_rpc_query
Retrieve the result of a database query from a third party, encoded as raw JSON bytes (through `dumps`). :raises TypeError: if the J
src/tribler/core/content_discovery/community.py:332
↓ 3 callers
Function
query_uri
(uri: str, connector: BaseConnector | None = None, headers: LooseHeaders | None = None, ti
src/tribler/core/libtorrent/restapi/torrentinfo_endpoint.py:79
↓ 3 callers
Function
read_payload_with_offset
Read the next payload from the data buffer (at the given offset).
src/tribler/core/database/serialization.py:71
↓ 3 callers
Method
readd_bittorrent_peers
Add the special IPs that belong to circuits to a download.
src/tribler/core/tunnel/community.py:161
↓ 3 callers
Method
received_bloomfilters
We have received bloom filters from the libtorrent DHT. Register the bloom filters and process them. :param transaction_id: The ID o
src/tribler/core/libtorrent/download_manager/dht_health_manager.py:139
↓ 3 callers
Method
remove_circuit
Remove the circuit that belongs to the given circuit id.
src/tribler/core/tunnel/community.py:191
↓ 3 callers
Method
sanitize_query
Convert the values in a query to the appropriate format and supply missing values.
src/tribler/core/content_discovery/community.py:123
↓ 3 callers
Method
send_search_request
Fake the return values of a search request.
src/tribler/test_unit/core/content_discovery/restapi/test_search_endpoint.py:29
↓ 3 callers
Method
serialized
Pack this serializable.
src/tribler/core/database/serialization.py:103
↓ 3 callers
Method
setAsyncioDebug
(enable: boolean, slownessThreshold: number)
src/tribler/ui/src/services/ipv8.service.ts:56
↓ 3 callers
Method
set_auto_managed
Set the auto managed flag.
src/tribler/core/libtorrent/download_manager/download.py:1333
↓ 3 callers
Method
set_download_limit
Set the download bandwidth limit for this torrent.
src/tribler/core/libtorrent/download_manager/download.py:1283
↓ 3 callers
Method
set_file_priorities
Set the priority for all files in the download.
src/tribler/core/libtorrent/download_manager/download.py:1141
↓ 3 callers
Method
set_piece_deadline
Set the deadline for a given piece.
src/tribler/core/libtorrent/download_manager/download.py:1162
↓ 3 callers
Method
set_piece_priorities
Set the priority for all pieces in the download.
src/tribler/core/libtorrent/download_manager/download.py:1127
← previous
next →
201–300 of 1,819, ranked by callers