scitex-os

star 0

[WHAT] Host-check helpers (`check_host`, `is_host`, `verify_host`) and a path-aware safe `mv(src, dst)`. [WHEN] Use at the top of host-specific scripts instead of `socket.gethostname() == 'X'` checks; use `mv` for cross-filesystem renames. [HOW] `import scitex_os; scitex_os.check_host("bm198")` (raises) or `scitex_os.is_host("bm198")` (bool); `scitex_os.mv(src, dst)` (atomic same-fs, copy+unlink across devices).

ywatanabe1989 By ywatanabe1989 schedule Updated 5/17/2026

name: scitex-os description: | [WHAT] Host-check helpers (check_host, is_host, verify_host) and a path-aware safe mv(src, dst). [WHEN] Use at the top of host-specific scripts instead of socket.gethostname() == 'X' checks; use mv for cross-filesystem renames. [HOW] import scitex_os; scitex_os.check_host("bm198") (bool) or scitex_os.is_host("bm198") (bool); scitex_os.verify_host("bm198") (sys.exit(1) on mismatch); scitex_os.mv(src, dst) (atomic same-fs, copy+unlink across devices). primary_interface: python interfaces: python: 2 cli: 0 mcp: 0 skills: 2 hook: 0 http: 0 canonical-location: scitex-os/src/scitex_os/_skills/scitex-os/SKILL.md tags: [scitex-os]

scitex-os

Host-check helpers + safe file move. check_host(name) returns bool; is_host(name) is the boolean alias; verify_host(...) calls sys.exit(1) on mismatch. mv(src, dst) is a path-aware safe rename (atomic when same filesystem, copy+unlink across devices). Drop-in replacement for socket.gethostname() == 'X' checks at the top of host-specific scripts.

Index

Install via CLI
npx skills add https://github.com/ywatanabe1989/scitex-os --skill scitex-os
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
ywatanabe1989
ywatanabe1989 Explore all skills →