Venv¶
Qualified name: tin.apps.venvs.models.Venv
- class Venv(*args, **kwargs)[source]¶
Bases:
Model
A Python Virtual Environment.
- Parameters:
id (BigAutoField) – Primary key: ID
name (CharField) – Name
fully_created (BooleanField) – Fully created
installing_packages (BooleanField) – Installing packages
package_installation_output (CharField) – Package installation output
Reverse relationships:
- Parameters:
assignments (Reverse
ForeignKey
fromAssignment
) – All assignments of this venv (related name ofvenv
)
Methods
get_absolute_url
Returns information about the virtual environment.
Install packages
List all packages in a virtual environment.
Attributes
OUTPUT_MAX_LENGTH
assignments
Type: Reverse
ForeignKey
fromAssignment
fully_created
Type:
BooleanField
id
Type:
BigAutoField
installing_packages
Type:
BooleanField
name
Type:
CharField
objects
package_installation_output
Type:
CharField
path
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned