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.

Files for DataExtruder, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size DataExtruder-0.1.3.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page