{"id":230767,"date":"2024-08-21T14:31:26","date_gmt":"2024-08-21T06:31:26","guid":{"rendered":"https:\/\/magicalbits.net\/?p=230767"},"modified":"2024-08-21T14:31:26","modified_gmt":"2024-08-21T06:31:26","slug":"usr-bin-env-uv-run","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=230767","title":{"rendered":"#!\/usr\/bin\/env uv run"},"content":{"rendered":"<blockquote><p>now if you chmod 755 it you can run it on any machine with the uv binary installed like this: .\/app.py &#8211; and it will automatically create its own isolated environment and run itself with the correct installed dependencies and even the correctly installed Python version.<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/simonwillison.net\/2024\/Aug\/21\/usrbinenv-uv-run\/\">#!\/usr\/bin\/env uv run<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>now if you chmod 755 it you can run it on any machine with the uv binary installed like this: .\/app.py &#8211; and it will automatically create its own isolated environment and run itself with the correct installed dependencies and even the correctly installed Python version. Source: #!\/usr\/bin\/env uv run<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-230767","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230767"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230767\/revisions"}],"predecessor-version":[{"id":230768,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230767\/revisions\/230768"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}