Skip to content

Added IP info to sys_info.py#165

Merged
rm-hull merged 10 commits into
rm-hull:mainfrom
brenordv:feature-sys-info-print-ip
Nov 15, 2025
Merged

Added IP info to sys_info.py#165
rm-hull merged 10 commits into
rm-hull:mainfrom
brenordv:feature-sys-info-print-ip

Conversation

@brenordv
Copy link
Copy Markdown
Contributor

@brenordv brenordv commented Dec 3, 2023

Added IP info to the sys_info.py example. Also included a caching (default: 4 hours) since IP address is not something that changes frequently.

If something goes wrong, the line will be blank.

The rationale for this change is that the IP being displayed is super useful information to have at hand and goes well with all the other stats printed in this example.

Updated: Forgot to add psutil as a dependency. Sorry about that.

brenordv and others added 7 commits December 3, 2023 02:06
Added IP info to the sys_info.py example. Also included a caching (default: 4 hours) since IP address is not something that changes frequently.
Changed the strategy for failure cases. Now returning an empty string and (hopefully) ensuring nothing else will go wrong (like failing to display None).
@rm-hull rm-hull merged commit 0e7e3da into rm-hull:main Nov 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants