Python wrapper for the VBA Object library
Project description
Matita - Full Microsoft Office automation in Python ✏️
Matita is a Python wrapper for the VBA Object library.
You get the full power of VBA with the convenience of Python.
See the documentation for more details.
Excel 📊
from matita.office import excel as xl
def hello_world():
xl_app = xl.Application()
xl_app.visible = True
wkb = xl_app.workbooks.Add()
wks = wkb.worksheets(1)
c = wks.cells(1,1)
c.value = "Hello world!"
PowerPoint 🖼️
from matita.office import powerpoint as pp
def hello_world():
pp_app = pp.Application()
pp_app.visible = True
prs = pp_app.presentations.add()
sld = prs.slides.add(1, pp.ppLayoutText)
shp = sld.shapes.addshape(pp.msoShapeRectangle, 100, 100, 200, 100)
shp.text_frame.text_range.text = "Hello world!"
Word 📄
from matita.office import word as wd
def hello_world():
wd_app = wd.Application()
wd_app.visible = True
doc = wd_app.documents.add()
par = doc.content.paragraphs.add()
par.range.text = "Hello world!"
Outlook 📧
def hello_world():
ol_app = ol.Application()
mail = ol.MailItem(ol_app.create_item(ol.olMailItem))
mail.body = "Hello world!"
mail.display()
Installation
python -m pip install matita
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matita-1.0.0.tar.gz
(2.0 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
matita-1.0.0-py3-none-any.whl
(823.7 kB
view details)
File details
Details for the file matita-1.0.0.tar.gz.
File metadata
- Download URL: matita-1.0.0.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34af3f8fbcd2fa1903c8d21dd4350c73625bd89392b78b5f58dac3b39f16b5a7
|
|
| MD5 |
b4a4cc85a161a111bc3e467303269420
|
|
| BLAKE2b-256 |
9c1b9cfa5ab1ec0b246e5b427c82dd9d4feb76b196a2be29b7e03ac1d4b34af3
|
File details
Details for the file matita-1.0.0-py3-none-any.whl.
File metadata
- Download URL: matita-1.0.0-py3-none-any.whl
- Upload date:
- Size: 823.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0eb5924f55ccb1c4963923465921bd800751d2b2058ea228548b589086cd9677
|
|
| MD5 |
83ffc810240b793895c7c7bee5c15a45
|
|
| BLAKE2b-256 |
a523f566f0a1c09d588a6389e9aefdcd34dbd1218879d0f3e46bfc9b824ff809
|