Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YunoHost/yunohost
/ functions
Functions
1,520 in github.com/YunoHost/yunohost
⨍
Functions
1,520
◇
Types & classes
170
↳
Endpoints
32
↓ 11 callers
Function
_set_permissions
(path, user, group, permissions)
src/certificate.py:741
↓ 11 callers
Function
app_map
Returns a map of url <-> app id such as : { "domain.tld/foo": "foo__2", "domain.tld/mail: "rainloop", "other.tld/": "ba
src/app.py:459
↓ 11 callers
Function
aptitude_with_progress_bar
(cmd: str)
src/utils/system.py:344
↓ 11 callers
Function
cp
(source: str, dest: str, recursive: bool = False, **kwargs: Any)
src/utils/file_utils.py:404
↓ 11 callers
Function
debian_version
()
src/utils/system.py:49
↓ 11 callers
Function
dig
Do a quick DNS request and avoid the "search" trap inside /etc/resolv.conf
src/utils/dns.py:61
↓ 11 callers
Function
permission_delete
( permission: str, force: bool = False, sync_perm: bool = True )
src/permission.py:581
↓ 11 callers
Function
user_delete
( operation_logger: "OperationLogger", username: str, purge: bool = False, from_import: bool =
src/user.py:340
↓ 10 callers
Function
_get_parent_domain_of
( domain: str, return_self: bool = False, topest: bool = False )
src/domain.py:259
↓ 10 callers
Function
_parse_app_instance_name
Parse a Yunohost app instance name and extracts the original appid and the application instance number 'yolo' -> ('yolo', 1) 'y
src/utils/app_utils.py:1258
↓ 10 callers
Function
_run_service_command
Run services management command (start, stop, enable, disable, restart, reload) Keyword argument: action -- Action to perform
src/service.py:576
↓ 10 callers
Function
app_is_installed
(domain, app)
tests/test_apps.py:139
↓ 10 callers
Function
app_is_installed
(app)
tests/test_backuprestore.py:150
↓ 10 callers
Method
close
Close properly the unit operation
src/log.py:859
↓ 10 callers
Function
is_yunohost_dyndns_domain
(domain: str)
src/utils/dns.py:34
↓ 9 callers
Function
_fill_or_prompt_one_option
(raw_option, intake)
tests/test_questions.py:405
↓ 9 callers
Function
_load_apps_catalog
Read all the apps catalog cache files and build a single dict (merged_catalog) corresponding to all known apps and categories
src/app_catalog.py:284
↓ 9 callers
Function
_update_apps_catalog
Fetches the json for each apps_catalog and update the cache apps_catalog_list is for example : [ {"id": "default", "url": "https://ap
src/app_catalog.py:180
↓ 9 callers
Function
app_is_exposed_on_http
(domain, path, message_in_page)
tests/test_apps.py:151
↓ 9 callers
Function
assert_password_is_strong_enough
(profile: str, password: str)
src/utils/password.py:72
↓ 9 callers
Function
download_text
Download text from a url and returns the raw text Keyword argument: url -- The url to download the data from timeout -- Numb
src/utils/file_utils.py:411
↓ 9 callers
Function
free_space_in_directory
(dirpath: str | Path)
src/utils/system.py:99
↓ 9 callers
Function
service_add
Add a custom service Keyword argument: name -- Service name to add description -- description of the service log --
src/service.py:52
↓ 8 callers
Function
_ask_confirmation
Ask confirmation Keyword argument: question -- m18n key or string params -- dict of values passed to the string formating
src/utils/app_utils.py:1443
↓ 8 callers
Function
_get_status
(domain)
src/certificate.py:651
↓ 8 callers
Function
_make_tmp_workdir_for_app
(app: str | None = None)
src/utils/app_utils.py:1303
↓ 8 callers
Function
check_LDAP_db_integrity
()
tests/test_permission.py:241
↓ 8 callers
Method
copytree
(src, dst, symlinks=False, ignore=None)
src/backup.py:1322
↓ 8 callers
Function
domain_config_get
Display a domain configuration
src/domain.py:704
↓ 8 callers
Method
enabled
(self, new_status: bool | None = None)
src/firewall.py:214
↓ 8 callers
Method
flush
Write or rewrite the metadata file with all metadata known
src/log.py:768
↓ 8 callers
Function
get_public_ip
(protocol: IPProto = 4)
src/utils/network.py:37
↓ 7 callers
Function
_escape
r"""Escape any special character. Escape the characters: - single quotes (') are put in a separate double quoted string ('"'"') - col
doc/generate_zsh_completion.py:685
↓ 7 callers
Function
binary_to_human
Convert bytes or bits into human readable format with binary prefix
src/utils/system.py:136
↓ 7 callers
Method
display
(self, message, *args, **kwargs)
tests/conftest.py:113
↓ 7 callers
Function
evaluate_simple_js_expression
( expr: str, context: Mapping[str, Any] = {} )
src/utils/form.py:218
↓ 7 callers
Method
get
( self, key: str | None = None, mode: "ConfigPanelGetMode" = "classic" )
src/settings.py:144
↓ 7 callers
Function
human_size
(bytes_)
src/diagnosers/50-systemresources.py:217
↓ 7 callers
Function
human_to_binary
(size: str)
src/utils/system.py:114
↓ 7 callers
Method
invalidate_all_sessions_for_user
(user: str)
src/authenticators/ldap_admin.py:238
↓ 7 callers
Function
patch_interface
(interface: Literal["api", "cli"] = "api")
tests/test_questions.py:89
↓ 7 callers
Method
runcmd
(self, cmd, raise_on_errors=True)
src/migrations/postgresql.py:98
↓ 7 callers
Function
user_permission_list
( full: bool = False, apps: list[str] = [] )
src/user.py:1529
↓ 7 callers
Function
user_update
( operation_logger: "OperationLogger", username: str, mail: str | None = None, change_password
src/user.py:417
↓ 7 callers
Method
validate_uniqueness
Check uniqueness of values Keyword arguments: value_dict -- Dictionnary of attributes/values to check Returns:
src/utils/ldap.py:371
↓ 6 callers
Method
_add_to_list_to_backup
Mark file or directory to backup This method add source/dest couple to the "paths_to_backup" list. Args: source --
src/backup.py:440
↓ 6 callers
Function
_assert_system_is_sane_for_app
(manifest: AppManifest, when: Literal["pre", "post"])
src/utils/app_utils.py:1338
↓ 6 callers
Function
_force_clear_hashes
(paths: list[str])
src/regenconf.py:643
↓ 6 callers
Method
_get_all_venvs
Returns the list of all python virtual env directories recursively Arguments: dir - the directory to scan in
src/migrations/python.py:70
↓ 6 callers
Function
_get_domains
(exclude_subdomains: bool = False)
src/domain.py:92
↓ 6 callers
Function
_get_journalctl_logs
(service, number="all")
src/service.py:863
↓ 6 callers
Function
_get_regenconf_infos
Get a dict of regen conf informations
src/regenconf.py:469
↓ 6 callers
Function
_hydrate_app_template
(template: str, data: dict[str, Any])
src/utils/app_utils.py:449
↓ 6 callers
Function
_norm_name
Normalize a string to make it look like a function name. Apply the transformations: - lowercase - spaces replaced by underscores
doc/generate_zsh_completion.py:665
↓ 6 callers
Function
_parse_app_version
(v: str)
src/utils/app_utils.py:199
↓ 6 callers
Function
app_change_url
Modify the URL at which an application is installed. Keyword argument: app -- Taget app instance name domain -- New app doma
src/app.py:576
↓ 6 callers
Function
app_config_set
Apply a new app configuration
src/app.py:2297
↓ 6 callers
Function
backup_info
Get info about a local backup archive Keyword arguments: name -- Name of the local backup archive with_details -- Show addit
src/backup.py:2369
↓ 6 callers
Method
check_status
(self)
src/firewall.py:220
↓ 6 callers
Function
domain_main_domain
Check the current main domain, or change it Keyword argument: new_main_domain -- The new domain to be set as the main domain
src/domain.py:628
↓ 6 callers
Function
hook_exec
Execute hook from a file with arguments Keyword argument: path -- Path of the script to execute args -- Ordered list of argu
src/hook.py:318
↓ 6 callers
Function
hook_list
List available hooks for an action Keyword argument: action -- Action name list_by -- Property to list hook by show_
src/hook.py:124
↓ 6 callers
Function
is_special_use_tld
(domain: str)
src/utils/dns.py:40
↓ 6 callers
Function
login
(session, logged_as, logged_on=None)
tests/test_sso_and_portalapi.py:102
↓ 6 callers
Function
number_of_active_session_for_user
(user)
tests/test_sso_and_portalapi.py:131
↓ 6 callers
Function
patch_isatty
(isatty)
tests/test_questions.py:83
↓ 6 callers
Function
system_arch
()
src/utils/system.py:61
↓ 6 callers
Method
test_options_prompted_with_ask_help
(self, prefill_data=None)
tests/test_questions.py:1709
↓ 6 callers
Function
user_group_create
Create group Keyword argument: groupname -- Must be unique
src/user.py:1096
↓ 6 callers
Function
user_group_delete
Delete user Keyword argument: groupname -- Groupname to delete
src/user.py:1176
↓ 6 callers
Function
user_permission_info
Return informations about a specific permission Keyword argument: permission -- Name of the permission (e.g. mail or nextcloud or wo
src/permission.py:346
↓ 5 callers
Method
__init__
(self, properties: Dict[str, Any], app: str, manager=None)
src/utils/resources.py:147
↓ 5 callers
Function
_build_dns_conf
Internal function that will returns a data structure containing the needed information to generate/adapt the dns configuration Arguments
src/dns.py:119
↓ 5 callers
Function
_calculate_hash
Calculate the MD5 hash of a file
src/regenconf.py:540
↓ 5 callers
Function
_filter_and_hydrate_notifications
( notifications, current_version=None, data={} )
src/utils/app_utils.py:1406
↓ 5 callers
Method
_get_config_panel
( self, prevalidate: bool = False )
src/utils/configpanel.py:822
↓ 5 callers
Function
_get_description_from_name
Return the translated description from the filename
src/log.py:987
↓ 5 callers
Method
_get_field_attrs
(self)
src/utils/form.py:1357
↓ 5 callers
Function
_get_migrations_list
()
src/tools.py:961
↓ 5 callers
Method
_get_prompt_message
(self, value: None)
src/utils/form.py:437
↓ 5 callers
Function
_get_relative_name_for_dns_zone
(domain, base_dns_zone)
src/dns.py:459
↓ 5 callers
Function
_list_diagnosis_categories
()
src/diagnosis.py:648
↓ 5 callers
Method
_mock_app_upgrade
(self, mocker)
tests/test_apps.py:581
↓ 5 callers
Method
_test_basic_attrs
(self)
tests/test_questions.py:468
↓ 5 callers
Function
app_info
( app: str, full: bool = False, with_upgrade_infos: bool = False, with_pre_upgrade_notificatio
src/app.py:147
↓ 5 callers
Function
assert_password_is_compatible
UNIX seems to not like password longer than 127 chars ... e.g. SSH login gets broken (or even 'su admin' when entering the password)
src/utils/password.py:56
↓ 5 callers
Method
clean_upload_dirs
(cls)
src/utils/form.py:1368
↓ 5 callers
Method
close
Close the write end of the pipe.
src/utils/process.py:161
↓ 5 callers
Function
domain_config_set
Apply a new domain configuration
src/domain.py:730
↓ 5 callers
Method
find_gid
(self)
src/firewall.py:249
↓ 5 callers
Method
get_session_cookie
( self, raise_if_no_session_exists: bool = True )
src/authenticators/ldap_admin.py:181
↓ 5 callers
Function
get_ynh_package_version
(package: str)
src/utils/system.py:162
↓ 5 callers
Function
hook_exec_with_script_debug_if_failure
(*args, **kwargs)
src/hook.py:544
↓ 5 callers
Function
install_break_yo_system
(domain, breakwhat)
tests/test_apps.py:190
↓ 5 callers
Function
patch_apps
Data mocking for AppOption: - yunohost.app.app_list
tests/test_questions.py:1631
↓ 5 callers
Function
patch_prompt
(return_value)
tests/test_questions.py:98
↓ 5 callers
Function
permission_create
Create a new permission for a specific application Keyword argument: permission -- Name of the permission (e.g. mail or nextclo
src/permission.py:380
↓ 5 callers
Function
read_toml
Safely read a toml file Keyword argument: file_path -- Path to the toml file
src/utils/file_utils.py:110
↓ 5 callers
Function
settings_list
(full=False)
src/settings.py:80
↓ 5 callers
Function
user_permission_update
( permission: str, label: str | None = None, show_tile: bool | None = None, logo: BinaryIO | L
src/user.py:1538
← previous
next →
101–200 of 1,520, ranked by callers