Git Product home page Git Product logo

xlsx-to-json's Introduction

xlsx-to-json

Using Python, convert an Excel (xlsx or xls) document to JSON

dependencies

  • pylightxl
  • xlrd

you can run pip3 install pylightxl xlrd in your terminal/command window if you don't have these dependencies installed

Usage

  • Run the command python3 xlstojson.py in your terminal/command window
  • Do what the prompt says (which is enter the path to the file)

A .json file matching the name of your xlsx document will be generated.

Caveats and Whatnots

I wrote this six years ago; it was the first thing I'd ever written in Python. This code was written about as well as a non-Python programmer programming Python could write it.

I have made attempts to improve it, but I may still not know what I'm doing

xlsx-to-json's People

Contributors

khaleeljageer avatar paceaux avatar

Stargazers

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

xlsx-to-json's Issues

Does not support XLSX files

Despite the title of this project, it does not seem to support XLSX files. At least, that's what the program told me when I ran it.

Not working

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\xlsxToJson.py", line 69, in
main()
File "C:\Users\Administrator\Desktop\xlsxToJson.py", line 59, in main
workbook = xlrd.open_workbook(filename)
File "C:\Python\lib\site-packages\xlrd_init_.py", line 170, in open_workbook
raise XLRDError(FILE_FORMAT_DESCRIPTIONS[file_format]+'; not supported')
xlrd.biffh.XLRDError: Excel xlsx file; not supported

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.