Giter VIP home page Giter VIP logo

excelexample's Introduction

Convert Excel Files to CSV with OIC + Oracle Functions

This repository hosts the code required to setup an Oracle Function that will convert Excel files from xlsx and xls format to CSV. It also stores the artefacts required to create an Oracle Integration (OIC) flow that will call this function to perform Excel to CSV file conversions.

This code is accompanied by a blog article, available here:

Demo video available here:

https://objectstorage.ap-sydney-1.oraclecloud.com/p/VvDdVVBcP4qV4OWBJeJR8OCmIjX6phMIhfrWhrngJ2nltEH-CnADBbkEgyZ7Zwcn/n/sdc90vkxb5rj/b/stv_bucket-20211005-2230/o/Excel2CSV.mp4

Function Artefacts

  • requirements.txt specifies the dependencies of the Excel2CSV conversion function
  • func.yaml contains metadata about the function and declares associated properties
  • func.py contains the Python function that converts a single Excel file to a CSV

Credit for the above code goes to Steven Lawton

sample file to call the function:

to invoke the above function store the sample request in your function folder within Cloud Shell and run:

fn invoke stv_FN_Demo convertexcelfiles < request.json

Limitation:

  • Multiple worksheets are not supported. Function will only read the first worksheet

Oracle Integration (OIC) Artefacts

Sample files:

Feel free to replace these with anything you like but update the stage read schema definition in the integration:

Note: This code is only intended to be used for demonstration purposes to showcase the capabilities of OIC and related OCI services

excelexample's People

Contributors

karsten-schulz avatar

Watchers

James Cloos 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.