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.3.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file DataExtruder-0.1.3.tar.gz.

File metadata

  • Download URL: DataExtruder-0.1.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for DataExtruder-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9dc8605a075a099a60a30c619d3233de418006f7d61c516508f10665cc06a109
MD5 6b1b9e3f62c5f778095eb7706fefc301
BLAKE2b-256 531005dc956723d87a8a16f08fbb2db9c8753894562c086367334447009fa630

See more details on using hashes here.

Supported by

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