Skip to main content

Render data from diffrent data-sources and jinaj2 template

Project description

About

The idea behind this project is, that you often have some centralizes systems containing your data. From these you want to generate several kind of content. This content could be html, markdown, terraform code or a lot more. Exaclty this is done by the utility. It takes a data-source and transforms it into content.
The transformation/rendering is done by cookiecutter which offers jinja2 templating for more complex projects. The data can be loaded from several source.

Currently supported:

In planning:

  • Google Sheets

Please note: python-sdk is included directly, as no pip package is available during creation. Full credtis are going to the creator for this part!

Usage

Create a json file with the required information included. Call the CLI as follow: app.py --template git+https://foo.bar

Installation

Run pip install DataExtruder

Paramters

Paramter Default Description
--config config.josn The config file used
--template NONE The template folder or url used
--target target The output directory
--log-level INFO The log level

Modules

Directus

Example

{   
    "source_type": "directus",
    "url": "http://localhost:8080",
    "username": "email@example.com",
    "password": "yourpasswordHere",
    "model": [
        {
            "name": "users",
            "collection": "employee",
            "fields": [
                "*"
            ]
        }
}

Some variables can be overwritten by Environment variables.
username - DATAEXTRUDER_DIRECTUS_USERNAME
password - DATAEXTRUDER_DIRECTUS_PASSWORD

Project details


Download files

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

Source Distribution

DataExtruder-0.1.2.tar.gz (7.1 kB view hashes)

Uploaded Source

Supported by

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