weirdnet-code-spaces 0.1.0

Weirdnet code spaces: math, Polars, Rust and typed Python sources compiled into plugins against the weirdnet-plugin SDK, content-addressed builds, ABI-checked loading, trust hashes and space line-ups, under an application profile.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Test case 2: Async main function with __name__ == "__main__" block
import asyncio

async def main():
    print("Async main function")
    await asyncio.sleep(0.1)
    return "async_result"

def sync_helper():
    print("Sync helper function")

if __name__ == "__main__":
    result = asyncio.run(main())  # Call to user's async main
    sync_helper()
    print(f"Async result: {result}")