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.
@@ -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
+ ]