{% if packages %}
{% set dont_display = ['classifiers', 'downloads', 'keywords', 'project_urls', 'requires_dist', 'bugtrack_url', 'description_content_type', 'docs_url', 'download_url', 'yanked', 'yanked_reason', 'platform'] %} {% set max_value_len = 255 %} {% for key in packages[0].keys() %} {% if key not in dont_display %} {% endif %} {% endfor %} {% for package in packages %} {% for name, value in package.items() %} {% if name not in dont_display %} {% endif %} {% endfor %} {% endfor %}
{{ key.replace('_', ' ') }}
{% if value and value|length > max_value_len %} {{ value[:max_value_len] }}... {% else %} {% if value.startswith('http') %} {{ value }} {% else %} {{ value }} {% endif %} {% endif %}
{% endif %}