Git Product home page Git Product logo

excel-2-jinja2's Introduction

render-df

I've been searching for the shortest repo I can put up that does a genuinely useful task. This one, like all the others, is cheating.

My obsession with the worlds most popular interpreter (excel if this isn't clear) continues. This takes a spreadsheet and a jinja2 template and pumps each page into the template. The template just refers to each of the data frames.

As the python isn't actually doing anything in most circumstances why not just get rid of it and use a command line tool? This opens up the ability to compile these tools into a makefile.

I'm cheating here because the entire code base is just stitched together with 4 other libraries.

In general I like to use pandas DataFrames to render Jinja2 templatess. All info is typically held in the template. This tool takes a multipage spreadsheet and shoves it into a template.

Inputs: + Spreadsheet. Each page is a named variable. This is pumped into the template as a variable using kwargs. It is used by name by the template. + Template: Template worries about how to turn the data into something + Output name

Process: + openpyexcel loads all pages + Pandas dataframe from page + make dictionary of pages + render template

Uses: Primarily make files. Use as a stand alone command line tool. The raison d'être is to script the generation of kicad schematics in a way I can think about.

excel-2-jinja2's People

Contributors

snhobbs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.