Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tiny-pilot/tinypilot
/ functions
Functions
758 in github.com/tiny-pilot/tinypilot
⨍
Functions
758
◇
Types & classes
153
↳
Endpoints
113
Function
project_license_get
Retrieves the license for a given project. Args: project: The name of the project's license to retrieve. Returns: A plaintex
app/license_notice.py:293
Function
qt
(t)
app/static/third-party/socket.io/4.7.1/socket.io.min.js:6
Function
raise_exception
()
app/execute_test.py:36
Method
raises_error_if_malformed_request
(self)
app/request_parsers/json_test.py:57
Method
raises_error_if_missing_required_field
(self)
app/request_parsers/json_test.py:62
Function
read
Reads an update result file. Parses the contents of a result file into a Result object. The file should have a format like: {
app/update/result.py:20
Function
read
Reads the most recent update result. Args: None. Returns: An update.result.Result based on the most recent update result fil
app/update/result_store.py:40
Function
register
Creates a new account with the given name and password. Args: username: (str) password: (str) role: (Role) Raises:
app/auth.py:84
Function
require_authentication
(func)
app/views.py:19
Function
required_auth
Decorator to specify the minimum required auth level for an endpoint. See `session.is_auth_valid` for details on the auth rules. Args:
app/api.py:59
Function
requiresHttps
()
app/static/js/controllers.js:304
Function
reschedule
Reschedules the current thread to allow other waiting threads to proceed. When carrying out longer-running operations e.g. in a while loop, the P
app/threads.py:4
Function
restart
()
app/local_system.py:20
Function
restart
Restarts the video streaming services for the remote screen. It only triggers the restart, but it doesn’t actually wait for it to complete.
app/video_service.py:44
Function
restart_post
Triggers restart of the system. Returns: Empty response on success, error object otherwise.
app/api.py:303
Function
return_string
()
app/execute_test.py:40
Function
save
Saves a Settings object to the settings file.
app/update/settings.py:142
Function
saveVideoSettings
({ streamingMode, mjpegFrameRate, mjpegQuality, h264Bitrate, h264StunServer, h264StunPort, })
app/static/js/controllers.js:499
Function
send_keystrokes
Sends multiple keystrokes to the HID interface, one after the other. Args: keyboard_path: The file path to the keyboard interface.
app/hid/keyboard.py:25
Function
send_mouse_event
(mouse_path, buttons, relative_x, relative_y, vertical_wheel_delta, horizontal_wheel_delt
app/hid/mouse.py:4
Function
setKeyboardVisibility
(isVisible)
app/static/js/settings.js:56
Function
setPasteAreaMasked
(isMasked)
app/static/js/settings.js:65
Function
setRequiresHttps
(shouldBeRequired)
app/static/js/controllers.js:320
Function
setScreenCursor
(newCursor)
app/static/js/settings.js:47
Method
setTimeoutWindow
(millisecondsBetweenMouseEvents)
app/static/js/mouse.js:133
Method
setUp
(self)
app/version_test.py:14
Method
setUp
(self)
app/version_test.py:70
Method
setUp
(self)
app/atomic_file_test.py:16
Method
setUp
(self)
app/update/result_store_test.py:13
Method
setUp
(self)
app/update/result_store_test.py:105
Method
setUp
(self)
app/update/result_store_test.py:184
Method
setUp
(self)
app/update/settings_test.py:11
Function
settings_requires_https_get
Returns whether the server requires the client to connect via HTTPS. Note that the server itself doesn’t handle TLS currently. It only checks how
app/api.py:651
Function
settings_requires_https_put
Stores whether the server should require the client to connect via HTTPS. Expects a JSON data structure in the request body that contains the new
app/api.py:672
Function
settings_video_apply_post
Applies the current video settings found in the settings file. To allow the current video settings to take effect, we restart the video strea
app/api.py:821
Function
settings_video_get
Retrieves the current video settings. Returns: On success, a JSON data structure with the following properties: - streamingMode:
app/api.py:701
Function
settings_video_put
Saves new video settings. Note: for the new settings to come into effect, you need to make a call to the /settings/video/apply endpoint after
app/api.py:751
Function
shutdown
()
app/local_system.py:15
Function
shutdown
(restart)
app/static/js/controllers.js:96
Function
shutdown_post
Triggers shutdown of the system. Returns: Empty response on success, error object otherwise.
app/api.py:288
Function
sleep_1_second
()
app/execute_test.py:32
Function
start_async
Launches the update service asynchronously. Launches the tinypilot-update systemd service in the background. If the service is already runnin
app/update/launcher.py:21
Function
status_get
Checks the status of TinyPilot. This endpoint may be called from all locations, so there is no restriction in regards to CORS. Returns:
app/api.py:635
Function
stream_get
()
app/views.py:89
Function
streaming_mode
Prints the currently applicable streaming mode.
app/cli/commands.py:6
Function
styleguide_get
()
app/views.py:71
Function
success
A JSON response for a successful request. Args: data: Dictionary with JSON properties to include. Returns: A `flask.Response
app/json_response.py:6
Method
tearDown
(self)
app/atomic_file_test.py:28
Method
tearDown
(self)
app/update/result_store_test.py:26
Method
tearDown
(self)
app/update/result_store_test.py:118
Method
tearDown
(self)
app/update/result_store_test.py:203
Method
tearDown
(self)
app/update/settings_test.py:27
Method
test_aborts_if_migration_counter_is_incompatible
(self)
app/db/store_test.py:155
Method
test_aborts_on_bad_migration
(self)
app/db/store_test.py:121
Method
test_accept_absent_values
(self)
app/request_parsers/video_settings_test.py:167
Method
test_accept_integers_within_bounds
(self)
app/request_parsers/video_settings_test.py:25
Method
test_accept_integers_within_bounds
(self)
app/request_parsers/video_settings_test.py:64
Method
test_accept_integers_within_bounds
(self)
app/request_parsers/video_settings_test.py:103
Method
test_accept_valid_values
(self)
app/request_parsers/requires_https_test.py:16
Method
test_accept_valid_values
(self)
app/request_parsers/video_settings_test.py:134
Method
test_accept_valid_values
(self)
app/request_parsers/video_settings_test.py:175
Method
test_accepts
(self)
app/request_parsers/paste_test.py:17
Method
test_accepts_file_in_home_dir
(self)
app/env_test.py:15
Method
test_accepts_folder_in_home_dir
(self)
app/env_test.py:19
Method
test_accepts_hostname_with_exactly_63_characters
(self)
app/request_parsers/hostname_test.py:23
Method
test_accepts_hostname_with_valid_characters
(self)
app/request_parsers/hostname_test.py:16
Method
test_accepts_nested_path_within_home_dir
(self)
app/env_test.py:23
Method
test_accepts_path_traversal_within_home_dir
(self)
app/env_test.py:27
Method
test_accepts_single_character_username
(self)
app/request_parsers/field_parsers/username_test.py:37
Method
test_accepts_standard_passwords
(self)
app/request_parsers/field_parsers/password_test.py:29
Method
test_accepts_username_with_up_to_twenty_characters
(self)
app/request_parsers/field_parsers/username_test.py:40
Method
test_accepts_username_with_valid_characters
(self)
app/request_parsers/field_parsers/username_test.py:44
Method
test_accepts_valid_request
(self)
app/request_parsers/credentials_test.py:16
Method
test_accepts_valid_request
(self)
app/request_parsers/password_test.py:16
Method
test_accepts_valid_request
(self)
app/request_parsers/create_user_test.py:17
Method
test_accepts_valid_strings
(self)
app/request_parsers/field_parsers/user_role_test.py:44
Method
test_accepts_valid_wifi_credentials_with_psk
(self)
app/request_parsers/network_test.py:16
Method
test_accepts_valid_wifi_credentials_without_psk
(self)
app/request_parsers/network_test.py:27
Method
test_adds_additional_property_to_existing_file
(self)
app/update/settings_test.py:113
Method
test_applies_migrations_and_adjusts_migration_counter_on_initialization
( self)
app/db/store_test.py:30
Method
test_applies_migrations_on_initialization
(self)
app/db/store_test.py:52
Method
test_as_dict_returns_default_settings_if_no_settings_file_exists
(self)
app/update/settings_test.py:38
Method
test_authentication_required_when_users_exist
(self, mock_get_db)
app/auth_test.py:167
Method
test_background_thread_ignores_function_exception
(self)
app/execute_test.py:114
Method
test_background_thread_ignores_function_successful
(self)
app/execute_test.py:111
Method
test_can_authenticate_after_changing_password
(self, mock_get_db)
app/auth_test.py:183
Method
test_can_authenticate_with_valid_credentials
(self, mock_get_db)
app/auth_test.py:37
Method
test_can_change_https_requirement
(self, mock_db_connection)
app/db/settings_test.py:35
Method
test_can_change_streaming_mode
(self, mock_db_connection)
app/db/settings_test.py:53
Method
test_cannot_authenticate_after_account_deletion
(self, mock_get_db)
app/auth_test.py:90
Method
test_cannot_authenticate_after_all_accounts_deleted
(self, mock_get_db)
app/auth_test.py:143
Method
test_cannot_authenticate_when_no_user_is_registered
(self, mock_get_db)
app/auth_test.py:73
Method
test_cannot_authenticate_with_unknown_user
(self, mock_get_db)
app/auth_test.py:81
Method
test_cannot_authenticate_with_wrong_password
(self, mock_get_db)
app/auth_test.py:65
Method
test_cannot_change_credentials_of_unknown_user
(self, mock_get_db)
app/auth_test.py:194
Method
test_cannot_change_role_of_last_remaining_admin
(self, mock_get_db)
app/auth_test.py:210
Method
test_cannot_delete_last_remaining_admin_while_other_users_exist
( self, mock_get_db)
app/auth_test.py:104
Method
test_cannot_delete_unknown_user
(self, mock_get_db)
app/auth_test.py:134
Method
test_cannot_register_duplicate_users
(self, mock_get_db)
app/auth_test.py:46
Method
test_chmod_sets_desired_permissions
(self)
app/atomic_file_test.py:66
← previous
next →
401–500 of 758, ranked by callers