Skip to main content

A library for automating existing spreadsheets.

Project description

automate_excel: automate Microsoft Excel spreadsheets with python

automate_excel is a python library providing an interface with Microsoft Excel for the purpose of automating tasks in existing workbooks. It replaces the functionality of VBA with clean, pythonic code (and helpful exception handling!).

Unlike other existing python packages that deal with Microsoft Excel, automate_excel takes the approach of directly controlling the application via windows COM functionality rather than focusing on pulling functionality out of Excel and into python. Because of this automate_excel is well-suited for automating existing Excel tasks and processes, especially in environments where the Excel workbook can not be replaced entirely.

The automate_excel package provides the Workbook class for interfacing with documents in a Microsoft Excel application. This allows users to write programs in python that automate tasks in Microsoft Excel, without Excel Macros and VBA code.

For example:

import automate_excel as xl

with xl.Workbook('myworkbook.xlsx') as wb:
    wb['A1'] = 'hello world'
    wb.save()

Installation

automate_excel can be installed from PyPI:

pip install automate_excel

The following packages are required dependencies:

Unfortunately, due to dependency on the pywin32 library for controlling Excel, automate_excel will only work on Windows and should not be installed on other platforms.

License

GNU General Public License v3.0

Contributions

The source code is currently hosted on GitHub at https://github.com/chrispcharlton/automate_excel

This library is currently under active development, with a limited set of core features that should allow for most common tasks in Excel to be automated. All contributions in any form (raising issues, emails, ideas, bug reports, fixes, improvements, etc) are welcome and would be most helpful.

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

automate_excel-0.0.221.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

automate_excel-0.0.221-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

Details for the file automate_excel-0.0.221.tar.gz.

File metadata

  • Download URL: automate_excel-0.0.221.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for automate_excel-0.0.221.tar.gz
Algorithm Hash digest
SHA256 fd308b07c02f4c080f63df397e355fad46ee0e9ad1be902090ab8fda5c6553c5
MD5 e13d51fcceb4ea0f1cb29a46d7394d65
BLAKE2b-256 1ffa953b8b1ead2de67c5a7fb9bf442463d2852270225b7f8c533bb376160ca0

See more details on using hashes here.

File details

Details for the file automate_excel-0.0.221-py3-none-any.whl.

File metadata

  • Download URL: automate_excel-0.0.221-py3-none-any.whl
  • Upload date:
  • Size: 32.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for automate_excel-0.0.221-py3-none-any.whl
Algorithm Hash digest
SHA256 f168578d0b1cd65978c86d76a5766861c786a0d081f87deaa346bdad39587948
MD5 8c0bb3a5180ad776dc6d0c22efb09f19
BLAKE2b-256 106ab44b06af67fcfed0e37fa881598732a027680a3fdd4fdcf7e13688a86a41

See more details on using hashes here.

Supported by

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