Coder Social home page Coder Social logo

xlsx's Introduction

xlsx-tools

build

export $(egrep -v ‘^#’ .env | xargs) && docker build --build-arg GO_IMPORT_TOKEN=${GITHUB_TOKEN} -t go-private-example .

modes

  • one2many - 1 csv for every xlsx sheet
  • one2one - 1 csv for all xlsx sheets

examples

$ xlsxcli -mode one2many -mapping mapping.csv input.xlsx

storage

key-value key - tupple of strings

access modes

  • key - value
  • key - table

Mapping file

ID,#,№,Numer,N
Name,name,username
Surname,SecondName,second

Makefile

.PHONY: run test clean

exec_root = $(shell pwd)
ts = $(shell date +%Y%m%d_%H%M%S)
short_ts = $(shell date +%Y%m%d)

XLSXCLI_IMAGE = mguzelevich/xlsxcli

prepare:
	echo "prepare"

run: input_file = input.xlsx
run: output_file = output.csv
run: mapping_file = mapping.csv
run: prepare
	docker run -it --rm \
      -v "${exec_root}":/project \
	  ${XLSXCLI_IMAGE} \
	    sh -c '/xlsx --mapping "/project/${mapping_file}" --mode=one2one "/project/${input_file}" > /project/${output_file}'

usage

$ make run

xlsx's People

Contributors

mguzelevich avatar

Watchers

 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.