Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/HorlogeSkynet/archey4
/ functions
Functions
342 in github.com/HorlogeSkynet/archey4
⨍
Functions
342
◇
Types & classes
72
↳
Endpoints
133
↓ 78 callers
Method
get
Returns the internal counter value
archey/test/test_archey_singleton.py:18
↓ 59 callers
Method
append
Append a pre-formatted entry to the final output content
archey/output.py:83
↓ 41 callers
Method
output
Reverse order!
archey/test/test_archey_entry.py:16
↓ 24 callers
Method
get
A binding method to imitate the `dict.get()` behavior.
archey/configuration.py:54
↓ 22 callers
Method
assertListEmpty
Simple method to check that passed `obj` is an **empty** `list`
archey/test/__init__.py:19
↓ 19 callers
Method
entry_mock
Creates a placeholder "instance" of the entry class passed, with a clean default `_default_strings` which is optionally updated by `c
archey/test/entries/__init__.py:21
↓ 14 callers
Method
_check_output_side_effect
Internal helper method to facilitate `check_output` mocking
archey/test/entries/test_archey_packages.py:379
↓ 12 callers
Method
get_local
Entry point of Archey distribution detection logic
archey/distributions.py:72
↓ 10 callers
Method
_retrieve_ip_address
Best effort to retrieve public IP address based on corresponding options. We are trying special DNS resolutions first for performance
archey/entries/wan_ip.py:35
↓ 10 callers
Method
output
Main `Output`'s `output` method. First we get entries to add their outputs to the results and then calls specific `output` me
archey/output.py:87
↓ 8 callers
Method
_environment_detection
Implement same algorithm xdg-utils uses
archey/entries/desktop_environment.py:92
↓ 8 callers
Method
_fetch_virtual_env_info
Relying on some system tools, tries to gather some details about hypervisor. When available, relies on systemd. If running wi
archey/entries/model.py:44
↓ 8 callers
Method
should_color_output
Returns whether or not output should be colored, according to runtime environment. Current implementation is specific to Archey as it
archey/colors.py:28
↓ 7 callers
Method
_fetch_dmi_info
Tries to open DMI Linux files, looking for hardware information
archey/entries/model.py:80
↓ 7 callers
Method
_run_sensors
( self, whitelisted_chips: Optional[List[str]] = None, excluded_subfeatures: Optional[
archey/entries/temperature.py:69
↓ 7 callers
Function
get_logo_width
Utility function computing the real width of a distribution logo. Rationale : We use placeholders to dynamically set ANSI colors.
archey/logos/__init__.py:16
↓ 6 callers
Method
_fetch_sysctl_hw
()
archey/entries/model.py:125
↓ 6 callers
Method
_load_configuration
A method handling configuration loading from a JSON file. It will try to load any `config.json` present under `path`.
archey/configuration.py:64
↓ 6 callers
Method
_parse_proc_cpuinfo
Read `/proc/cpuinfo` and search for CPU model names occurrences
archey/entries/cpu.py:71
↓ 6 callers
Method
escape_code_from_attrs
Build and return an ANSI/ECMA-48 escape code string from passed display attributes.
archey/colors.py:47
↓ 6 callers
Method
get_level_color
Returns the best level color according to `value` compared to `{yellow,red}_bpt`
archey/colors.py:88
↓ 6 callers
Method
remove_colors
Simple DRY method to remove any ANSI/ECMA-48 color escape code from passed `string`
archey/colors.py:42
↓ 6 callers
Method
version_to_semver_segments
Transforms string `version` to a tuple containing SemVer segments
archey/utility.py:24
↓ 5 callers
Method
_fetch_raspberry_pi_revision
Tries to retrieve hardware info from `/proc/device-tree/model` or `/proc/cpuinfo`
archey/entries/model.py:159
↓ 5 callers
Method
_parse_lscpu_output
Same operation but from `lscpu` output
archey/entries/cpu.py:100
↓ 5 callers
Method
_parse_lspci_output
Based on `lspci` output, return a list of video controllers names
archey/entries/gpu.py:48
↓ 5 callers
Method
_parse_system_profiler
Based on `system_profiler` output, return a list of video chipsets model names
archey/entries/gpu.py:117
↓ 5 callers
Method
_run_istats_or_osxcputemp
For Darwin systems, let's rely on `iStats` or `OSX CPU Temp` third-party programs. System's `powermetrics` program is **very** slow t
archey/entries/temperature.py:151
↓ 5 callers
Method
_run_sysctl_dev_cpu
(self)
archey/entries/temperature.py:182
↓ 5 callers
Method
_videocore_chipsets
Browse /dev/dri/card* to look for devices managed by vc4/v3d driver. From there, infer VideoCore chipset version from v3d driver revi
archey/entries/gpu.py:68
↓ 5 callers
Method
output
Adds the entry to `output` after pretty-formatting the IP address list.
archey/entries/lan_ip.py:78
↓ 4 callers
Method
_parse_sysctl_machdep
()
archey/entries/cpu.py:160
↓ 4 callers
Method
get_distro_name
Simple wrapper to `distro` to return the current distribution _pretty_ name
archey/distributions.py:143
↓ 4 callers
Function
lazy_load_logo_module
Utility function returning a logo (as a Python module) lazily-loaded. It allows us to only load to RAM the distribution logo object that will
archey/logos/__init__.py:8
↓ 4 callers
Method
update_recursive
A method for recursively merging dictionaries as `dict.update()` is not able to do this. Original snippet taken from here : <https://
archey/utility.py:12
↓ 3 callers
Method
_blocks_to_human_readable
Returns human-readable format of `blocks` supplied in kibibytes (1024 bytes). Taken (and modified) from: <https://stackoverflow.com/a
archey/entries/disk.py:218
↓ 3 callers
Method
_fetch_android_device_model
Tries to retrieve `brand` and `model` device properties on Android platforms
archey/entries/model.py:187
↓ 3 callers
Method
_fetch_darwin_release
Simple method to fetch current release on Darwin systems
archey/entries/distro.py:39
↓ 3 callers
Method
_fetch_freebsd_model
Retrieve `vendor` and `version` properties on FreeBSD
archey/entries/model.py:198
↓ 3 callers
Method
_get_df_output_dict
Runs `df -P -k` and returns disks in a dict formatted as: { 'mount_point_1': { 'device_path': AAA,
archey/entries/disk.py:159
↓ 3 callers
Method
_get_specified_filesystems
Extracts the specified filesystems (if found) from `self._disk_dict`, returning a copy with those filesystems only, preserving specif
archey/entries/disk.py:128
↓ 3 callers
Method
_parse_pciconf_output
Based on `pciconf` output, return a list of video devices as long as their vendor
archey/entries/gpu.py:131
↓ 3 callers
Method
_replace_apfs_volumes_by_their_containers
(self)
archey/entries/disk.py:70
↓ 3 callers
Method
_run_vcgencmd
(self)
archey/entries/temperature.py:208
↓ 3 callers
Method
get_ansi_color
Simple wrapper to `distro` to return the distribution preferred ANSI color. See <https://www.freedesktop.org/software/systemd/man/os-
archey/distributions.py:148
↓ 3 callers
Method
get_identifiers
Simple getter returning current supported distributions identifiers
archey/distributions.py:66
↓ 3 callers
Method
output
Display running kernel and latest kernel if possible
archey/entries/kernel.py:61
↓ 3 callers
Method
output
(self, output)
archey/entries/custom.py:66
↓ 3 callers
Method
output
Adds the entry to `output` after pretty-formatting with colors palette
archey/entries/terminal.py:124
↓ 2 callers
Method
__str__
(self)
archey/colors.py:21
↓ 2 callers
Method
_clock_uptime
Tries to get uptime using the clocks from the Python `time` module
archey/entries/uptime.py:61
↓ 2 callers
Method
_fetch_android_release
Simple method to fetch current release on Android systems
archey/entries/distro.py:27
↓ 2 callers
Method
_fetch_latest_linux_release
()
archey/entries/kernel.py:49
↓ 2 callers
Method
_get_local_filesystems
Extracts local (i.e. /dev/xxx) filesystems for any *NIX from `self._disk_dict`, returning a copy with those filesystems only.
archey/entries/disk.py:31
↓ 2 callers
Method
_parse_sysctl_cpu_model
()
archey/entries/cpu.py:176
↓ 2 callers
Method
_parse_uptime_cmd
Tries to get uptime by parsing the `uptime` command
archey/entries/uptime.py:71
↓ 2 callers
Method
_platform_detection
()
archey/entries/desktop_environment.py:75
↓ 2 callers
Method
_poll_thermal_zones
(self)
archey/entries/temperature.py:139
↓ 2 callers
Method
_proc_file_uptime
Tries to get uptime using the `/proc/uptime` file
archey/entries/uptime.py:55
↓ 2 callers
Method
_process_detection
()
archey/entries/desktop_environment.py:146
↓ 2 callers
Method
_query_name_service_switch
()
archey/entries/shell.py:24
↓ 2 callers
Method
_read_proc_meminfo
Same behavior but by reading from `/proc/meminfo` directly
archey/entries/ram.py:72
↓ 2 callers
Method
_run_free_dash_m
Call `free -m` and parse its output to retrieve current used and total RAM
archey/entries/ram.py:58
↓ 2 callers
Method
_run_sysctl_and_vmstat
From `sysctl` and `vm_stat` calls, compute used and total system RAM values
archey/entries/ram.py:104
↓ 2 callers
Method
_run_sysctl_mem
Return used and total memory on FreeBSD
archey/entries/ram.py:134
↓ 2 callers
Method
assertTupleEmpty
Simple method to check that passed `obj` is an **empty** `tuple`
archey/test/__init__.py:28
↓ 2 callers
Method
json_serialization
JSON serialization of entries. Set `indent` to the number of wanted output indentation tabs (2-space long).
archey/api.py:23
↓ 2 callers
Method
meaning_of_life
Widely debated...
archey/test/entries/__init__.py:114
↓ 1 callers
Method
_convert_to_fahrenheit
Simple Celsius to Fahrenheit conversion method
archey/entries/temperature.py:225
↓ 1 callers
Method
_detect_terminal_emulator
Try to detect current terminal emulator based on various environment variables
archey/entries/terminal.py:85
↓ 1 callers
Method
_get_colors_palette
Build and return a 8-color palette, with Unicode characters if allowed
archey/entries/terminal.py:70
↓ 1 callers
Method
_get_uptime_delta
Returns a `datetime.timedelta` instance containing the machine uptime. Tries a variety of methods, increasing compatibility for a wid
archey/entries/uptime.py:29
↓ 1 callers
Method
_get_used_total_values
Returns a tuple containing used and total RAM values. Tries a variety of methods, increasing compatibility for a wide range of system
archey/entries/ram.py:36
↓ 1 callers
Method
_lan_ip_addresses_generator
Generator yielding local IP address according to passed address families
archey/entries/lan_ip.py:55
↓ 1 callers
Method
_output_json
Finally outputs entries data to JSON format. See `archey.api` for further documentation.
archey/output.py:101
↓ 1 callers
Method
_output_text
Finally render the output entries. It handles text centering additionally to value and colors replacing.
archey/output.py:108
↓ 1 callers
Method
_parse_system_profiler
()
archey/entries/cpu.py:124
↓ 1 callers
Method
_read_etc_hostname
()
archey/entries/hostname.py:22
↓ 1 callers
Method
_run_dns_query
Simple wrapper to `dig` command to perform DNS queries
archey/entries/wan_ip.py:69
↓ 1 callers
Method
_run_http_request
Simple wrapper to `urllib` module to perform HTTP requests
archey/entries/wan_ip.py:92
↓ 1 callers
Method
_vendor_detection
Main distribution detection logic, relying on `distro`, handling _common_ cases
archey/distributions.py:123
↓ 1 callers
Method
add_entry
Append an entry to the list of entries to output
archey/output.py:79
↓ 1 callers
Function
args_parsing
Simple wrapper to `argparse`
archey/__main__.py:80
↓ 1 callers
Method
get_config_files_info
Return a copy of loaded files stat info data
archey/configuration.py:60
↓ 1 callers
Function
get_homebrew_cellar_path
Return Homebrew Cellar path (if available)
archey/entries/packages.py:12
↓ 1 callers
Method
increment
Adds `1` to the internal counter
archey/test/test_archey_singleton.py:14
↓ 1 callers
Function
main
Simple entry point
archey/__main__.py:128
↓ 1 callers
Method
my_name
Returns the entry name.
archey/test/entries/__init__.py:109
↓ 1 callers
Method
output
(self, output)
archey/entries/window_manager.py:98
↓ 1 callers
Function
take_screenshot
Simple function trying to take a screenshot using various famous back-end programs. When supported by a found and available back-end, **try t
archey/screenshot.py:14
Method
__call__
(cls, *args, **kwargs)
archey/singleton.py:18
Method
__format__
(self, _)
archey/colors.py:84
Method
__init__
(self, entries: Sequence[Entry])
archey/api.py:20
Method
__init__
(self)
archey/environment.py:28
Method
__init__
(self, bright: int, value: int)
archey/colors.py:101
Method
__init__
(self, config_path=None)
archey/configuration.py:38
Method
__init__
(self, **kwargs)
archey/output.py:29
Method
__init__
(self, name: Optional[str] = None, value=None, options: Optional[dict] = None)
archey/entry.py:25
Method
__init__
(self)
archey/processes.py:13
Method
__init__
(self)
archey/test/test_archey_singleton.py:10
next →
1–100 of 342, ranked by callers