Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xlsfile-shaw1236-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xlsfile_shaw1236-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for xlsfile-shaw1236-0.0.2.tar.gz
Algorithm Hash digest
SHA256 78e7d0b260c37f17e60e5d964bfa971abd2519cb5862da6cafd6dc92109695b8
MD5 9506ef9c42bdef81ee13048801679afb
BLAKE2b-256 d7236a588b1252993fd9e61e98add90396569eb7e7e4ccffad6a717849303281

See more details on using hashes here.

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

Hashes for xlsfile_shaw1236-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39cc40a11bc97e8d97e5bfe8fb4052991b4b5a2958cdb184aaa98bd241e0f348
MD5 88207eea5d7a49137752f5d36db21036
BLAKE2b-256 3ba9b09b45e917e1e29642dbeb702e022f411ec9e47aa1d4629effe0e33c05dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page