Skip to main content

Package with utilities to work with MS Office applications from Python via COM interface technology

Project description

Microsoft Office utilities for Python based on PyWin32

Package with utilities to work with MS Office applications from Python via COM interface technology

Features

Set of submodules contains:

  • submodule for Microsoft Office constants -> deprecated, switched to access to win32.com.client.constants
  • submodule for Microsoft VBA constants
  • submodule with utilities for Microsoft Office in general
  • submodule with utilities for Microsoft Excel including "pythonic" access to ExcelAPI
  • submodule for interfacing caller with Microsoft Office applications via Python Wrapper

Note: as I am coming from camel case notation I was struggling a little bit with the Python naming conventions. However, for publishing I tried to increase compliance with Python naming conventions and added snake case method stubs (at least for most important subroutines) as a compromise.

Development

To set up hatch and pre-commit for the first time:

  1. install hatch globally, e.g. with pipx, i.e. pipx install hatch,
  2. make sure pre-commit is installed globally, e.g. with pipx install pre-commit.

A special feature that makes hatch very different from other familiar tools is that you almost never activate, or enter, an environment. Instead, you use hatch run env_name:command and the default environment is assumed for a command if there is no colon found. Thus you must always define your environment in a declarative way and hatch makes sure that the environment reflects your declaration by updating it whenever you issue a hatch run .... This helps with reproducability and avoids forgetting to specify dependencies since the hatch workflow is to specify everything directly in pyproject.toml. Only in rare cases, you will use hatch shell to enter the default environment, which is similar to what you may know from other tools.

To get you started, use hatch run test:cov or hatch run test:no-cov to run the unitest with or without coverage reports, respectively. Use hatch run lint:all to run all kinds of typing and linting checks. Try to automatically fix linting problems with hatch run lint:fix and use hatch run docs:serve to build and serve your documentation. You can also easily define your own environments and commands. Check out the environment setup of hatch in pyproject.toml for more commands as well as the package, build and tool configuration.

To support versioning and changelog generation please refer to the toolchain selected during package generation (see also pyproject.toml). If not deselected, the toolchain includes a pre-commit hook for linting commit messages to ensure commit messages are compliant with the conventional commit format and support an automated changelog generation.

Credits

This package was created with The Hatchlor Enhanced project template. This template is based on The Hatchlor but was substantially improved.

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

utils_msoffice-1.1.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

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

utils_msoffice-1.1.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file utils_msoffice-1.1.0.tar.gz.

File metadata

  • Download URL: utils_msoffice-1.1.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for utils_msoffice-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ce6aad8db5b7bf3bb75e44e81109a534bd83a671c7952f91c1d5d58dbe389cba
MD5 bc54bdf4ed020e7f8c8ea39a45583bf3
BLAKE2b-256 2d3570799398af582db7ada4e9d3fbdcdb23cca4f2f331cee69d90bc18af859f

See more details on using hashes here.

Provenance

The following attestation bundles were made for utils_msoffice-1.1.0.tar.gz:

Publisher: build.yml on dornech/utils-msoffice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file utils_msoffice-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: utils_msoffice-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for utils_msoffice-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e67555b7d0df9b79be88e91b676603438fb16cc5fb2682eee7c87a1cff0bfdec
MD5 903d8f1722aa18021e241eb34f00c642
BLAKE2b-256 a815b0ccf6cbe4bce37d4765ed5f09a991b82077c46498888c047a1dfb1ba6d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for utils_msoffice-1.1.0-py3-none-any.whl:

Publisher: build.yml on dornech/utils-msoffice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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