Skip to main content

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.

Metadata

Release files for automate-excel 0.0.221

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for automate-excel 0.0.221
File Size Uploaded
automate_excel-0.0.221.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for automate-excel 0.0.221
File Interpreter ABI Platform
automate_excel-0.0.221-py3-none-any.whl Python 3 none any Details

Total release size: 43.6 kB

Release files / automate_excel-0.0.221.tar.gz

Download URL automate_excel-0.0.221.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fd308b07c02f4c080f63df397e355fad46ee0e9ad1be902090ab8fda5c6553c5
BLAKE2b-256 checksum
How to use checksums
1ffa953b8b1ead2de67c5a7fb9bf442463d2852270225b7f8c533bb376160ca0
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / automate_excel-0.0.221-py3-none-any.whl

Download URL automate_excel-0.0.221-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f168578d0b1cd65978c86d76a5766861c786a0d081f87deaa346bdad39587948
BLAKE2b-256 checksum
How to use checksums
106ab44b06af67fcfed0e37fa881598732a027680a3fdd4fdcf7e13688a86a41
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.221 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page