pyOfficeEditor 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyofficeeditor/__init__.py +46 -0
- pyofficeeditor/_xml.py +707 -0
- pyofficeeditor/_zip.py +470 -0
- pyofficeeditor/excel/__init__.py +78 -0
- pyofficeeditor/excel/_dimensions.py +192 -0
- pyofficeeditor/excel/_formats.py +670 -0
- pyofficeeditor/excel/_formulas.py +604 -0
- pyofficeeditor/excel/_names.py +174 -0
- pyofficeeditor/excel/_reference.py +378 -0
- pyofficeeditor/excel/_rowcol.py +742 -0
- pyofficeeditor/excel/_schema.py +141 -0
- pyofficeeditor/excel/_sharedstrings.py +160 -0
- pyofficeeditor/excel/_styles.py +607 -0
- pyofficeeditor/excel/_tables.py +416 -0
- pyofficeeditor/excel/_tokens.py +258 -0
- pyofficeeditor/excel/_values.py +381 -0
- pyofficeeditor/excel/workbook.py +906 -0
- pyofficeeditor/excel/worksheet.py +1289 -0
- pyofficeeditor/exceptions.py +38 -0
- pyofficeeditor/opc.py +551 -0
- pyofficeeditor/py.typed +0 -0
- pyofficeeditor-0.1.0.dist-info/METADATA +317 -0
- pyofficeeditor-0.1.0.dist-info/RECORD +25 -0
- pyofficeeditor-0.1.0.dist-info/WHEEL +4 -0
- pyofficeeditor-0.1.0.dist-info/licenses/LICENSE.md +21 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""pyOfficeEditor: the document surface of Office files, in pure Python.
|
|
2
|
+
|
|
3
|
+
Where pyOpenVBA edits the VBA project inside an Office file, this library
|
|
4
|
+
edits the document itself: the cell, the paragraph, the slide, the table.
|
|
5
|
+
No Office installation, no COM, and no third-party packages.
|
|
6
|
+
|
|
7
|
+
What is here today is the foundation every host sits on:
|
|
8
|
+
|
|
9
|
+
- :mod:`pyofficeeditor.opc` -- Open Packaging Conventions: parts, content
|
|
10
|
+
types, relationships.
|
|
11
|
+
- :mod:`pyofficeeditor._xml` -- XML that reproduces the bytes it was parsed
|
|
12
|
+
from, so editing one cell leaves the rest of a worksheet untouched.
|
|
13
|
+
- :mod:`pyofficeeditor._zip` -- the ZIP container, read and written field
|
|
14
|
+
for field.
|
|
15
|
+
|
|
16
|
+
The Excel surface is being built on top of these; Word, PowerPoint and
|
|
17
|
+
Access follow in that order.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
from pyofficeeditor._xml import Element, XmlDocument
|
|
23
|
+
from pyofficeeditor.exceptions import (
|
|
24
|
+
PackageError,
|
|
25
|
+
PyOfficeEditorError,
|
|
26
|
+
UnsupportedFormatError,
|
|
27
|
+
XmlError,
|
|
28
|
+
ZipError,
|
|
29
|
+
)
|
|
30
|
+
from pyofficeeditor.opc import OpcPackage, Relationship, Relationships
|
|
31
|
+
|
|
32
|
+
__version__ = "0.1.0"
|
|
33
|
+
|
|
34
|
+
__all__ = [
|
|
35
|
+
"Element",
|
|
36
|
+
"OpcPackage",
|
|
37
|
+
"PackageError",
|
|
38
|
+
"PyOfficeEditorError",
|
|
39
|
+
"Relationship",
|
|
40
|
+
"Relationships",
|
|
41
|
+
"UnsupportedFormatError",
|
|
42
|
+
"XmlDocument",
|
|
43
|
+
"XmlError",
|
|
44
|
+
"ZipError",
|
|
45
|
+
"__version__",
|
|
46
|
+
]
|