pylightxl icon indicating copy to clipboard operation
pylightxl copied to clipboard

Reading CSVs from a file object

Open tbc399 opened this issue 2 years ago • 2 comments

Pylightxl Version: 1.59 Python Version: 3.10.0

Summary of Bug/Feature: I'm scouting out libraries to use for parsing both csv and xlsx files, and I came across pylightxl. I like it since it can do both, and it's obviously lightweight. I'm wondering if there's a particular reason readcsv() is not able to read from a file object. If it's strategic, no worries. If it's just a matter of "not there yet", I'd be happy to submit a PR if you're okay with outside contributions.

Also, nice work!

tbc399 avatar May 29 '22 23:05 tbc399

Hi @tbc399 thank you for considering using pylightxl for your project! You hit it on the head, it's simply just not there yet since it has not been requested until now. I 100% welcome contributions if you want to take a crack at it!

PydPiper avatar May 31 '22 13:05 PydPiper

Great. I'll do some poking and prodding to figure out what needs to be done to get this in. Thanks!

tbc399 avatar May 31 '22 22:05 tbc399

Hey @tbc399 I've added stringIO support to readxl() function. It will be part of v1.61 release later today

PydPiper avatar Jan 01 '23 22:01 PydPiper