Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magmax/taggeator
transform tagged lists into readable files.
https://github.com/magmax/taggeator
Last synced: 13 days ago
JSON representation
transform tagged lists into readable files.
- Host: GitHub
- URL: https://github.com/magmax/taggeator
- Owner: magmax
- Created: 2018-08-24T02:52:04.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T03:07:51.000Z (about 6 years ago)
- Last Synced: 2024-10-11T14:34:50.346Z (about 1 month ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Description
===========From a file with a tag description format like:
.. code::
apps:
- name: fubar
url: http://example.org/fubar
description: a fubar app
tags:
- foo1
- bar1
- name: foo
url: http://example.org/foo
description: a foo app
tags:
- foo1
- foo2
- name: bar
url: http://example.org/bar
description: a bar app
tags:
- bar1
- bar2Generates a new file after applying a template with the inverted file, that is,
a dict of tags with each app as a dict.As an example, with the template:
.. code::
Simple output for tageator
{% for item in categories | dictsort %}
- {{ item[0] }}
{%- for app in item[1] | sort(attribute='name') %}
- {{ app.name }}: {{ app.description }} ({{ app.url }})
{%- endfor %}
{% endfor %}The previous input file will generate:
.. code::
Simple output for tageator
- bar1
- bar: a bar app (http://example.org/bar)
- fubar: a fubar app (http://example.org/fubar)
- bar2
- bar: a bar app (http://example.org/bar)
- foo1
- foo: a foo app (http://example.org/foo)
- fubar: a fubar app (http://example.org/fubar)
- foo2
- foo: a foo app (http://example.org/foo)