MCPcopy Create free account

hub / github.com/tiny-pilot/tinypilot / functions

Functions758 in github.com/tiny-pilot/tinypilot

Functionproject_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
Functionqt
(t)
app/static/third-party/socket.io/4.7.1/socket.io.min.js:6
Functionraise_exception
()
app/execute_test.py:36
Methodraises_error_if_malformed_request
(self)
app/request_parsers/json_test.py:57
Methodraises_error_if_missing_required_field
(self)
app/request_parsers/json_test.py:62
Functionread
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
Functionread
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
Functionregister
Creates a new account with the given name and password. Args: username: (str) password: (str) role: (Role) Raises:
app/auth.py:84
Functionrequire_authentication
(func)
app/views.py:19
Functionrequired_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
FunctionrequiresHttps
()
app/static/js/controllers.js:304
Functionreschedule
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
Functionrestart
()
app/local_system.py:20
Functionrestart
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
Functionrestart_post
Triggers restart of the system. Returns: Empty response on success, error object otherwise.
app/api.py:303
Functionreturn_string
()
app/execute_test.py:40
Functionsave
Saves a Settings object to the settings file.
app/update/settings.py:142
FunctionsaveVideoSettings
({ streamingMode, mjpegFrameRate, mjpegQuality, h264Bitrate, h264StunServer, h264StunPort, })
app/static/js/controllers.js:499
Functionsend_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
Functionsend_mouse_event
(mouse_path, buttons, relative_x, relative_y, vertical_wheel_delta, horizontal_wheel_delt
app/hid/mouse.py:4
FunctionsetKeyboardVisibility
(isVisible)
app/static/js/settings.js:56
FunctionsetPasteAreaMasked
(isMasked)
app/static/js/settings.js:65
FunctionsetRequiresHttps
(shouldBeRequired)
app/static/js/controllers.js:320
FunctionsetScreenCursor
(newCursor)
app/static/js/settings.js:47
MethodsetTimeoutWindow
(millisecondsBetweenMouseEvents)
app/static/js/mouse.js:133
MethodsetUp
(self)
app/version_test.py:14
MethodsetUp
(self)
app/version_test.py:70
MethodsetUp
(self)
app/atomic_file_test.py:16
MethodsetUp
(self)
app/update/result_store_test.py:13
MethodsetUp
(self)
app/update/result_store_test.py:105
MethodsetUp
(self)
app/update/result_store_test.py:184
MethodsetUp
(self)
app/update/settings_test.py:11
Functionsettings_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
Functionsettings_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
Functionsettings_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
Functionsettings_video_get
Retrieves the current video settings. Returns: On success, a JSON data structure with the following properties: - streamingMode:
app/api.py:701
Functionsettings_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
Functionshutdown
()
app/local_system.py:15
Functionshutdown
(restart)
app/static/js/controllers.js:96
Functionshutdown_post
Triggers shutdown of the system. Returns: Empty response on success, error object otherwise.
app/api.py:288
Functionsleep_1_second
()
app/execute_test.py:32
Functionstart_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
Functionstatus_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
Functionstream_get
()
app/views.py:89
Functionstreaming_mode
Prints the currently applicable streaming mode.
app/cli/commands.py:6
Functionstyleguide_get
()
app/views.py:71
Functionsuccess
A JSON response for a successful request. Args: data: Dictionary with JSON properties to include. Returns: A `flask.Response
app/json_response.py:6
MethodtearDown
(self)
app/atomic_file_test.py:28
MethodtearDown
(self)
app/update/result_store_test.py:26
MethodtearDown
(self)
app/update/result_store_test.py:118
MethodtearDown
(self)
app/update/result_store_test.py:203
MethodtearDown
(self)
app/update/settings_test.py:27
Methodtest_aborts_if_migration_counter_is_incompatible
(self)
app/db/store_test.py:155
Methodtest_aborts_on_bad_migration
(self)
app/db/store_test.py:121
Methodtest_accept_absent_values
(self)
app/request_parsers/video_settings_test.py:167
Methodtest_accept_integers_within_bounds
(self)
app/request_parsers/video_settings_test.py:25
Methodtest_accept_integers_within_bounds
(self)
app/request_parsers/video_settings_test.py:64
Methodtest_accept_integers_within_bounds
(self)
app/request_parsers/video_settings_test.py:103
Methodtest_accept_valid_values
(self)
app/request_parsers/requires_https_test.py:16
Methodtest_accept_valid_values
(self)
app/request_parsers/video_settings_test.py:134
Methodtest_accept_valid_values
(self)
app/request_parsers/video_settings_test.py:175
Methodtest_accepts
(self)
app/request_parsers/paste_test.py:17
Methodtest_accepts_file_in_home_dir
(self)
app/env_test.py:15
Methodtest_accepts_folder_in_home_dir
(self)
app/env_test.py:19
Methodtest_accepts_hostname_with_exactly_63_characters
(self)
app/request_parsers/hostname_test.py:23
Methodtest_accepts_hostname_with_valid_characters
(self)
app/request_parsers/hostname_test.py:16
Methodtest_accepts_nested_path_within_home_dir
(self)
app/env_test.py:23
Methodtest_accepts_path_traversal_within_home_dir
(self)
app/env_test.py:27
Methodtest_accepts_single_character_username
(self)
app/request_parsers/field_parsers/username_test.py:37
Methodtest_accepts_standard_passwords
(self)
app/request_parsers/field_parsers/password_test.py:29
Methodtest_accepts_username_with_up_to_twenty_characters
(self)
app/request_parsers/field_parsers/username_test.py:40
Methodtest_accepts_username_with_valid_characters
(self)
app/request_parsers/field_parsers/username_test.py:44
Methodtest_accepts_valid_request
(self)
app/request_parsers/credentials_test.py:16
Methodtest_accepts_valid_request
(self)
app/request_parsers/password_test.py:16
Methodtest_accepts_valid_request
(self)
app/request_parsers/create_user_test.py:17
Methodtest_accepts_valid_strings
(self)
app/request_parsers/field_parsers/user_role_test.py:44
Methodtest_accepts_valid_wifi_credentials_with_psk
(self)
app/request_parsers/network_test.py:16
Methodtest_accepts_valid_wifi_credentials_without_psk
(self)
app/request_parsers/network_test.py:27
Methodtest_adds_additional_property_to_existing_file
(self)
app/update/settings_test.py:113
Methodtest_applies_migrations_and_adjusts_migration_counter_on_initialization
( self)
app/db/store_test.py:30
Methodtest_applies_migrations_on_initialization
(self)
app/db/store_test.py:52
Methodtest_as_dict_returns_default_settings_if_no_settings_file_exists
(self)
app/update/settings_test.py:38
Methodtest_authentication_required_when_users_exist
(self, mock_get_db)
app/auth_test.py:167
Methodtest_background_thread_ignores_function_exception
(self)
app/execute_test.py:114
Methodtest_background_thread_ignores_function_successful
(self)
app/execute_test.py:111
Methodtest_can_authenticate_after_changing_password
(self, mock_get_db)
app/auth_test.py:183
Methodtest_can_authenticate_with_valid_credentials
(self, mock_get_db)
app/auth_test.py:37
Methodtest_can_change_https_requirement
(self, mock_db_connection)
app/db/settings_test.py:35
Methodtest_can_change_streaming_mode
(self, mock_db_connection)
app/db/settings_test.py:53
Methodtest_cannot_authenticate_after_account_deletion
(self, mock_get_db)
app/auth_test.py:90
Methodtest_cannot_authenticate_after_all_accounts_deleted
(self, mock_get_db)
app/auth_test.py:143
Methodtest_cannot_authenticate_when_no_user_is_registered
(self, mock_get_db)
app/auth_test.py:73
Methodtest_cannot_authenticate_with_unknown_user
(self, mock_get_db)
app/auth_test.py:81
Methodtest_cannot_authenticate_with_wrong_password
(self, mock_get_db)
app/auth_test.py:65
Methodtest_cannot_change_credentials_of_unknown_user
(self, mock_get_db)
app/auth_test.py:194
Methodtest_cannot_change_role_of_last_remaining_admin
(self, mock_get_db)
app/auth_test.py:210
Methodtest_cannot_delete_last_remaining_admin_while_other_users_exist
( self, mock_get_db)
app/auth_test.py:104
Methodtest_cannot_delete_unknown_user
(self, mock_get_db)
app/auth_test.py:134
Methodtest_cannot_register_duplicate_users
(self, mock_get_db)
app/auth_test.py:46
Methodtest_chmod_sets_desired_permissions
(self)
app/atomic_file_test.py:66
← previousnext →401–500 of 758, ranked by callers