GithubHelp home page GithubHelp logo

wzy1222 / ddl2excel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taha-firoz/ddl2excel

0.0 1.0 0.0 21 KB

This is a simple python script that converts DDL for Oracle SQL to excel headings to make creating datasets in excel faster

License: GNU General Public License v3.0

Python 100.00%

ddl2excel's Introduction

Oracle SQL DDL to Excel

This script converts any Oracle SQL DDL commands into Table headings and columns to allow for easy creation of Datasets

Getting Started

You'll need Python3 and OpenPyxl

Prerequisites

You can install OpenPyxl with pip like this

pip install openpyxl --user

Installing

To start of copy your ddl commands into a textfile.

python3 DDL2Excel [Filename.txt] [Outputfile.xlsx]

Replace [Filename.txt] with the included "test.txt" file and [Outputfile.xlsx] with "Outputfile.xlsx" Like so

python3 DDL2Excel text.txt Outputfile.xlsx

If the code runs successfully you should have an Outputfile.xlsx in your directory

Changing Colours of filled blocks

If you wish to change the colour of the filled blocks you can change the values of table_heading and table_columns

table_heading = PatternFill(start_color='FF6AA84F',
                        end_color='FF6AA84F',
                        fill_type='solid')

Add the hexcode of the colour you wish to choose into the start_color and end_color parameters. The first two letters as is and append your 6 digit hexcode to them e.g. Dark Green has a hex code "6AA84F" so we'll set the start_color to

start_color = 'FF' + '6AA84F',
end_color = 'FF' + '6AA84F'

Built With

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GPL V3 License - see the LICENSE.md file for details

ddl2excel's People

Contributors

taha-firoz avatar ziadcoolio avatar

Watchers

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