Git Product home page Git Product logo

json-excel's Introduction

✨ json-excel ✨

Simple python scripts to convert :

  • JSON to Excel ✅
  • JSON to CSV ✅
  • Multiple CSV to single Excel ✅ 😌

How to Use ❓

Convert on the Go

  1. Clone the modules and navigate

  2. Run python3 main.py

    1. select the requied option
    2. enter the file name as absolute path if it exist on other directories (for windows users) for eg: if the file is loacated at C:\Documents\collection.json And You want the generated output file at C:\Documents\exported\output.xlsx
        C:\Users\Mage1k99\json-excel>python3 main.py
        1. JSON to Excel
        2. JSON to CSV
        3. Multiple CSV files to Excel
        your option (from 1 to 3) : 1
        Path of JSON file : C:\Users\Documents\collection.json
        Sheetname (optional) : mysheet
        Path of Output Excel :C:\Users\Documents\output.xlsx 
    

    (for linux and mac users) eg: if the input file is located at ~/json/inputcollection.json And the output file (xlsx) to be generated at ~/excel/outputexcel.xlsx

        mage:~/json-excel$ python3 main.py
        1. JSON to Excel
        2. JSON to CSV
        3. Multiple CSV files to Excel
        your option (from 1 to 3) : 1
        Path of JSON file : ~/json/outputexcel.xlsx
        Sheetname (optional) : mysheet
        Path of Output Excel : ~/excel/outputexcel.xlsx 
    

❗ check to be done before conversion ❗

  • use python3, (as python2.7 will reach its end of life
  • Always add extension to the filepaths while using
  • before entering output path make sure that the directory exist!
  • Give the correct file and path name

using as seprate modules

Just use the conversion module in your own projects by importing


screenshots

screenshot of running main.py with files in absolute path

screenshot of running main.py

screenshot of genrated output from main.py


Requirements

  • pandas
  • openpyxl
  • setuptools

pip3 install -r requirements.txt

Based on python library pandas


Contributions are welcomed 😄

Feel free to

  • Fork, modify to add feature and make pull request 👏
  • report bugs, request feature through issues 👏
Thank you for using and spending your time with this project 💖

json-excel's People

Contributors

mage1k99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.