Class Venv

  • All Implemented Interfaces:
    IPythonEnv, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:43.247Z")
    @Stability(Experimental)
    public class Venv
    extends Component
    implements IPythonEnv
    (experimental) Manages a virtual environment through the Python venv module.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Venv.Builder
      (experimental) A fluent builder for Venv.
      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
      • Nested classes/interfaces inherited from interface software.constructs.IConstruct

        software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Venv​(Project project)  
        Venv​(Project project, VenvOptions options)  
      protected Venv​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)  
      protected Venv​(software.amazon.jsii.JsiiObjectRef objRef)  
    • Constructor Detail

      • Venv

        protected Venv​(software.amazon.jsii.JsiiObjectRef objRef)
      • Venv

        protected Venv​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • Venv

        @Stability(Experimental)
        public Venv​(@NotNull
                    Project project,
                    @Nullable
                    VenvOptions options)
        Parameters:
        project - This parameter is required.
        options -
      • Venv

        @Stability(Experimental)
        public Venv​(@NotNull
                    Project project)
        Parameters:
        project - This parameter is required.
    • Method Detail

      • setupEnvironment

        @Stability(Experimental)
        public void setupEnvironment()
        (experimental) Initializes the virtual environment if it doesn't exist (called during post-synthesis).
        Specified by:
        setupEnvironment in interface IPythonEnv