{"library":"jsii","code":"import os\nfrom some_jsii_generated_lib import HelloJsii\n\n# NOTE: In a real scenario, 'some_jsii_generated_lib' would be a library\n# generated by jsii (e.g., AWS CDK, or your own jsii module) which has\n# 'jsii' as a dependency. The 'HelloJsii' class would be defined in TypeScript.\n\n# Example of using a class from a jsii-generated Python library\ntry:\n    # Assuming HelloJsii class and say_hello method are available\n    # This code is illustrative; replace with actual generated lib usage.\n    hello_instance = HelloJsii()\n    message = hello_instance.say_hello(\"World\")\n    print(message)\nexcept ImportError:\n    print(\"To run this, you need a jsii-generated library installed.\")\n    print(\"For example, 'pip install aws-cdk.core' and then use CDK classes.\")\nexcept Exception as e:\n    print(f\"An error occurred: {e}\")","lang":"python","description":"The `jsii` library itself provides the runtime for generated modules. Python developers primarily interact with packages that have been *generated* by jsii (e.g., AWS CDK constructs). These generated packages depend on `jsii`. The example above illustrates how you would typically use a class from such a generated library.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}