Skip to main content

Transform tagged lists into readable files.

Project description

From a file with a tag description format like:

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
    - bar2

Generates 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:

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:

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

taggeator-0.0.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file taggeator-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: taggeator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for taggeator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a327fd49f286f67553f1fddd9fbfc6346934e2b58180e5ef928d009a3ff141f9
MD5 0373146c2c29825595fb518ae2c304ca
BLAKE2b-256 8842f3e7f52d9c6682dc1c5a35868c0f3c5631ae2216b40a8171238e22957477

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page