Skip to main content

A fast way to convert .xls and .xlsx to csv with vbs

Project description

Made by William Norland, 2023

Fast way to convert large .xls/.xlsx files to CSV by saving them via a vbs running via windows script host.

Dependencies

  • Excel (Only tested on excel 2016)

  • Windows operating system (Only tested on Windows 10).

  • Only tested on Python 3.11, should probably work on any python that has os and subprocess.

  • Windows script host (Exists on pretty much every windows ever).

Usage

Install

pip install FastXlsToCsv

Import

from FastXlToCsv import XlsConverter

Use

inputFile: str = r”c:\Users\someone\Desktop\ExcelFiles\excelFileThatWantsTobeCsv.xlsx”
inputDir: str = r”c:Users\someone\Desktop\ExcelFiles”
outputDir: str = r”c:\Users\someone\Desktop\FolderForExportedCsvs”
XlsConverter.convertXlFileToCsv(inputFile, output)
XlsConverter.convertXlDir(inputDir, output)

License

Relased under the MIT License, check FastXlsToCsv/LICENSE for more information.

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

FastXlsToCsv-1.2.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

FastXlsToCsv-1.2.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file FastXlsToCsv-1.2.1.tar.gz.

File metadata

  • Download URL: FastXlsToCsv-1.2.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for FastXlsToCsv-1.2.1.tar.gz
Algorithm Hash digest
SHA256 df839a51ecef12c13ddbaad013c7ab3dec0bc101f1d6861be6bebf3b7bca4f01
MD5 cf90ced3204126f9fa71133a7caf73f7
BLAKE2b-256 21047aaf66a1baf5ff7efcfea7b24416d1c8905589e07a7575fb30b2e197b9d7

See more details on using hashes here.

File details

Details for the file FastXlsToCsv-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: FastXlsToCsv-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for FastXlsToCsv-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ed82532cc242728eb3e1fcc429c42888a27188cbdc091e426910148c0374c10
MD5 28ee8daeb55781e1b0119e1d21a4ab60
BLAKE2b-256 96d16fd37239e607a71159d05913be125cdce80f9ff331f1c68c4250351a22b2

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