venv.EnvBuilder.create()

create(env_dir) This method takes as required argument the path (absolute or relative to the current directory) of the target directory which is to contain the virtual environment. The create method will either create the environment in the specified directory, or raise an appropriate exception. The create method of the EnvBuilder class illustrates the hooks available for subclass customization: def create(self, env_dir): """ Create a virtualized Python environment in a directory.

venv.EnvBuilder

class venv.EnvBuilder(system_site_packages=False, clear=False, symlinks=False, upgrade=False, with_pip=False) The EnvBuilder class accepts the following keyword arguments on instantiation: system_site_packages – a Boolean value indicating that the system Python site-packages should be available to the environment (defaults to False). clear – a Boolean value which, if true, will delete the contents of any existing target directory, before creating the environment. symlinks – a Boolean valu

venv.create()

venv.create(env_dir, system_site_packages=False, clear=False, symlinks=False, with_pip=False) Create an EnvBuilder with the given keyword arguments, and call its create() method with the env_dir argument. Changed in version 3.4: Added the with_pip parameter

vars()

vars([object]) Return the __dict__ attribute for a module, class, instance, or any other object with a __dict__ attribute. Objects such as modules and instances have an updateable __dict__ attribute; however, other objects may have write restrictions on their __dict__ attributes (for example, classes use a types.MappingProxyType to prevent direct dictionary updates). Without an argument, vars() acts like locals(). Note, the locals dictionary is only useful for reads since updates to the loca

ValueError

exception ValueError Raised when a built-in operation or function receives an argument that has the right type but an inappropriate value, and the situation is not described by a more precise exception such as IndexError.

uuid.uuid5()

uuid.uuid5(namespace, name) Generate a UUID based on the SHA-1 hash of a namespace identifier (which is a UUID) and a name (which is a string).

uuid.uuid4()

uuid.uuid4() Generate a random UUID.

uuid.uuid3()

uuid.uuid3(namespace, name) Generate a UUID based on the MD5 hash of a namespace identifier (which is a UUID) and a name (which is a string).

uuid.uuid1()

uuid.uuid1(node=None, clock_seq=None) Generate a UUID from a host ID, sequence number, and the current time. If node is not given, getnode() is used to obtain the hardware address. If clock_seq is given, it is used as the sequence number; otherwise a random 14-bit sequence number is chosen.

uuid.UUID.version

UUID.version The UUID version number (1 through 5, meaningful only when the variant is RFC_4122).