Coder Social home page Coder Social logo

ysimenya / pylightxl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pydpiper/pylightxl

0.0 0.0 0.0 17.14 MB

A light weight, zero dependency, minimal functionality excel read/writer python library

Home Page: https://pylightxl.readthedocs.io

License: MIT License

Python 99.95% Batchfile 0.05%

pylightxl's Introduction

pylightxl - A Light Weight Excel Reader/Writer

Documentation

A light weight, zero dependency (only standard libs used), to the point (no bells and whistles) Microsoft Excel reader/writer python 2.7.18 - 3+ library.

Please help us spread the word about pylightxl to the community by voting for pylightxl to be added to python-awesome list. Follow the LINK and upvote the pull request in the top right corner

The project is associated with Tidelift. Please consider supporting open-source contributions by using the packages with Tidelift's subscription today!

Project featured on PythonBytes Podcast Episode #165


High-Level Feature Summary

  • Reader

    • supports Microsoft Excel 2004+ files (.xlsx, .xlsm) and .csv files
    • read files via str path, pathlib path or file objects
    • read all or selective sheets
    • read type converted cell value (string, int, float), formula, comments, and named ranges
  • Database

    • call cell value by row/col ID, excel address, or range
    • call an entire row/col or a semi-structured table based on user-defined headers
  • Writer

    • write to new excel file (write excel files without having excel on your machine)
    • write to existing excel files (see limitations below)

Limitations

Although every effort was made to support a variety of users, the following limitations should be read carefully:

  • Does not support .xls files (Microsoft Excel 2003 and older files)

  • Writer does not support anything other than cell data (no graphs, images, macros, formatting)

  • Does not support worksheet cell data more than 536,870,912 cells (32-bit list limitation), please use 64-bit if more data storage is required.


Why pylightxl over pandas/openpyxl/xlrd

  • Zero non-standard library dependencies!

    • No compatibility/version control issues.
  • Python2.7.18 to Python3+ support for life!

    • Don't worry about which python version you are using, pylightxl will support it for life
  • Light-weight single source code file

    • Want your project remain truly dependent-less? Copy the single source file into your project without any extra dependency issues or setup.
    • Do you struggle with other libraries weighing your projects down due to their very large size? Pylightxl's single source file size and zero dependency will not weigh your project down (preferable for django apps)
    • Do you struggle with pyinstaller or other exe wrappers failing to build or building to very large packages? Pylightxl will not cause any build errors and will not add to your build size since it has zero dependencies and a small lib size.
    • Do you struggle with download restrictions at your company? Copy the entire pylightxl source from 1 single file and use it in your project.
  • 100% test-driven development for highest reliability/maintainability that aims for 100% coverage on all supported versions

    • Pylightxl aims to test all of its features, however unforeseen edge cases can occur when receiving excel files created by non-microsoft excel. We actively monitor issues to add support for these edge cases should they arise.
  • API aimed to be user friendly and intuitive and well documented. Structure: database > worksheet > indexing

    • db.ws('Sheet1').index(row=1,col=2) or db.ws('Sheet1').address(address='B1')
    • db.ws('Sheet1').row(1) or db.ws('Sheet1').col(1)

Setup

pylightxl is officially published on pypi.org, however one of the key features of pylightxl is that it is packed light in case the user has pip and/or download restrictions, see docs - installation

pip install pylightxl


pypi version 1.61

  • bug-fix: occasionally a <definedName> tag would case pylightxl to add duplicate of the same worksheet, see issue #72
  • update: updated date handling (code cleanup)
  • added feature: added python2 compatible typing to the library
  • added feature: added io.StringIO support to readcsv

See full history log of revisions: Here


Contact/Questions/Suggestions

If you have any questions or feedback, we would love to hear from you - send us a post directly on GitHub.

We try to keep an active lookout for users trying to solve Microsoft Excel related problems with python on Stack Overflow. Please help us build on the great community that python already is by helping others get up to speed with pylightxl!

From everyone in the pylightxl family, thank you for visiting!

logo

pylightxl's People

Contributors

pydpiper avatar hellomorrismoss avatar alwinw avatar danchianucci avatar chessmith avatar sbardian avatar albinkc avatar alexjj avatar g-as avatar jfcorbett avatar ammgws avatar boidolr avatar yohanboniface avatar cgtobi avatar kishkin avatar kxrob avatar mportesdev 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.