Utility for read/write of Excel or csv files
Project description
-- Prerequisite modules -pandas@0.25.3 -openpyxl3.0.1 -xlrd@1.2.0
-- Install xlsfile pip install xlsfile --user
-- How to use xlsfile?
from xlsfile import xlsfile
Csv file testing
print("Test csv file") contents = xlsfile.readcsv("test2.csv") xlsfile.writecsv("test3.csv", contents)
input = {} input["name"] = ["Test1", "Test2", "Test3"] input["email"] = ["test1@gmail.com", "test2@yahoo.com", "test3@gmail.com"] input["name"].append("Test4") input["email"].append("test@yahoo.com")
filename = "testfamily.xlsx"
Excel file test
print("\nExcel file test") xlsfile.write(filename, input) contents = xlsfile.read(filename) print(contents)
Excel to csv
print("\nExcel to csv") xlsfile.xls2csv(filename, filename.replace(".xlsx", ".csv"))
csv to Excel
print("\ncsv to Excel") xlsfile.csv2xls(filename.replace(".xlsx", ".csv"), "testfamily2.xlsx") contents = xlsfile.read("testfamily2.xlsx") print(contents)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xlsfile-shaw1236-0.0.2.tar.gz.
File metadata
- Download URL: xlsfile-shaw1236-0.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e7d0b260c37f17e60e5d964bfa971abd2519cb5862da6cafd6dc92109695b8
|
|
| MD5 |
9506ef9c42bdef81ee13048801679afb
|
|
| BLAKE2b-256 |
d7236a588b1252993fd9e61e98add90396569eb7e7e4ccffad6a717849303281
|
File details
Details for the file xlsfile_shaw1236-0.0.2-py3-none-any.whl.
File metadata
- Download URL: xlsfile_shaw1236-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39cc40a11bc97e8d97e5bfe8fb4052991b4b5a2958cdb184aaa98bd241e0f348
|
|
| MD5 |
88207eea5d7a49137752f5d36db21036
|
|
| BLAKE2b-256 |
3ba9b09b45e917e1e29642dbeb702e022f411ec9e47aa1d4629effe0e33c05dd
|