API¶ Defining requirements 1 2 3 4 5import scriptenv scriptenv.requires('rsa==4.8') import rsa assert rsa.__version__ == "4.8" use requires as context manager 1 2 3 4 5 6 7 8 9import scriptenv with scriptenv.requires("rsa==4.8"): import rsa assert rsa.__version__ == "4.8" with scriptenv.requires("rsa==4.7"): import rsa assert rsa.__version__ == "4.7"