Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lgas
25 days ago
|
parent
|
context
|
favorite
| on:
Using Python for Scripting
I don't have much need of this personally, but I was playing around with an example from earlier in the thread and ended up with this:
#!/usr/bin/env -S uv run --with sh --script from sh import ifconfig print(ifconfig("en0"))
which is a pretty nice experience assuming you already have `uv` in the target environment.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: