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
↓ 312 callers
Method
get
(name: str)
src/tribler/core/database/orm_bindings/misc.py:25
↓ 106 callers
Function
getHeader
( name: string, translate: boolean = true, addSorting: boolean = true, addFilter: boolean = fa
src/tribler/ui/src/components/ui/simple-table.tsx:174
↓ 95 callers
Function
cn
(...inputs: ClassValue[])
src/tribler/ui/src/lib/utils.ts:9
↓ 78 callers
Function
isErrorDict
(object: any)
src/tribler/ui/src/services/reporting.ts:8
↓ 70 callers
Method
load_from_memory
Load some bencoded data into a TorrentDef. :param bencoded_data: The bencoded data to decode and use as metainfo
src/tribler/core/libtorrent/torrentdef.py:102
↓ 68 callers
Method
set
Set the given attributes to the given values.
src/tribler/test_unit/core/torrent_checker/mocks.py:83
↓ 67 callers
Function
formatAxiosError
(error: Error | AxiosError)
src/tribler/ui/src/services/reporting.ts:31
↓ 66 callers
Method
create_mock_download_config
Create a mocked DownloadConfig.
src/tribler/test_unit/core/libtorrent/download_manager/test_download.py:45
↓ 44 callers
Method
create_mock_download
Create a mocked Download.
src/tribler/test_unit/core/libtorrent/restapi/test_downloads_endpoint.py:78
↓ 36 callers
Function
formatBytes
(bytes: number, digits: number = 2)
src/tribler/ui/src/lib/utils.ts:100
↓ 34 callers
Method
get_parser
Get a new parser for Download config files.
src/tribler/core/libtorrent/download_manager/download_config.py:105
↓ 33 callers
Method
add
Add an observer for the given Notification type.
src/tribler/core/notifier.py:68
↓ 32 callers
Method
get_dest_dir
Gets the directory where to save this Download.
src/tribler/core/libtorrent/download_manager/download_config.py:166
↓ 32 callers
Method
get_torrent_info
Return metainfo from a torrent found at a provided URI.
src/tribler/core/libtorrent/restapi/torrentinfo_endpoint.py:181
↓ 31 callers
Function
_copy_if_exists
Check if the src path is set and copy it into the dst if it is.
src/tribler/upgrade_script.py:51
↓ 31 callers
Method
get
Get a config option based on the path-like descriptor.
src/tribler/tribler_config.py:428
↓ 27 callers
Function
get_uniformed_tracker_url
Parses the given tracker URL and returns in a uniform URL format. It uses regex to sanitize the URL. :param tracker_url: Tracker URL
src/tribler/core/libtorrent/trackers.py:35
↓ 27 callers
Function
unhexlify
(input: string)
src/tribler/ui/src/lib/utils.ts:17
↓ 26 callers
Method
is_valid
Whether the reported seeders and leechers are > 0 and the check was performed at most a minute in the future.
src/tribler/core/torrent_checker/healthdataclasses.py:40
↓ 25 callers
Function
torrent_rank
Calculates search rank for a torrent. :param query: a user-defined query string :param title: a torrent name :param seeders: the num
src/tribler/core/database/ranks.py:32
↓ 23 callers
Method
create_mock_download_config
Create a mocked DownloadConfig.
src/tribler/test_unit/core/libtorrent/download_manager/test_download_manager.py:55
↓ 23 callers
Method
read
Reads piece_length bytes starting from the current seek position.
src/tribler/core/libtorrent/download_manager/stream.py:297
↓ 21 callers
Method
get_def
Get the torrent def belonging to this download.
src/tribler/core/libtorrent/download_manager/download.py:385
↓ 20 callers
Function
useInterval
(callback: Function, delay: number, startNow: boolean = false)
src/tribler/ui/src/hooks/useInterval.tsx:3
↓ 19 callers
Method
get_state
Returns a snapshot of the current state of the download.
src/tribler/core/libtorrent/download_manager/download.py:806
↓ 19 callers
Method
get_status
Returns the status of the torrent.
src/tribler/core/libtorrent/download_manager/download_state.py:103
↓ 19 callers
Method
notify
Send a health update to the GUI.
src/tribler/core/torrent_checker/torrent_checker.py:430
↓ 18 callers
Method
add_ffa_from_dict
(metadata: dict)
src/tribler/core/database/orm_bindings/torrent_metadata.py:84
↓ 18 callers
Method
get_hops
Get the set number of hops for the download.
src/tribler/core/libtorrent/download_manager/download_config.py:193
↓ 18 callers
Method
get_selected_files
Get the selection status of the download's files, or None if it is not available.
src/tribler/core/libtorrent/download_manager/download_state.py:330
↓ 18 callers
Method
set_dest_dir
Sets the directory where to save this Download. :param path: A path of a directory.
src/tribler/core/libtorrent/download_manager/download_config.py:158
↓ 18 callers
Method
start_download
Start a download from the given information.
src/tribler/core/libtorrent/download_manager/download_manager.py:680
↓ 17 callers
Method
get
Get the instance belonging to the selector.
src/tribler/test_unit/core/torrent_checker/mocks.py:62
↓ 17 callers
Method
pack
Pack the given data. :raises InvalidAddressException: if the data could not be packed.
src/tribler/core/socks5/conversion.py:115
↓ 17 callers
Method
set_selected_files
Set the selected files. If the selected files is None or empty, all files will be selected.
src/tribler/core/libtorrent/download_manager/download.py:764
↓ 16 callers
Method
connect
Creates a connection message and calls the socket manager to send it.
src/tribler/core/torrent_checker/torrentchecker_session.py:372
↓ 16 callers
Method
failed
This method handles everything that needs to be done when one step in the session has failed and thus no data can be obtained.
src/tribler/core/torrent_checker/torrentchecker_session.py:98
↓ 15 callers
Method
enable
Sets the file index and waits for initial buffering to be completed.
src/tribler/core/libtorrent/download_manager/stream.py:60
↓ 15 callers
Method
get_endpoint
Get an endpoint by its name, including the first forward slash. Requesting a non-Tribler (i.e., IPv8) endpoint will cause a crash.
src/tribler/core/restapi/rest_manager.py:198
↓ 15 callers
Function
parse_tracker_url
Parses the tracker URL and checks whether it satisfies tracker URL constraints. Additionally, it also checks if the tracker URL is a uniform
src/tribler/core/libtorrent/trackers.py:78
↓ 14 callers
Method
add_endpoint
Add a REST endpoint to the root endpoint.
src/tribler/core/restapi/rest_manager.py:191
↓ 14 callers
Method
create_mock_download
Create a mocked DownloadConfig.
src/tribler/test_unit/core/libtorrent/download_manager/test_stream.py:142
↓ 14 callers
Method
get_session
Get the session for the given number of anonymization hops.
src/tribler/core/libtorrent/download_manager/download_manager.py:405
↓ 14 callers
Method
json
Get the json contents of this request.
src/tribler/test_unit/core/restapi/test_settings_endpoint.py:22
↓ 14 callers
Method
name
Get the name of this torrent.
src/tribler/core/libtorrent/torrentdef.py:51
↓ 14 callers
Method
process_alert
Dispatch an alert to the appriopriate registered handlers.
src/tribler/core/libtorrent/download_manager/download.py:473
↓ 13 callers
Method
checkpoint
Checkpoint this download. Returns when the checkpointing is completed.
src/tribler/core/libtorrent/download_manager/download.py:1003
↓ 13 callers
Method
getSettings
()
src/tribler/ui/src/services/tribler.service.ts:432
↓ 13 callers
Method
get_file_indices
Get the actual torrent file indices of our files.
src/tribler/core/libtorrent/torrentdef.py:113
↓ 13 callers
Method
get_safe_seeding
Get the safe seeding mode of the download.
src/tribler/core/libtorrent/download_manager/download_config.py:205
↓ 13 callers
Function
int2time
Convert an int into a datetime object. :param timestamp: The timestamp to be converted. :param epoch: The epoch time, defaults to Jan 1,
src/tribler/core/database/serialization.py:50
↓ 13 callers
Method
update_download
Update a specific download.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:550
↓ 12 callers
Method
_patch_dlconfig
(self, download_config: DownloadConfig, err: Exception | None = None)
src/tribler/test_unit/core/libtorrent/download_manager/test_download_manager.py:64
↓ 12 callers
Method
add_tracker
Adds a new tracker into the tracker info dict and the database. :param tracker_url: The new tracker URL to be added.
src/tribler/core/torrent_checker/tracker_manager.py:71
↓ 12 callers
Method
check
Check our URL as lazily as possible.
src/tribler/core/rss/rss.py:100
↓ 12 callers
Method
notify
Notify all observers that have subscribed to the given topic.
src/tribler/core/notifier.py:74
↓ 12 callers
Method
resolve
Download the torrent files and add them to our database.
src/tribler/core/rss/rss.py:69
↓ 12 callers
Method
set
( # noqa: D102, PLR0913 rowid: int | None = None, infohash: bytes | None = No
src/tribler/core/database/orm_bindings/torrent_state.py:43
↓ 12 callers
Method
setSettings
(settings: Partial<Settings>)
src/tribler/ui/src/services/tribler.service.ts:442
↓ 12 callers
Function
url_to_path
Convert a URL to a path. For example: .. code-block:: 'file:///path/to/file' -> '/path/to/file' :param file_url: the URL
src/tribler/core/libtorrent/uris.py:12
↓ 11 callers
Method
close
Close this resolver.
src/tribler/core/socks5/aiohttp_connector.py:33
↓ 11 callers
Method
delete
Delete this instance.
src/tribler/test_unit/core/torrent_checker/mocks.py:90
↓ 11 callers
Function
handleError
(response: undefined | ErrorDict | boolean, errorMsg: string, undefinedMsg: string)
src/tribler/ui/src/pages/Downloads/Actions.tsx:47
↓ 11 callers
Method
process_payload
Write a payload to our database (if necessary).
src/tribler/core/database/store.py:493
↓ 11 callers
Method
remove_tracker
Remove a given tracker from the database. URL is sanitized first and removed from the database. If the URL is ill formed then try rem
src/tribler/core/torrent_checker/tracker_manager.py:95
↓ 11 callers
Method
set
Set a config option value based on the path-like descriptor.
src/tribler/tribler_config.py:450
↓ 11 callers
Method
shutdown_task_manager
Shutdown the taskmanager.
src/tribler/core/restapi/webui_endpoint.py:56
↓ 10 callers
Method
create_torrent
Create a torrent from local files and return it in base64 encoding.
src/tribler/core/libtorrent/restapi/create_torrent_endpoint.py:85
↓ 10 callers
Function
create_torrent_file
Create a torrent file from the given paths and parameters. If an output file path is omitted, no file will be written to disk.
src/tribler/core/libtorrent/torrents.py:173
↓ 10 callers
Function
drawLine
( ctx: CanvasRenderingContext2D, strokeStyle: string, x1: number, y1: number,
src/tribler/ui/src/pages/Debug/Asyncio/Health.tsx:90
↓ 10 callers
Method
initialize
Start all the looping tasks for the checker and creata socket.
src/tribler/core/torrent_checker/torrent_checker.py:89
↓ 10 callers
Method
return_404
Returns a 404 response code if your channel has not been created.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:91
↓ 10 callers
Method
should_replace
Whether this check should replace the given check.
src/tribler/core/torrent_checker/healthdataclasses.py:65
↓ 10 callers
Method
torrent_info
Get the libtorrent torrent info instance or load it from our metainfo.
src/tribler/core/libtorrent/torrentdef.py:67
↓ 10 callers
Method
write
Write to whatever transport we have.
src/tribler/core/socks5/client.py:233
↓ 9 callers
Method
byte_to_piece
Finds the piece position that begin_bytes is mapped to.
src/tribler/core/libtorrent/download_manager/stream.py:166
↓ 9 callers
Method
cleanup
Shutdown and invalidate.
src/tribler/core/torrent_checker/torrentchecker_session.py:74
↓ 9 callers
Method
clear_orphaned_parts
Scan the default downloads folder for parts files that are not in our downloads list.
src/tribler/core/libtorrent/download_manager/download_manager.py:218
↓ 9 callers
Method
from_defaults
Create a new download config from the given Tribler configuration.
src/tribler/core/libtorrent/download_manager/download_config.py:124
↓ 9 callers
Method
from_signed_blob
Read a SignedPayload from the given serialized form.
src/tribler/core/database/serialization.py:110
↓ 9 callers
Method
get_download
Returns the Download object of which this is the state.
src/tribler/core/libtorrent/download_manager/download_state.py:86
↓ 9 callers
Method
get_downloads
Return all downloads, both active and inactive.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:252
↓ 9 callers
Method
get_file_priorities
Get the priorities of all files in the download.
src/tribler/core/libtorrent/download_manager/download.py:1169
↓ 9 callers
Method
get_metainfo
Lookup metainfo for a given infohash. The mechanism works by joining the swarm for the infohash connecting to a few peers, and downlo
src/tribler/core/libtorrent/download_manager/download_manager.py:540
↓ 9 callers
Method
load_checkpoint
Load a checkpoint from a given file name.
src/tribler/core/libtorrent/download_manager/download_manager.py:1139
↓ 9 callers
Method
set_hops
Set the number of hops for the download.
src/tribler/core/libtorrent/download_manager/download_config.py:187
↓ 9 callers
Method
start
Initialize and launch all components and REST endpoints.
src/tribler/core/session.py:208
↓ 9 callers
Method
update
Update the RSS URLs that we are watching. Start and stop watchers accordingly.
src/tribler/core/rss/rss.py:191
↓ 8 callers
Method
addEventListener
(topic: string, listener: (event: MessageEvent) => void)
src/tribler/ui/src/services/tribler.service.ts:53
↓ 8 callers
Method
add_download
Start a download from a provided URI.
src/tribler/core/libtorrent/restapi/downloads_endpoint.py:413
↓ 8 callers
Method
can_upgrade
Check if we have old database/download files to port to our current version. Returns the version that can be upgraded from.
src/tribler/core/versioning/manager.py:89
↓ 8 callers
Method
check_version
Check the tribler.org + GitHub websites for a new version.
src/tribler/core/versioning/manager.py:52
↓ 8 callers
Method
get_engineresumedata
Get the engine resume data dict for this download or None if it cannot be decoded.
src/tribler/core/libtorrent/download_manager/download_config.py:304
↓ 8 callers
Method
get_entries_query
This method implements REST-friendly way to get entries from the database. Warning! For Pony magic to work, iteration variable name
src/tribler/core/database/store.py:591
↓ 8 callers
Method
get_events
A GET request to this endpoint will open the event connection. **Example request**: .. sourcecode:: none
src/tribler/core/restapi/events_endpoint.py:245
↓ 8 callers
Method
get_handle
Returns a deferred that fires with a valid libtorrent download handle.
src/tribler/core/libtorrent/download_manager/download.py:391
↓ 8 callers
Method
notify_shutdown_state
Call the notifier to signal a shutdown state update.
src/tribler/core/libtorrent/download_manager/download_manager.py:211
↓ 8 callers
Function
recursive_unicode
Converts any bytes within a data structure to unicode strings. Bytes are assumed to be UTF-8 encoded text. :param obj: object comprised of l
src/tribler/core/libtorrent/restapi/torrentinfo_endpoint.py:56
↓ 8 callers
Method
scrape
Parse the response of a tracker.
src/tribler/core/torrent_checker/torrentchecker_session.py:409
↓ 8 callers
Method
select
(selector: Callable)
src/tribler/core/database/orm_bindings/tracker_state.py:45
next →
1–100 of 1,819, ranked by callers