import os
from unkey_py import Unkey
s = Unkey(
bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""),
)
res = s.liveness.check()
if res.object is not None:
pass
The same SDK client can also be used to make asychronous requests by importing asyncio.
import asyncio
import os
from unkey_py import Unkey
async def main():
s = Unkey(
bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""),
)
res = await s.liveness.check_async()
if res.object is not None:
pass
asyncio.run(main())