{% extends "base.html" %} {% block title %}Packages - {{ environment.name }} - PyRunner{% endblock %} {% block content %}
{% include "cpanel/_sidebar.html" %}

Package Management

{{ environment.name }} · {{ package_count }} packages installed

{% if packages %} {% for package in packages %} {% endfor %}
Package Version Actions
{{ package.name }} {{ package.version }}
{% csrf_token %}
{% else %}

{% if search %} No packages found matching "{{ search }}" {% else %} No packages installed yet {% endif %}

{% endif %}

Install Package

{% csrf_token %}
{{ install_form.package_spec }}

Examples: requests, django>=4.0, numpy==1.24.0

Bulk Install

{% csrf_token %}
{{ bulk_form.requirements }}
{{ bulk_form.requirements_file }}
{% if operations %}

Recent Operations

{% for op in operations %}
{{ op.get_operation_display }} {% if op.status == "pending" %} Pending {% elif op.status == "running" %} Running {% elif op.status == "success" %} Success {% elif op.status == "failed" %} Failed {% endif %}

{% if op.operation == "bulk_install" %} {{ op.package_spec|linebreaksbr|truncatewords:10 }} {% else %} {{ op.package_spec }} {% endif %}

{% if op.error %}

{{ op.error|truncatechars:50 }}

{% endif %}

{{ op.created_at|timesince }} ago {% if op.duration %} · {{ op.duration_display }} {% endif %}

{% endfor %}
{% endif %}
{% if has_running_operation %} {% endif %} {% endblock %}