Documentation Index
Fetch the complete documentation index at: https://nono.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
SupportInfo provides details about sandbox support on the current platform. It’s returned by the support_info() function.
Properties
is_supported
@property
is_supported: bool
True if sandboxing is available on this platform.
from nono_py import support_info
info = support_info()
if info.is_supported:
print("Sandbox available")
else:
print("Sandbox not available")
Platform identifier string.
| Value | Description |
|---|
"linux" | Linux with Landlock |
"macos" | macOS with Seatbelt |
"unsupported" | Platform not supported |
info = support_info()
print(info.platform) # "macos"
details
Human-readable description of the support status.
info = support_info()
print(info.details)
# "Seatbelt sandbox available"
# or "Landlock ABI v5 available"
# or "Landlock not available (kernel too old)"
String Representation
info = support_info()
print(repr(info)) # "SupportInfo(supported=True, platform='macos')"
from nono_py import support_info, is_supported
def check_platform():
info = support_info()
print(f"Platform: {info.platform}")
print(f"Supported: {info.is_supported}")
print(f"Details: {info.details}")
if not info.is_supported:
if info.platform == "linux":
print("\nLinux detected but Landlock not available.")
print("Ensure your kernel is 5.13+ and Landlock is enabled.")
elif info.platform == "unsupported":
print("\nThis platform is not supported.")
print("nono requires Linux or macOS.")
return info.is_supported
if not check_platform():
exit(1)