MCPcopy Create free account

hub / github.com/YunoHost/yunohost / functions

Functions1,520 in github.com/YunoHost/yunohost

↓ 11 callersFunction_set_permissions
(path, user, group, permissions)
src/certificate.py:741
↓ 11 callersFunctionapp_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 callersFunctionaptitude_with_progress_bar
(cmd: str)
src/utils/system.py:344
↓ 11 callersFunctioncp
(source: str, dest: str, recursive: bool = False, **kwargs: Any)
src/utils/file_utils.py:404
↓ 11 callersFunctiondebian_version
()
src/utils/system.py:49
↓ 11 callersFunctiondig
Do a quick DNS request and avoid the "search" trap inside /etc/resolv.conf
src/utils/dns.py:61
↓ 11 callersFunctionpermission_delete
( permission: str, force: bool = False, sync_perm: bool = True )
src/permission.py:581
↓ 11 callersFunctionuser_delete
( operation_logger: "OperationLogger", username: str, purge: bool = False, from_import: bool =
src/user.py:340
↓ 10 callersFunction_get_parent_domain_of
( domain: str, return_self: bool = False, topest: bool = False )
src/domain.py:259
↓ 10 callersFunction_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 callersFunction_run_service_command
Run services management command (start, stop, enable, disable, restart, reload) Keyword argument: action -- Action to perform
src/service.py:576
↓ 10 callersFunctionapp_is_installed
(domain, app)
tests/test_apps.py:139
↓ 10 callersFunctionapp_is_installed
(app)
tests/test_backuprestore.py:150
↓ 10 callersMethodclose
Close properly the unit operation
src/log.py:859
↓ 10 callersFunctionis_yunohost_dyndns_domain
(domain: str)
src/utils/dns.py:34
↓ 9 callersFunction_fill_or_prompt_one_option
(raw_option, intake)
tests/test_questions.py:405
↓ 9 callersFunction_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 callersFunction_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 callersFunctionapp_is_exposed_on_http
(domain, path, message_in_page)
tests/test_apps.py:151
↓ 9 callersFunctionassert_password_is_strong_enough
(profile: str, password: str)
src/utils/password.py:72
↓ 9 callersFunctiondownload_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 callersFunctionfree_space_in_directory
(dirpath: str | Path)
src/utils/system.py:99
↓ 9 callersFunctionservice_add
Add a custom service Keyword argument: name -- Service name to add description -- description of the service log --
src/service.py:52
↓ 8 callersFunction_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 callersFunction_get_status
(domain)
src/certificate.py:651
↓ 8 callersFunction_make_tmp_workdir_for_app
(app: str | None = None)
src/utils/app_utils.py:1303
↓ 8 callersFunctioncheck_LDAP_db_integrity
()
tests/test_permission.py:241
↓ 8 callersMethodcopytree
(src, dst, symlinks=False, ignore=None)
src/backup.py:1322
↓ 8 callersFunctiondomain_config_get
Display a domain configuration
src/domain.py:704
↓ 8 callersMethodenabled
(self, new_status: bool | None = None)
src/firewall.py:214
↓ 8 callersMethodflush
Write or rewrite the metadata file with all metadata known
src/log.py:768
↓ 8 callersFunctionget_public_ip
(protocol: IPProto = 4)
src/utils/network.py:37
↓ 7 callersFunction_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 callersFunctionbinary_to_human
Convert bytes or bits into human readable format with binary prefix
src/utils/system.py:136
↓ 7 callersMethoddisplay
(self, message, *args, **kwargs)
tests/conftest.py:113
↓ 7 callersFunctionevaluate_simple_js_expression
( expr: str, context: Mapping[str, Any] = {} )
src/utils/form.py:218
↓ 7 callersMethodget
( self, key: str | None = None, mode: "ConfigPanelGetMode" = "classic" )
src/settings.py:144
↓ 7 callersFunctionhuman_size
(bytes_)
src/diagnosers/50-systemresources.py:217
↓ 7 callersFunctionhuman_to_binary
(size: str)
src/utils/system.py:114
↓ 7 callersMethodinvalidate_all_sessions_for_user
(user: str)
src/authenticators/ldap_admin.py:238
↓ 7 callersFunctionpatch_interface
(interface: Literal["api", "cli"] = "api")
tests/test_questions.py:89
↓ 7 callersMethodruncmd
(self, cmd, raise_on_errors=True)
src/migrations/postgresql.py:98
↓ 7 callersFunctionuser_permission_list
( full: bool = False, apps: list[str] = [] )
src/user.py:1529
↓ 7 callersFunctionuser_update
( operation_logger: "OperationLogger", username: str, mail: str | None = None, change_password
src/user.py:417
↓ 7 callersMethodvalidate_uniqueness
Check uniqueness of values Keyword arguments: value_dict -- Dictionnary of attributes/values to check Returns:
src/utils/ldap.py:371
↓ 6 callersMethod_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 callersFunction_assert_system_is_sane_for_app
(manifest: AppManifest, when: Literal["pre", "post"])
src/utils/app_utils.py:1338
↓ 6 callersFunction_force_clear_hashes
(paths: list[str])
src/regenconf.py:643
↓ 6 callersMethod_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 callersFunction_get_domains
(exclude_subdomains: bool = False)
src/domain.py:92
↓ 6 callersFunction_get_journalctl_logs
(service, number="all")
src/service.py:863
↓ 6 callersFunction_get_regenconf_infos
Get a dict of regen conf informations
src/regenconf.py:469
↓ 6 callersFunction_hydrate_app_template
(template: str, data: dict[str, Any])
src/utils/app_utils.py:449
↓ 6 callersFunction_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 callersFunction_parse_app_version
(v: str)
src/utils/app_utils.py:199
↓ 6 callersFunctionapp_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 callersFunctionapp_config_set
Apply a new app configuration
src/app.py:2297
↓ 6 callersFunctionbackup_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 callersMethodcheck_status
(self)
src/firewall.py:220
↓ 6 callersFunctiondomain_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 callersFunctionhook_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 callersFunctionhook_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 callersFunctionis_special_use_tld
(domain: str)
src/utils/dns.py:40
↓ 6 callersFunctionlogin
(session, logged_as, logged_on=None)
tests/test_sso_and_portalapi.py:102
↓ 6 callersFunctionnumber_of_active_session_for_user
(user)
tests/test_sso_and_portalapi.py:131
↓ 6 callersFunctionpatch_isatty
(isatty)
tests/test_questions.py:83
↓ 6 callersFunctionsystem_arch
()
src/utils/system.py:61
↓ 6 callersMethodtest_options_prompted_with_ask_help
(self, prefill_data=None)
tests/test_questions.py:1709
↓ 6 callersFunctionuser_group_create
Create group Keyword argument: groupname -- Must be unique
src/user.py:1096
↓ 6 callersFunctionuser_group_delete
Delete user Keyword argument: groupname -- Groupname to delete
src/user.py:1176
↓ 6 callersFunctionuser_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 callersMethod__init__
(self, properties: Dict[str, Any], app: str, manager=None)
src/utils/resources.py:147
↓ 5 callersFunction_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 callersFunction_calculate_hash
Calculate the MD5 hash of a file
src/regenconf.py:540
↓ 5 callersFunction_filter_and_hydrate_notifications
( notifications, current_version=None, data={} )
src/utils/app_utils.py:1406
↓ 5 callersMethod_get_config_panel
( self, prevalidate: bool = False )
src/utils/configpanel.py:822
↓ 5 callersFunction_get_description_from_name
Return the translated description from the filename
src/log.py:987
↓ 5 callersMethod_get_field_attrs
(self)
src/utils/form.py:1357
↓ 5 callersFunction_get_migrations_list
()
src/tools.py:961
↓ 5 callersMethod_get_prompt_message
(self, value: None)
src/utils/form.py:437
↓ 5 callersFunction_get_relative_name_for_dns_zone
(domain, base_dns_zone)
src/dns.py:459
↓ 5 callersFunction_list_diagnosis_categories
()
src/diagnosis.py:648
↓ 5 callersMethod_mock_app_upgrade
(self, mocker)
tests/test_apps.py:581
↓ 5 callersMethod_test_basic_attrs
(self)
tests/test_questions.py:468
↓ 5 callersFunctionapp_info
( app: str, full: bool = False, with_upgrade_infos: bool = False, with_pre_upgrade_notificatio
src/app.py:147
↓ 5 callersFunctionassert_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 callersMethodclean_upload_dirs
(cls)
src/utils/form.py:1368
↓ 5 callersMethodclose
Close the write end of the pipe.
src/utils/process.py:161
↓ 5 callersFunctiondomain_config_set
Apply a new domain configuration
src/domain.py:730
↓ 5 callersMethodfind_gid
(self)
src/firewall.py:249
↓ 5 callersMethodget_session_cookie
( self, raise_if_no_session_exists: bool = True )
src/authenticators/ldap_admin.py:181
↓ 5 callersFunctionget_ynh_package_version
(package: str)
src/utils/system.py:162
↓ 5 callersFunctionhook_exec_with_script_debug_if_failure
(*args, **kwargs)
src/hook.py:544
↓ 5 callersFunctioninstall_break_yo_system
(domain, breakwhat)
tests/test_apps.py:190
↓ 5 callersFunctionpatch_apps
Data mocking for AppOption: - yunohost.app.app_list
tests/test_questions.py:1631
↓ 5 callersFunctionpatch_prompt
(return_value)
tests/test_questions.py:98
↓ 5 callersFunctionpermission_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 callersFunctionread_toml
Safely read a toml file Keyword argument: file_path -- Path to the toml file
src/utils/file_utils.py:110
↓ 5 callersFunctionsettings_list
(full=False)
src/settings.py:80
↓ 5 callersFunctionuser_permission_update
( permission: str, label: str | None = None, show_tile: bool | None = None, logo: BinaryIO | L
src/user.py:1538
← previousnext →101–200 of 1,520, ranked by callers