ooxpy 0.5.2__tar.gz
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.
- ooxpy-0.5.2/.github/workflows/ci.yml +74 -0
- ooxpy-0.5.2/.github/workflows/office-check.yml +57 -0
- ooxpy-0.5.2/.github/workflows/release.yml +120 -0
- ooxpy-0.5.2/CHANGELOG.md +72 -0
- ooxpy-0.5.2/LICENSE +21 -0
- ooxpy-0.5.2/MANIFEST.in +11 -0
- ooxpy-0.5.2/NOTICE +34 -0
- ooxpy-0.5.2/PKG-INFO +155 -0
- ooxpy-0.5.2/README.md +111 -0
- ooxpy-0.5.2/docs/ARCHITECTURE.md +336 -0
- ooxpy-0.5.2/docs/ATTRIBUTIONS.md +72 -0
- ooxpy-0.5.2/docs/ODFPY_COMPAT.md +81 -0
- ooxpy-0.5.2/docs/ROADMAP.md +243 -0
- ooxpy-0.5.2/docs/STABILITY.md +81 -0
- ooxpy-0.5.2/docs/XSD_DIFF.md +114 -0
- ooxpy-0.5.2/docs/changelog.md +1 -0
- ooxpy-0.5.2/docs/cli.md +83 -0
- ooxpy-0.5.2/docs/concepts.md +164 -0
- ooxpy-0.5.2/docs/cookbook.md +206 -0
- ooxpy-0.5.2/docs/faq.md +59 -0
- ooxpy-0.5.2/docs/getting-started.md +123 -0
- ooxpy-0.5.2/docs/guide/charts.md +117 -0
- ooxpy-0.5.2/docs/guide/excel.md +211 -0
- ooxpy-0.5.2/docs/guide/existing-files.md +143 -0
- ooxpy-0.5.2/docs/guide/powerpoint.md +156 -0
- ooxpy-0.5.2/docs/guide/validation.md +119 -0
- ooxpy-0.5.2/docs/guide/word.md +307 -0
- ooxpy-0.5.2/docs/index.md +61 -0
- ooxpy-0.5.2/docs/odfpy.md +82 -0
- ooxpy-0.5.2/docs/office.md +64 -0
- ooxpy-0.5.2/docs/reference/charts.md +134 -0
- ooxpy-0.5.2/docs/reference/documents.md +199 -0
- ooxpy-0.5.2/docs/reference/elements.md +304 -0
- ooxpy-0.5.2/docs/reference/excel.md +930 -0
- ooxpy-0.5.2/docs/reference/index.md +12 -0
- ooxpy-0.5.2/docs/reference/package.md +199 -0
- ooxpy-0.5.2/docs/reference/powerpoint.md +625 -0
- ooxpy-0.5.2/docs/reference/utilities.md +117 -0
- ooxpy-0.5.2/docs/reference/word.md +1258 -0
- ooxpy-0.5.2/docs/reports/xsd-diff.md +903 -0
- ooxpy-0.5.2/examples/charts.html +125 -0
- ooxpy-0.5.2/examples/charts.py +62 -0
- ooxpy-0.5.2/examples/edit_existing.html +107 -0
- ooxpy-0.5.2/examples/edit_existing.py +72 -0
- ooxpy-0.5.2/examples/excel_dashboard.html +75 -0
- ooxpy-0.5.2/examples/excel_dashboard.py +61 -0
- ooxpy-0.5.2/examples/excel_report.html +70 -0
- ooxpy-0.5.2/examples/excel_report.py +50 -0
- ooxpy-0.5.2/examples/forms_fields.html +90 -0
- ooxpy-0.5.2/examples/forms_fields.py +75 -0
- ooxpy-0.5.2/examples/hello.html +128 -0
- ooxpy-0.5.2/examples/hello.py +84 -0
- ooxpy-0.5.2/examples/index.html +32 -0
- ooxpy-0.5.2/examples/report.html +94 -0
- ooxpy-0.5.2/examples/report.py +60 -0
- ooxpy-0.5.2/examples/showcase.html +96 -0
- ooxpy-0.5.2/examples/showcase.py +98 -0
- ooxpy-0.5.2/examples/slides.html +133 -0
- ooxpy-0.5.2/examples/slides.py +64 -0
- ooxpy-0.5.2/examples/tables_review.html +81 -0
- ooxpy-0.5.2/examples/tables_review.py +77 -0
- ooxpy-0.5.2/mkdocs.yml +84 -0
- ooxpy-0.5.2/pyproject.toml +86 -0
- ooxpy-0.5.2/setup.cfg +4 -0
- ooxpy-0.5.2/src/oox/__init__.py +54 -0
- ooxpy-0.5.2/src/oox/__main__.py +186 -0
- ooxpy-0.5.2/src/oox/_generated/__init__.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/enums.py +1047 -0
- ooxpy-0.5.2/src/oox/_generated/g_a.py +5520 -0
- ooxpy-0.5.2/src/oox/_generated/g_a14.py +376 -0
- ooxpy-0.5.2/src/oox/_generated/g_a15.py +45 -0
- ooxpy-0.5.2/src/oox/_generated/g_a16.py +30 -0
- ooxpy-0.5.2/src/oox/_generated/g_a1611.py +11 -0
- ooxpy-0.5.2/src/oox/_generated/g_a3danim.py +15 -0
- ooxpy-0.5.2/src/oox/_generated/g_aanim.py +31 -0
- ooxpy-0.5.2/src/oox/_generated/g_ac.py +13 -0
- ooxpy-0.5.2/src/oox/_generated/g_aclsh.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_adec.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/g_ahyp.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_aif.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/g_alf.py +37 -0
- ooxpy-0.5.2/src/oox/_generated/g_am3d.py +160 -0
- ooxpy-0.5.2/src/oox/_generated/g_aoe.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/g_ap.py +41 -0
- ooxpy-0.5.2/src/oox/_generated/g_ask.py +33 -0
- ooxpy-0.5.2/src/oox/_generated/g_asl.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_asvg.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_ax.py +20 -0
- ooxpy-0.5.2/src/oox/_generated/g_b.py +183 -0
- ooxpy-0.5.2/src/oox/_generated/g_c.py +1641 -0
- ooxpy-0.5.2/src/oox/_generated/g_c14.py +51 -0
- ooxpy-0.5.2/src/oox/_generated/g_c15.py +83 -0
- ooxpy-0.5.2/src/oox/_generated/g_c16.py +63 -0
- ooxpy-0.5.2/src/oox/_generated/g_c16r3.py +14 -0
- ooxpy-0.5.2/src/oox/_generated/g_cdip.py +17 -0
- ooxpy-0.5.2/src/oox/_generated/g_cdr.py +117 -0
- ooxpy-0.5.2/src/oox/_generated/g_cdr14.py +27 -0
- ooxpy-0.5.2/src/oox/_generated/g_clbl.py +30 -0
- ooxpy-0.5.2/src/oox/_generated/g_com14.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/g_comp.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/g_cppr.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/g_cs.py +695 -0
- ooxpy-0.5.2/src/oox/_generated/g_ct.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/g_cx.py +591 -0
- ooxpy-0.5.2/src/oox/_generated/g_dgm.py +552 -0
- ooxpy-0.5.2/src/oox/_generated/g_dgm14.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/g_dgm1611.py +23 -0
- ooxpy-0.5.2/src/oox/_generated/g_ds.py +17 -0
- ooxpy-0.5.2/src/oox/_generated/g_dsp.py +60 -0
- ooxpy-0.5.2/src/oox/_generated/g_emma.py +233 -0
- ooxpy-0.5.2/src/oox/_generated/g_inkml.py +208 -0
- ooxpy-0.5.2/src/oox/_generated/g_lp.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_m.py +1040 -0
- ooxpy-0.5.2/src/oox/_generated/g_ma.py +26 -0
- ooxpy-0.5.2/src/oox/_generated/g_msink.py +91 -0
- ooxpy-0.5.2/src/oox/_generated/g_mso.py +1516 -0
- ooxpy-0.5.2/src/oox/_generated/g_mso14.py +2914 -0
- ooxpy-0.5.2/src/oox/_generated/g_ntns.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/g_o.py +372 -0
- ooxpy-0.5.2/src/oox/_generated/g_oac.py +407 -0
- ooxpy-0.5.2/src/oox/_generated/g_oel.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_op.py +48 -0
- ooxpy-0.5.2/src/oox/_generated/g_p.py +1312 -0
- ooxpy-0.5.2/src/oox/_generated/g_p14.py +219 -0
- ooxpy-0.5.2/src/oox/_generated/g_p15.py +50 -0
- ooxpy-0.5.2/src/oox/_generated/g_p16.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/g_p1710.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_p173.py +21 -0
- ooxpy-0.5.2/src/oox/_generated/g_p184.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_p188.py +84 -0
- ooxpy-0.5.2/src/oox/_generated/g_p1912.py +91 -0
- ooxpy-0.5.2/src/oox/_generated/g_p202.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/g_p216.py +90 -0
- ooxpy-0.5.2/src/oox/_generated/g_p223.py +16 -0
- ooxpy-0.5.2/src/oox/_generated/g_p228.py +77 -0
- ooxpy-0.5.2/src/oox/_generated/g_p232.py +11 -0
- ooxpy-0.5.2/src/oox/_generated/g_pRoam.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_pc.py +36 -0
- ooxpy-0.5.2/src/oox/_generated/g_pc2.py +27 -0
- ooxpy-0.5.2/src/oox/_generated/g_pic.py +15 -0
- ooxpy-0.5.2/src/oox/_generated/g_pvml.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/g_sl.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/g_sle.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/g_t.py +93 -0
- ooxpy-0.5.2/src/oox/_generated/g_thm15.py +36 -0
- ooxpy-0.5.2/src/oox/_generated/g_tsle.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_v.py +983 -0
- ooxpy-0.5.2/src/oox/_generated/g_vt.py +102 -0
- ooxpy-0.5.2/src/oox/_generated/g_w.py +6238 -0
- ooxpy-0.5.2/src/oox/_generated/g_w10.py +38 -0
- ooxpy-0.5.2/src/oox/_generated/g_w14.py +337 -0
- ooxpy-0.5.2/src/oox/_generated/g_w15.py +38 -0
- ooxpy-0.5.2/src/oox/_generated/g_w16cex.py +20 -0
- ooxpy-0.5.2/src/oox/_generated/g_w16cid.py +13 -0
- ooxpy-0.5.2/src/oox/_generated/g_w16cur.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/g_w16se.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_we.py +55 -0
- ooxpy-0.5.2/src/oox/_generated/g_wetp.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/g_wne.py +108 -0
- ooxpy-0.5.2/src/oox/_generated/g_woe.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_wp.py +106 -0
- ooxpy-0.5.2/src/oox/_generated/g_wp14.py +15 -0
- ooxpy-0.5.2/src/oox/_generated/g_wp15.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/g_wpc.py +20 -0
- ooxpy-0.5.2/src/oox/_generated/g_wpg.py +73 -0
- ooxpy-0.5.2/src/oox/_generated/g_wps.py +32 -0
- ooxpy-0.5.2/src/oox/_generated/g_x.py +3519 -0
- ooxpy-0.5.2/src/oox/_generated/g_x14.py +688 -0
- ooxpy-0.5.2/src/oox/_generated/g_x15.py +418 -0
- ooxpy-0.5.2/src/oox/_generated/g_x15ac.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/g_x16.py +25 -0
- ooxpy-0.5.2/src/oox/_generated/g_xcalcf.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/g_xda.py +11 -0
- ooxpy-0.5.2/src/oox/_generated/g_xdr.py +162 -0
- ooxpy-0.5.2/src/oox/_generated/g_xdr14.py +39 -0
- ooxpy-0.5.2/src/oox/_generated/g_xfpb.py +133 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlecs.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlecs2.py +14 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlmsforms.py +19 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlpcalc.py +52 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlpda.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlpds.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlrd.py +32 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlrd2.py +233 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlrdwi.py +32 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlrvr.py +15 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlrvrel.py +12 -0
- ooxpy-0.5.2/src/oox/_generated/g_xltc.py +62 -0
- ooxpy-0.5.2/src/oox/_generated/g_xltc2.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/g_xlwcv.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_xne.py +32 -0
- ooxpy-0.5.2/src/oox/_generated/g_xnsv.py +62 -0
- ooxpy-0.5.2/src/oox/_generated/g_xpdl.py +11 -0
- ooxpy-0.5.2/src/oox/_generated/g_xprd.py +12 -0
- ooxpy-0.5.2/src/oox/_generated/g_xr.py +482 -0
- ooxpy-0.5.2/src/oox/_generated/g_xsd.py +157 -0
- ooxpy-0.5.2/src/oox/_generated/g_xvml.py +112 -0
- ooxpy-0.5.2/src/oox/_generated/g_xxdsv.py +11 -0
- ooxpy-0.5.2/src/oox/_generated/g_xxl21.py +21 -0
- ooxpy-0.5.2/src/oox/_generated/g_xxlnp.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/g_xxpim.py +12 -0
- ooxpy-0.5.2/src/oox/_generated/g_xxpvi.py +15 -0
- ooxpy-0.5.2/src/oox/_generated/index.py +3826 -0
- ooxpy-0.5.2/src/oox/_generated/namespaces.py +196 -0
- ooxpy-0.5.2/src/oox/_generated/p_a.py +1961 -0
- ooxpy-0.5.2/src/oox/_generated/p_a14.py +56 -0
- ooxpy-0.5.2/src/oox/_generated/p_a3danim.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_aanim.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_ac.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_alf.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/p_am3d.py +49 -0
- ooxpy-0.5.2/src/oox/_generated/p_aoe.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_ap.py +22 -0
- ooxpy-0.5.2/src/oox/_generated/p_ask.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/p_asl.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_ax.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_b.py +64 -0
- ooxpy-0.5.2/src/oox/_generated/p_c.py +703 -0
- ooxpy-0.5.2/src/oox/_generated/p_c14.py +12 -0
- ooxpy-0.5.2/src/oox/_generated/p_c15.py +34 -0
- ooxpy-0.5.2/src/oox/_generated/p_c16.py +24 -0
- ooxpy-0.5.2/src/oox/_generated/p_c16r3.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_cdip.py +11 -0
- ooxpy-0.5.2/src/oox/_generated/p_cdr.py +55 -0
- ooxpy-0.5.2/src/oox/_generated/p_cdr14.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/p_clbl.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/p_cppr.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/p_cs.py +261 -0
- ooxpy-0.5.2/src/oox/_generated/p_ct.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_cx.py +167 -0
- ooxpy-0.5.2/src/oox/_generated/p_dgm.py +146 -0
- ooxpy-0.5.2/src/oox/_generated/p_dgm1611.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/p_ds.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_dsp.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/p_emma.py +42 -0
- ooxpy-0.5.2/src/oox/_generated/p_inkml.py +54 -0
- ooxpy-0.5.2/src/oox/_generated/p_lp.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_m.py +906 -0
- ooxpy-0.5.2/src/oox/_generated/p_msink.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_mso.py +144 -0
- ooxpy-0.5.2/src/oox/_generated/p_mso14.py +248 -0
- ooxpy-0.5.2/src/oox/_generated/p_ntns.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_o.py +21 -0
- ooxpy-0.5.2/src/oox/_generated/p_oac.py +76 -0
- ooxpy-0.5.2/src/oox/_generated/p_oel.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_op.py +17 -0
- ooxpy-0.5.2/src/oox/_generated/p_p.py +358 -0
- ooxpy-0.5.2/src/oox/_generated/p_p14.py +24 -0
- ooxpy-0.5.2/src/oox/_generated/p_p15.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/p_p173.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_p188.py +28 -0
- ooxpy-0.5.2/src/oox/_generated/p_p1912.py +17 -0
- ooxpy-0.5.2/src/oox/_generated/p_p202.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/p_p216.py +17 -0
- ooxpy-0.5.2/src/oox/_generated/p_p223.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_p228.py +15 -0
- ooxpy-0.5.2/src/oox/_generated/p_p232.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/p_pRoam.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_pc.py +26 -0
- ooxpy-0.5.2/src/oox/_generated/p_pc2.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/p_pic.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/p_sl.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_sle.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_t.py +18 -0
- ooxpy-0.5.2/src/oox/_generated/p_thm15.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_tsle.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_v.py +147 -0
- ooxpy-0.5.2/src/oox/_generated/p_vt.py +31 -0
- ooxpy-0.5.2/src/oox/_generated/p_w.py +3195 -0
- ooxpy-0.5.2/src/oox/_generated/p_w14.py +80 -0
- ooxpy-0.5.2/src/oox/_generated/p_w15.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/p_w16cex.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/p_w16cid.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_w16cur.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_we.py +13 -0
- ooxpy-0.5.2/src/oox/_generated/p_wetp.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_wne.py +32 -0
- ooxpy-0.5.2/src/oox/_generated/p_wp.py +33 -0
- ooxpy-0.5.2/src/oox/_generated/p_wp14.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_wpc.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/p_wpg.py +27 -0
- ooxpy-0.5.2/src/oox/_generated/p_wps.py +14 -0
- ooxpy-0.5.2/src/oox/_generated/p_x.py +625 -0
- ooxpy-0.5.2/src/oox/_generated/p_x14.py +113 -0
- ooxpy-0.5.2/src/oox/_generated/p_x15.py +61 -0
- ooxpy-0.5.2/src/oox/_generated/p_x16.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_xcalcf.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_xda.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_xdr.py +77 -0
- ooxpy-0.5.2/src/oox/_generated/p_xdr14.py +12 -0
- ooxpy-0.5.2/src/oox/_generated/p_xfpb.py +35 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlmsforms.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlpcalc.py +12 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlpds.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlrd.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlrd2.py +51 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlrdwi.py +10 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlrvr.py +5 -0
- ooxpy-0.5.2/src/oox/_generated/p_xlrvrel.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_xltc.py +13 -0
- ooxpy-0.5.2/src/oox/_generated/p_xltc2.py +4 -0
- ooxpy-0.5.2/src/oox/_generated/p_xne.py +8 -0
- ooxpy-0.5.2/src/oox/_generated/p_xnsv.py +21 -0
- ooxpy-0.5.2/src/oox/_generated/p_xr.py +43 -0
- ooxpy-0.5.2/src/oox/_generated/p_xvml.py +38 -0
- ooxpy-0.5.2/src/oox/_generated/p_xxdsv.py +7 -0
- ooxpy-0.5.2/src/oox/_generated/p_xxl21.py +6 -0
- ooxpy-0.5.2/src/oox/_generated/p_xxpvi.py +9 -0
- ooxpy-0.5.2/src/oox/_generated/parts.py +1446 -0
- ooxpy-0.5.2/src/oox/_odfdom.py +150 -0
- ooxpy-0.5.2/src/oox/attrconverters.py +114 -0
- ooxpy-0.5.2/src/oox/charts.py +744 -0
- ooxpy-0.5.2/src/oox/contentmodel.py +173 -0
- ooxpy-0.5.2/src/oox/controls.py +317 -0
- ooxpy-0.5.2/src/oox/document.py +1001 -0
- ooxpy-0.5.2/src/oox/drawing.py +108 -0
- ooxpy-0.5.2/src/oox/element.py +551 -0
- ooxpy-0.5.2/src/oox/errors.py +42 -0
- ooxpy-0.5.2/src/oox/fieldcalc.py +591 -0
- ooxpy-0.5.2/src/oox/fields.py +132 -0
- ooxpy-0.5.2/src/oox/floating.py +133 -0
- ooxpy-0.5.2/src/oox/formatting.py +348 -0
- ooxpy-0.5.2/src/oox/grammar.py +263 -0
- ooxpy-0.5.2/src/oox/images.py +247 -0
- ooxpy-0.5.2/src/oox/lexical.py +121 -0
- ooxpy-0.5.2/src/oox/notes.py +256 -0
- ooxpy-0.5.2/src/oox/ns/__init__.py +17 -0
- ooxpy-0.5.2/src/oox/ns/a.py +3150 -0
- ooxpy-0.5.2/src/oox/ns/a.pyi +4537 -0
- ooxpy-0.5.2/src/oox/ns/a14.py +480 -0
- ooxpy-0.5.2/src/oox/ns/a14.pyi +632 -0
- ooxpy-0.5.2/src/oox/ns/a15.py +58 -0
- ooxpy-0.5.2/src/oox/ns/a15.pyi +78 -0
- ooxpy-0.5.2/src/oox/ns/a16.py +68 -0
- ooxpy-0.5.2/src/oox/ns/a16.pyi +75 -0
- ooxpy-0.5.2/src/oox/ns/a1611.py +29 -0
- ooxpy-0.5.2/src/oox/ns/a1611.pyi +28 -0
- ooxpy-0.5.2/src/oox/ns/a3danim.py +57 -0
- ooxpy-0.5.2/src/oox/ns/a3danim.pyi +68 -0
- ooxpy-0.5.2/src/oox/ns/aanim.py +38 -0
- ooxpy-0.5.2/src/oox/ns/aanim.pyi +44 -0
- ooxpy-0.5.2/src/oox/ns/ac.py +37 -0
- ooxpy-0.5.2/src/oox/ns/ac.pyi +40 -0
- ooxpy-0.5.2/src/oox/ns/aclsh.py +29 -0
- ooxpy-0.5.2/src/oox/ns/aclsh.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/adec.py +28 -0
- ooxpy-0.5.2/src/oox/ns/adec.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/ahyp.py +29 -0
- ooxpy-0.5.2/src/oox/ns/ahyp.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/aif.py +28 -0
- ooxpy-0.5.2/src/oox/ns/aif.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/alf.py +82 -0
- ooxpy-0.5.2/src/oox/ns/alf.pyi +92 -0
- ooxpy-0.5.2/src/oox/ns/am3d.py +342 -0
- ooxpy-0.5.2/src/oox/ns/am3d.pyi +461 -0
- ooxpy-0.5.2/src/oox/ns/aoe.py +38 -0
- ooxpy-0.5.2/src/oox/ns/aoe.pyi +39 -0
- ooxpy-0.5.2/src/oox/ns/ap.py +249 -0
- ooxpy-0.5.2/src/oox/ns/ap.pyi +301 -0
- ooxpy-0.5.2/src/oox/ns/ask.py +92 -0
- ooxpy-0.5.2/src/oox/ns/ask.pyi +104 -0
- ooxpy-0.5.2/src/oox/ns/asl.py +37 -0
- ooxpy-0.5.2/src/oox/ns/asl.pyi +37 -0
- ooxpy-0.5.2/src/oox/ns/asvg.py +29 -0
- ooxpy-0.5.2/src/oox/ns/asvg.pyi +30 -0
- ooxpy-0.5.2/src/oox/ns/ax.py +59 -0
- ooxpy-0.5.2/src/oox/ns/ax.pyi +77 -0
- ooxpy-0.5.2/src/oox/ns/b.py +629 -0
- ooxpy-0.5.2/src/oox/ns/b.pyi +783 -0
- ooxpy-0.5.2/src/oox/ns/c.py +2378 -0
- ooxpy-0.5.2/src/oox/ns/c.pyi +3455 -0
- ooxpy-0.5.2/src/oox/ns/c14.py +127 -0
- ooxpy-0.5.2/src/oox/ns/c14.pyi +147 -0
- ooxpy-0.5.2/src/oox/ns/c15.py +400 -0
- ooxpy-0.5.2/src/oox/ns/c15.pyi +525 -0
- ooxpy-0.5.2/src/oox/ns/c16.py +211 -0
- ooxpy-0.5.2/src/oox/ns/c16.pyi +265 -0
- ooxpy-0.5.2/src/oox/ns/c16ac.py +28 -0
- ooxpy-0.5.2/src/oox/ns/c16ac.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/c16r3.py +37 -0
- ooxpy-0.5.2/src/oox/ns/c16r3.pyi +38 -0
- ooxpy-0.5.2/src/oox/ns/cdip.py +69 -0
- ooxpy-0.5.2/src/oox/ns/cdip.pyi +77 -0
- ooxpy-0.5.2/src/oox/ns/cdr.py +289 -0
- ooxpy-0.5.2/src/oox/ns/cdr.pyi +357 -0
- ooxpy-0.5.2/src/oox/ns/cdr14.py +86 -0
- ooxpy-0.5.2/src/oox/ns/cdr14.pyi +105 -0
- ooxpy-0.5.2/src/oox/ns/clbl.py +57 -0
- ooxpy-0.5.2/src/oox/ns/clbl.pyi +69 -0
- ooxpy-0.5.2/src/oox/ns/com14.py +29 -0
- ooxpy-0.5.2/src/oox/ns/com14.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/comp.py +28 -0
- ooxpy-0.5.2/src/oox/ns/comp.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/cppr.py +79 -0
- ooxpy-0.5.2/src/oox/ns/cppr.pyi +89 -0
- ooxpy-0.5.2/src/oox/ns/cs.py +479 -0
- ooxpy-0.5.2/src/oox/ns/cs.pyi +727 -0
- ooxpy-0.5.2/src/oox/ns/ct.py +28 -0
- ooxpy-0.5.2/src/oox/ns/ct.pyi +39 -0
- ooxpy-0.5.2/src/oox/ns/cx.py +1072 -0
- ooxpy-0.5.2/src/oox/ns/cx.pyi +1459 -0
- ooxpy-0.5.2/src/oox/ns/dgm.py +715 -0
- ooxpy-0.5.2/src/oox/ns/dgm.pyi +1087 -0
- ooxpy-0.5.2/src/oox/ns/dgm14.py +39 -0
- ooxpy-0.5.2/src/oox/ns/dgm14.pyi +43 -0
- ooxpy-0.5.2/src/oox/ns/dgm1611.py +48 -0
- ooxpy-0.5.2/src/oox/ns/dgm1611.pyi +52 -0
- ooxpy-0.5.2/src/oox/ns/dgm1612.py +38 -0
- ooxpy-0.5.2/src/oox/ns/dgm1612.pyi +38 -0
- ooxpy-0.5.2/src/oox/ns/ds.py +48 -0
- ooxpy-0.5.2/src/oox/ns/ds.pyi +52 -0
- ooxpy-0.5.2/src/oox/ns/dsp.py +169 -0
- ooxpy-0.5.2/src/oox/ns/dsp.pyi +204 -0
- ooxpy-0.5.2/src/oox/ns/emma.py +175 -0
- ooxpy-0.5.2/src/oox/ns/emma.pyi +447 -0
- ooxpy-0.5.2/src/oox/ns/inkml.py +261 -0
- ooxpy-0.5.2/src/oox/ns/inkml.pyi +386 -0
- ooxpy-0.5.2/src/oox/ns/lc.py +27 -0
- ooxpy-0.5.2/src/oox/ns/lc.pyi +25 -0
- ooxpy-0.5.2/src/oox/ns/lp.py +37 -0
- ooxpy-0.5.2/src/oox/ns/lp.pyi +37 -0
- ooxpy-0.5.2/src/oox/ns/m.py +1190 -0
- ooxpy-0.5.2/src/oox/ns/m.pyi +1502 -0
- ooxpy-0.5.2/src/oox/ns/ma.py +29 -0
- ooxpy-0.5.2/src/oox/ns/ma.pyi +43 -0
- ooxpy-0.5.2/src/oox/ns/msink.py +57 -0
- ooxpy-0.5.2/src/oox/ns/msink.pyi +83 -0
- ooxpy-0.5.2/src/oox/ns/mso.py +355 -0
- ooxpy-0.5.2/src/oox/ns/mso.pyi +1320 -0
- ooxpy-0.5.2/src/oox/ns/mso14.py +600 -0
- ooxpy-0.5.2/src/oox/ns/mso14.pyi +2296 -0
- ooxpy-0.5.2/src/oox/ns/ntns.py +61 -0
- ooxpy-0.5.2/src/oox/ns/ntns.pyi +67 -0
- ooxpy-0.5.2/src/oox/ns/o.py +313 -0
- ooxpy-0.5.2/src/oox/ns/o.pyi +664 -0
- ooxpy-0.5.2/src/oox/ns/oac.py +1001 -0
- ooxpy-0.5.2/src/oox/ns/oac.pyi +1577 -0
- ooxpy-0.5.2/src/oox/ns/oel.py +29 -0
- ooxpy-0.5.2/src/oox/ns/oel.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/op.py +37 -0
- ooxpy-0.5.2/src/oox/ns/op.pyi +40 -0
- ooxpy-0.5.2/src/oox/ns/p.py +2194 -0
- ooxpy-0.5.2/src/oox/ns/p.pyi +3160 -0
- ooxpy-0.5.2/src/oox/ns/p14.py +553 -0
- ooxpy-0.5.2/src/oox/ns/p14.pyi +712 -0
- ooxpy-0.5.2/src/oox/ns/p15.py +113 -0
- ooxpy-0.5.2/src/oox/ns/p15.pyi +137 -0
- ooxpy-0.5.2/src/oox/ns/p16.py +29 -0
- ooxpy-0.5.2/src/oox/ns/p16.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/p1710.py +28 -0
- ooxpy-0.5.2/src/oox/ns/p1710.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/p173.py +46 -0
- ooxpy-0.5.2/src/oox/ns/p173.pyi +54 -0
- ooxpy-0.5.2/src/oox/ns/p184.py +29 -0
- ooxpy-0.5.2/src/oox/ns/p184.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/p188.py +129 -0
- ooxpy-0.5.2/src/oox/ns/p188.pyi +181 -0
- ooxpy-0.5.2/src/oox/ns/p1912.py +182 -0
- ooxpy-0.5.2/src/oox/ns/p1912.pyi +214 -0
- ooxpy-0.5.2/src/oox/ns/p202.py +57 -0
- ooxpy-0.5.2/src/oox/ns/p202.pyi +62 -0
- ooxpy-0.5.2/src/oox/ns/p216.py +182 -0
- ooxpy-0.5.2/src/oox/ns/p216.pyi +214 -0
- ooxpy-0.5.2/src/oox/ns/p223.py +56 -0
- ooxpy-0.5.2/src/oox/ns/p223.pyi +61 -0
- ooxpy-0.5.2/src/oox/ns/p228.py +162 -0
- ooxpy-0.5.2/src/oox/ns/p228.pyi +191 -0
- ooxpy-0.5.2/src/oox/ns/p232.py +55 -0
- ooxpy-0.5.2/src/oox/ns/p232.pyi +59 -0
- ooxpy-0.5.2/src/oox/ns/pRoam.py +44 -0
- ooxpy-0.5.2/src/oox/ns/pRoam.pyi +46 -0
- ooxpy-0.5.2/src/oox/ns/pc.py +236 -0
- ooxpy-0.5.2/src/oox/ns/pc.pyi +281 -0
- ooxpy-0.5.2/src/oox/ns/pc2.py +57 -0
- ooxpy-0.5.2/src/oox/ns/pc2.pyi +61 -0
- ooxpy-0.5.2/src/oox/ns/pic.py +76 -0
- ooxpy-0.5.2/src/oox/ns/pic.pyi +89 -0
- ooxpy-0.5.2/src/oox/ns/pic14.py +37 -0
- ooxpy-0.5.2/src/oox/ns/pic14.pyi +37 -0
- ooxpy-0.5.2/src/oox/ns/pvml.py +38 -0
- ooxpy-0.5.2/src/oox/ns/pvml.pyi +38 -0
- ooxpy-0.5.2/src/oox/ns/sl.py +36 -0
- ooxpy-0.5.2/src/oox/ns/sl.pyi +41 -0
- ooxpy-0.5.2/src/oox/ns/sle.py +37 -0
- ooxpy-0.5.2/src/oox/ns/sle.pyi +37 -0
- ooxpy-0.5.2/src/oox/ns/t.py +199 -0
- ooxpy-0.5.2/src/oox/ns/t.pyi +241 -0
- ooxpy-0.5.2/src/oox/ns/thm15.py +55 -0
- ooxpy-0.5.2/src/oox/ns/thm15.pyi +66 -0
- ooxpy-0.5.2/src/oox/ns/tsle.py +38 -0
- ooxpy-0.5.2/src/oox/ns/tsle.pyi +38 -0
- ooxpy-0.5.2/src/oox/ns/v.py +234 -0
- ooxpy-0.5.2/src/oox/ns/v.pyi +1355 -0
- ooxpy-0.5.2/src/oox/ns/vt.py +337 -0
- ooxpy-0.5.2/src/oox/ns/vt.pyi +407 -0
- ooxpy-0.5.2/src/oox/ns/w.py +6054 -0
- ooxpy-0.5.2/src/oox/ns/w.pyi +9847 -0
- ooxpy-0.5.2/src/oox/ns/w10.py +78 -0
- ooxpy-0.5.2/src/oox/ns/w10.pyi +97 -0
- ooxpy-0.5.2/src/oox/ns/w14.py +650 -0
- ooxpy-0.5.2/src/oox/ns/w14.pyi +987 -0
- ooxpy-0.5.2/src/oox/ns/w15.py +181 -0
- ooxpy-0.5.2/src/oox/ns/w15.pyi +243 -0
- ooxpy-0.5.2/src/oox/ns/w16cex.py +45 -0
- ooxpy-0.5.2/src/oox/ns/w16cex.pyi +52 -0
- ooxpy-0.5.2/src/oox/ns/w16cid.py +36 -0
- ooxpy-0.5.2/src/oox/ns/w16cid.pyi +39 -0
- ooxpy-0.5.2/src/oox/ns/w16cur.py +29 -0
- ooxpy-0.5.2/src/oox/ns/w16cur.pyi +28 -0
- ooxpy-0.5.2/src/oox/ns/w16se.py +28 -0
- ooxpy-0.5.2/src/oox/ns/w16se.pyi +29 -0
- ooxpy-0.5.2/src/oox/ns/we.py +114 -0
- ooxpy-0.5.2/src/oox/ns/we.pyi +142 -0
- ooxpy-0.5.2/src/oox/ns/wetp.py +56 -0
- ooxpy-0.5.2/src/oox/ns/wetp.pyi +65 -0
- ooxpy-0.5.2/src/oox/ns/wne.py +346 -0
- ooxpy-0.5.2/src/oox/ns/wne.pyi +471 -0
- ooxpy-0.5.2/src/oox/ns/woe.py +29 -0
- ooxpy-0.5.2/src/oox/ns/woe.pyi +29 -0
- ooxpy-0.5.2/src/oox/ns/wp.py +202 -0
- ooxpy-0.5.2/src/oox/ns/wp.pyi +289 -0
- ooxpy-0.5.2/src/oox/ns/wp14.py +75 -0
- ooxpy-0.5.2/src/oox/ns/wp14.pyi +83 -0
- ooxpy-0.5.2/src/oox/ns/wp15.py +29 -0
- ooxpy-0.5.2/src/oox/ns/wp15.pyi +29 -0
- ooxpy-0.5.2/src/oox/ns/wpc.py +64 -0
- ooxpy-0.5.2/src/oox/ns/wpc.pyi +70 -0
- ooxpy-0.5.2/src/oox/ns/wpg.py +102 -0
- ooxpy-0.5.2/src/oox/ns/wpg.pyi +122 -0
- ooxpy-0.5.2/src/oox/ns/wps.py +116 -0
- ooxpy-0.5.2/src/oox/ns/wps.pyi +155 -0
- ooxpy-0.5.2/src/oox/ns/x.py +3828 -0
- ooxpy-0.5.2/src/oox/ns/x.pyi +6513 -0
- ooxpy-0.5.2/src/oox/ns/x12ac.py +27 -0
- ooxpy-0.5.2/src/oox/ns/x12ac.pyi +25 -0
- ooxpy-0.5.2/src/oox/ns/x14.py +1048 -0
- ooxpy-0.5.2/src/oox/ns/x14.pyi +1545 -0
- ooxpy-0.5.2/src/oox/ns/x15.py +686 -0
- ooxpy-0.5.2/src/oox/ns/x15.pyi +951 -0
- ooxpy-0.5.2/src/oox/ns/x15ac.py +29 -0
- ooxpy-0.5.2/src/oox/ns/x15ac.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/x16.py +45 -0
- ooxpy-0.5.2/src/oox/ns/x16.pyi +52 -0
- ooxpy-0.5.2/src/oox/ns/xcalcf.py +37 -0
- ooxpy-0.5.2/src/oox/ns/xcalcf.pyi +37 -0
- ooxpy-0.5.2/src/oox/ns/xda.py +37 -0
- ooxpy-0.5.2/src/oox/ns/xda.pyi +38 -0
- ooxpy-0.5.2/src/oox/ns/xdr.py +352 -0
- ooxpy-0.5.2/src/oox/ns/xdr.pyi +437 -0
- ooxpy-0.5.2/src/oox/ns/xdr14.py +86 -0
- ooxpy-0.5.2/src/oox/ns/xdr14.pyi +105 -0
- ooxpy-0.5.2/src/oox/ns/xfpb.py +295 -0
- ooxpy-0.5.2/src/oox/ns/xfpb.pyi +422 -0
- ooxpy-0.5.2/src/oox/ns/xlecs.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xlecs.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/xlecs2.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xlecs2.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/xlmsforms.py +54 -0
- ooxpy-0.5.2/src/oox/ns/xlmsforms.pyi +61 -0
- ooxpy-0.5.2/src/oox/ns/xlpar.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xlpar.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/xlpcalc.py +90 -0
- ooxpy-0.5.2/src/oox/ns/xlpcalc.pyi +118 -0
- ooxpy-0.5.2/src/oox/ns/xlpda.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xlpda.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/xlpds.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xlpds.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/xlrd.py +107 -0
- ooxpy-0.5.2/src/oox/ns/xlrd.pyi +122 -0
- ooxpy-0.5.2/src/oox/ns/xlrd2.py +360 -0
- ooxpy-0.5.2/src/oox/ns/xlrd2.pyi +492 -0
- ooxpy-0.5.2/src/oox/ns/xlrdwi.py +76 -0
- ooxpy-0.5.2/src/oox/ns/xlrdwi.pyi +87 -0
- ooxpy-0.5.2/src/oox/ns/xlrvr.py +38 -0
- ooxpy-0.5.2/src/oox/ns/xlrvr.pyi +40 -0
- ooxpy-0.5.2/src/oox/ns/xlrvrel.py +46 -0
- ooxpy-0.5.2/src/oox/ns/xlrvrel.pyi +49 -0
- ooxpy-0.5.2/src/oox/ns/xltc.py +89 -0
- ooxpy-0.5.2/src/oox/ns/xltc.pyi +112 -0
- ooxpy-0.5.2/src/oox/ns/xltc2.py +47 -0
- ooxpy-0.5.2/src/oox/ns/xltc2.pyi +51 -0
- ooxpy-0.5.2/src/oox/ns/xlwcv.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xlwcv.pyi +27 -0
- ooxpy-0.5.2/src/oox/ns/xne.py +92 -0
- ooxpy-0.5.2/src/oox/ns/xne.pyi +108 -0
- ooxpy-0.5.2/src/oox/ns/xnsv.py +118 -0
- ooxpy-0.5.2/src/oox/ns/xnsv.pyi +157 -0
- ooxpy-0.5.2/src/oox/ns/xpdl.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xpdl.pyi +28 -0
- ooxpy-0.5.2/src/oox/ns/xprd.py +29 -0
- ooxpy-0.5.2/src/oox/ns/xprd.pyi +30 -0
- ooxpy-0.5.2/src/oox/ns/xr.py +481 -0
- ooxpy-0.5.2/src/oox/ns/xr.pyi +853 -0
- ooxpy-0.5.2/src/oox/ns/xvml.py +607 -0
- ooxpy-0.5.2/src/oox/ns/xvml.pyi +739 -0
- ooxpy-0.5.2/src/oox/ns/xxdsv.py +54 -0
- ooxpy-0.5.2/src/oox/ns/xxdsv.pyi +58 -0
- ooxpy-0.5.2/src/oox/ns/xxl21.py +49 -0
- ooxpy-0.5.2/src/oox/ns/xxl21.pyi +54 -0
- ooxpy-0.5.2/src/oox/ns/xxlnp.py +28 -0
- ooxpy-0.5.2/src/oox/ns/xxlnp.pyi +26 -0
- ooxpy-0.5.2/src/oox/ns/xxpim.py +47 -0
- ooxpy-0.5.2/src/oox/ns/xxpim.pyi +50 -0
- ooxpy-0.5.2/src/oox/ns/xxpvi.py +62 -0
- ooxpy-0.5.2/src/oox/ns/xxpvi.pyi +68 -0
- ooxpy-0.5.2/src/oox/numbering.py +296 -0
- ooxpy-0.5.2/src/oox/odfcompat.py +60 -0
- ooxpy-0.5.2/src/oox/opc.py +470 -0
- ooxpy-0.5.2/src/oox/presentation.py +590 -0
- ooxpy-0.5.2/src/oox/properties.py +337 -0
- ooxpy-0.5.2/src/oox/protection.py +242 -0
- ooxpy-0.5.2/src/oox/py.typed +0 -0
- ooxpy-0.5.2/src/oox/revisions.py +318 -0
- ooxpy-0.5.2/src/oox/sections.py +274 -0
- ooxpy-0.5.2/src/oox/sections_pml.py +121 -0
- ooxpy-0.5.2/src/oox/semantics.py +62 -0
- ooxpy-0.5.2/src/oox/slidelinks.py +213 -0
- ooxpy-0.5.2/src/oox/slides.py +459 -0
- ooxpy-0.5.2/src/oox/slidetable.py +419 -0
- ooxpy-0.5.2/src/oox/spreadsheet.py +1004 -0
- ooxpy-0.5.2/src/oox/strict.py +155 -0
- ooxpy-0.5.2/src/oox/tables.py +439 -0
- ooxpy-0.5.2/src/oox/teletype.py +99 -0
- ooxpy-0.5.2/src/oox/template.py +82 -0
- ooxpy-0.5.2/src/oox/textboxes.py +212 -0
- ooxpy-0.5.2/src/oox/units.py +44 -0
- ooxpy-0.5.2/src/oox/word_defaults.py +187 -0
- ooxpy-0.5.2/src/oox/xlcharts.py +262 -0
- ooxpy-0.5.2/src/oox/xlcond.py +205 -0
- ooxpy-0.5.2/src/oox/xlnotes.py +221 -0
- ooxpy-0.5.2/src/oox/xlprint.py +295 -0
- ooxpy-0.5.2/src/oox/xlsheet.py +419 -0
- ooxpy-0.5.2/src/oox/xlstyles.py +666 -0
- ooxpy-0.5.2/src/oox/xltables.py +184 -0
- ooxpy-0.5.2/src/ooxpy.egg-info/PKG-INFO +155 -0
- ooxpy-0.5.2/src/ooxpy.egg-info/SOURCES.txt +777 -0
- ooxpy-0.5.2/src/ooxpy.egg-info/dependency_links.txt +1 -0
- ooxpy-0.5.2/src/ooxpy.egg-info/entry_points.txt +2 -0
- ooxpy-0.5.2/src/ooxpy.egg-info/requires.txt +16 -0
- ooxpy-0.5.2/src/ooxpy.egg-info/top_level.txt +1 -0
- ooxpy-0.5.2/tests/api/public_api.txt +472 -0
- ooxpy-0.5.2/tests/test_charts.py +378 -0
- ooxpy-0.5.2/tests/test_cli.py +72 -0
- ooxpy-0.5.2/tests/test_contentmodel.py +64 -0
- ooxpy-0.5.2/tests/test_docs.py +96 -0
- ooxpy-0.5.2/tests/test_element.py +156 -0
- ooxpy-0.5.2/tests/test_examples.py +62 -0
- ooxpy-0.5.2/tests/test_excel_step2.py +254 -0
- ooxpy-0.5.2/tests/test_excel_styles_layout.py +224 -0
- ooxpy-0.5.2/tests/test_generator.py +112 -0
- ooxpy-0.5.2/tests/test_hostile.py +157 -0
- ooxpy-0.5.2/tests/test_interop.py +31 -0
- ooxpy-0.5.2/tests/test_lexical.py +63 -0
- ooxpy-0.5.2/tests/test_numbering.py +104 -0
- ooxpy-0.5.2/tests/test_odfcompat.py +109 -0
- ooxpy-0.5.2/tests/test_odfpy_examples.py +131 -0
- ooxpy-0.5.2/tests/test_officecheck.py +920 -0
- ooxpy-0.5.2/tests/test_package.py +131 -0
- ooxpy-0.5.2/tests/test_performance.py +140 -0
- ooxpy-0.5.2/tests/test_pictures.py +108 -0
- ooxpy-0.5.2/tests/test_presentation.py +117 -0
- ooxpy-0.5.2/tests/test_protection_textboxes.py +264 -0
- ooxpy-0.5.2/tests/test_public_api.py +37 -0
- ooxpy-0.5.2/tests/test_quality.py +59 -0
- ooxpy-0.5.2/tests/test_save_target.py +104 -0
- ooxpy-0.5.2/tests/test_slide_edit.py +301 -0
- ooxpy-0.5.2/tests/test_slides.py +142 -0
- ooxpy-0.5.2/tests/test_spreadsheet.py +156 -0
- ooxpy-0.5.2/tests/test_strict.py +84 -0
- ooxpy-0.5.2/tests/test_strict_values.py +91 -0
- ooxpy-0.5.2/tests/test_word_batch5.py +329 -0
- ooxpy-0.5.2/tests/test_word_defaults.py +110 -0
- ooxpy-0.5.2/tests/test_word_features.py +308 -0
- ooxpy-0.5.2/tests/test_word_tables_revisions.py +307 -0
- ooxpy-0.5.2/tests/test_writers.py +149 -0
- ooxpy-0.5.2/tests/test_xsd_frontend.py +205 -0
- ooxpy-0.5.2/tools/__init__.py +0 -0
- ooxpy-0.5.2/tools/api_surface.py +152 -0
- ooxpy-0.5.2/tools/apidocs.py +424 -0
- ooxpy-0.5.2/tools/bench.py +47 -0
- ooxpy-0.5.2/tools/gen/SDK_REVISION +1 -0
- ooxpy-0.5.2/tools/gen/__init__.py +1 -0
- ooxpy-0.5.2/tools/gen/__main__.py +42 -0
- ooxpy-0.5.2/tools/gen/emit.py +297 -0
- ooxpy-0.5.2/tools/gen/fetch_sdk.py +48 -0
- ooxpy-0.5.2/tools/gen/ir.py +100 -0
- ooxpy-0.5.2/tools/gen/irdiff.py +436 -0
- ooxpy-0.5.2/tools/gen/overrides.py +35 -0
- ooxpy-0.5.2/tools/gen/sdk_frontend.py +341 -0
- ooxpy-0.5.2/tools/gen/xsd_frontend.py +402 -0
- ooxpy-0.5.2/tools/interop.py +217 -0
- ooxpy-0.5.2/tools/officecheck/README.md +163 -0
- ooxpy-0.5.2/tools/officecheck/__init__.py +0 -0
- ooxpy-0.5.2/tools/officecheck/assets.py +204 -0
- ooxpy-0.5.2/tools/officecheck/check_libreoffice.py +670 -0
- ooxpy-0.5.2/tools/officecheck/check_office.py +1805 -0
- ooxpy-0.5.2/tools/officecheck/generate.py +2114 -0
- ooxpy-0.5.2/tools/officecheck/report.py +246 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-controls.md +37 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-excel-step1-rerun.md +94 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-excel-step1-rerun2.md +72 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-excel-step1-rerun3.md +62 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-excel-step1.md +80 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-lists.md +45 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-merged.md +39 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-observe.md +56 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-powerpoint-rerun.md +39 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-word-step1.md +44 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-word-step3.md +59 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-word-step4.md +67 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-word-step5.md +58 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-word15-rerun.md +52 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007-word16-rerun.md +52 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-14-office2007.md +28 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-charts-ppt-observe.md +125 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-excel-step2.md +75 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-excel12-Rules.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-excel12-rerun.md +75 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-excel12-rerun2.md +75 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-excel12-rerun3.md +98 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-excel12-rerun4.md +93 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-excel12-screenshot.md +103 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-protection-textboxes.md +109 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/excel-16-Points-chart1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/excel-16-Sales-chart1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/excel-16-Sales-chart2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/excel-16-Sales-chart3.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/excel-16-Sales-chart4.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/ppt-08-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/ppt-08-slide2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/ppt-09-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/ppt-09-slide2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/ppt-09-slide3.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/ppt-09-slide4.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-screens/ppt-09-slide5.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-charts-ppt.md +114 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-rerun.md +104 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-rerun2.md +89 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/excel-17-Combo-chart1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/excel-17-Combo-chart2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/excel-18-Data-chart2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-03-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-07-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-09-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-09-slide2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-09-slide3.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-09-slide4.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-09-slide5.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-10-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-10-slide2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-10-slide3.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-11-slide1-proportional.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-15-office2007-step2-screens/ppt-11-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-rerun.md +132 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-16-charts-Points-chart1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-16-charts-Sales-chart1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-16-charts-Sales-chart2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-16-charts-Sales-chart3.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-16-charts-Sales-chart4.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-17-combo-charts-Combo-chart1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-17-combo-charts-Combo-chart2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-excel-18-edit-openpyxl-file-Data-chart2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-03-textboxes-pictures-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-07-properties-images-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-08-charts-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-08-charts-slide2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-09-layouts-tables-notes-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-09-layouts-tables-notes-slide2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-09-layouts-tables-notes-slide3.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-09-layouts-tables-notes-slide4.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-09-layouts-tables-notes-slide5.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-10-links-table-edit-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-10-links-table-edit-slide2.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-10-links-table-edit-slide3.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-screens/gregory_citadel-ppt-11-edit-python-pptx-file-slide1.png +0 -0
- ooxpy-0.5.2/tools/officecheck/reports/2026-11-16-office2016-unactivated.md +302 -0
- ooxpy-0.5.2/tools/officecheck/reports/README.md +80 -0
- ooxpy-0.5.2/tools/smoke_install.py +95 -0
- ooxpy-0.5.2/tools/writers.py +324 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
name: tests (Python ${{ matrix.python }})
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python }}
|
|
23
|
+
allow-prereleases: true
|
|
24
|
+
- run: python -m pip install -e ".[dev]" openpyxl python-pptx pillow
|
|
25
|
+
- run: python -m pytest
|
|
26
|
+
|
|
27
|
+
lint:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v4
|
|
31
|
+
- uses: actions/setup-python@v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: "3.13"
|
|
34
|
+
- run: python -m pip install -e ".[dev]"
|
|
35
|
+
- run: ruff check src tools tests examples
|
|
36
|
+
- run: pyright
|
|
37
|
+
|
|
38
|
+
docs:
|
|
39
|
+
# Every code block in the guides runs (tests/test_docs.py); the API reference
|
|
40
|
+
# matches the docstrings; the site builds with --strict.
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v4
|
|
44
|
+
- uses: actions/setup-python@v5
|
|
45
|
+
with:
|
|
46
|
+
python-version: "3.13"
|
|
47
|
+
- run: python -m pip install -e ".[dev,docs]"
|
|
48
|
+
- run: python -m pytest tests/test_docs.py tests/test_public_api.py -q
|
|
49
|
+
- run: mkdocs build --strict
|
|
50
|
+
|
|
51
|
+
generated-code:
|
|
52
|
+
# The committed generated code must equal a fresh generation from the
|
|
53
|
+
# pinned Open XML SDK revision (tools/gen/SDK_REVISION).
|
|
54
|
+
runs-on: ubuntu-latest
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/checkout@v4
|
|
57
|
+
- uses: actions/setup-python@v5
|
|
58
|
+
with:
|
|
59
|
+
python-version: "3.13"
|
|
60
|
+
- run: python -m pip install -e ".[dev]"
|
|
61
|
+
- run: python -m tools.gen.fetch_sdk "$RUNNER_TEMP/sdk"
|
|
62
|
+
- run: OOX_SDK_DATA="$RUNNER_TEMP/sdk/data" python -m pytest tests/test_generator.py -q
|
|
63
|
+
|
|
64
|
+
libreoffice:
|
|
65
|
+
# Runs the Office-check corpus through LibreOffice (probes on what it reads back).
|
|
66
|
+
runs-on: ubuntu-latest
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v4
|
|
69
|
+
- uses: actions/setup-python@v5
|
|
70
|
+
with:
|
|
71
|
+
python-version: "3.13"
|
|
72
|
+
- run: sudo apt-get update && sudo apt-get install -y --no-install-recommends libreoffice-writer libreoffice-calc libreoffice-impress
|
|
73
|
+
- run: python -m pip install -e ".[dev]" python-pptx
|
|
74
|
+
- run: OOX_LIBREOFFICE=1 python -m pytest tests/test_officecheck.py -q
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Office check
|
|
2
|
+
|
|
3
|
+
# Manual run of the Office compatibility corpus on self-hosted Windows machines
|
|
4
|
+
# with Microsoft Office. Register a runner on each machine with the labels
|
|
5
|
+
# below (e.g. "office2007", "office2016"); see tools/officecheck/README.md.
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
inputs:
|
|
10
|
+
office:
|
|
11
|
+
description: "Runner label of the Office machine (e.g. office2016)"
|
|
12
|
+
required: true
|
|
13
|
+
default: office2016
|
|
14
|
+
only:
|
|
15
|
+
description: "Only cases whose id contains this text (empty = all)"
|
|
16
|
+
required: false
|
|
17
|
+
default: ""
|
|
18
|
+
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
corpus:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
- uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
python-version: "3.13"
|
|
30
|
+
- run: python -m pip install -e . python-docx python-pptx
|
|
31
|
+
- run: python -m tools.officecheck.generate corpus
|
|
32
|
+
- uses: actions/upload-artifact@v4
|
|
33
|
+
with:
|
|
34
|
+
name: officecheck-corpus
|
|
35
|
+
path: corpus
|
|
36
|
+
|
|
37
|
+
office:
|
|
38
|
+
needs: corpus
|
|
39
|
+
runs-on: [self-hosted, windows, "${{ inputs.office }}"]
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/download-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: officecheck-corpus
|
|
44
|
+
path: corpus
|
|
45
|
+
- name: Run the corpus through Office
|
|
46
|
+
shell: cmd
|
|
47
|
+
run: py corpus\check_office.py corpus --only "${{ inputs.only }}"
|
|
48
|
+
continue-on-error: true # failures are the report's job; always upload results
|
|
49
|
+
- name: Report
|
|
50
|
+
shell: cmd
|
|
51
|
+
run: py corpus\report.py corpus
|
|
52
|
+
- uses: actions/upload-artifact@v4
|
|
53
|
+
with:
|
|
54
|
+
name: officecheck-results-${{ inputs.office }}
|
|
55
|
+
path: |
|
|
56
|
+
corpus/results-*.json
|
|
57
|
+
corpus/REPORT.md
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Build once, test the built wheel on the oldest and newest supported Python,
|
|
4
|
+
# then publish with PyPI's trusted publishing (no API tokens stored anywhere).
|
|
5
|
+
# - Run manually ("Run workflow", target testpypi) to rehearse on TestPyPI.
|
|
6
|
+
# - Push a tag vX.Y.Z to publish to PyPI; the tag must equal oox.__version__.
|
|
7
|
+
# One-time setup on (Test)PyPI and in the repository: see RELEASING.md.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
tags: ["v*"]
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
inputs:
|
|
14
|
+
target:
|
|
15
|
+
description: "Where to publish"
|
|
16
|
+
type: choice
|
|
17
|
+
options: [testpypi, none]
|
|
18
|
+
default: testpypi
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
contents: read
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
build:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
- uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.13"
|
|
31
|
+
- run: python -m pip install build twine
|
|
32
|
+
- run: python -m build
|
|
33
|
+
- run: python -m twine check --strict dist/*
|
|
34
|
+
- name: Tag matches the version
|
|
35
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
36
|
+
run: |
|
|
37
|
+
version=$(python -c "import re,pathlib; print(re.search(r'__version__ = \"(.+?)\"', pathlib.Path('src/oox/__init__.py').read_text()).group(1))")
|
|
38
|
+
test "v$version" = "$GITHUB_REF_NAME" || { echo "tag $GITHUB_REF_NAME != version $version"; exit 1; }
|
|
39
|
+
- uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: dist
|
|
42
|
+
path: dist/
|
|
43
|
+
|
|
44
|
+
test-wheel:
|
|
45
|
+
needs: build
|
|
46
|
+
runs-on: ${{ matrix.os }}
|
|
47
|
+
strategy:
|
|
48
|
+
fail-fast: false
|
|
49
|
+
matrix:
|
|
50
|
+
os: [ubuntu-latest, windows-latest]
|
|
51
|
+
python: ["3.10", "3.14"]
|
|
52
|
+
steps:
|
|
53
|
+
- uses: actions/checkout@v4
|
|
54
|
+
with:
|
|
55
|
+
sparse-checkout: tools/smoke_install.py
|
|
56
|
+
sparse-checkout-cone-mode: false
|
|
57
|
+
- uses: actions/setup-python@v5
|
|
58
|
+
with:
|
|
59
|
+
python-version: ${{ matrix.python }}
|
|
60
|
+
allow-prereleases: true
|
|
61
|
+
- uses: actions/download-artifact@v4
|
|
62
|
+
with:
|
|
63
|
+
name: dist
|
|
64
|
+
path: dist
|
|
65
|
+
- name: Install the wheel (not the source tree)
|
|
66
|
+
shell: bash
|
|
67
|
+
run: python -m pip install dist/*.whl
|
|
68
|
+
- name: Smoke test from outside the repository
|
|
69
|
+
shell: bash
|
|
70
|
+
run: cd "$RUNNER_TEMP" && python "$GITHUB_WORKSPACE/tools/smoke_install.py"
|
|
71
|
+
|
|
72
|
+
test-sdist:
|
|
73
|
+
# The sdist carries the test suite, the tools it imports and the examples.
|
|
74
|
+
needs: build
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
steps:
|
|
77
|
+
- uses: actions/setup-python@v5
|
|
78
|
+
with:
|
|
79
|
+
python-version: "3.13"
|
|
80
|
+
- uses: actions/download-artifact@v4
|
|
81
|
+
with:
|
|
82
|
+
name: dist
|
|
83
|
+
path: dist
|
|
84
|
+
- run: |
|
|
85
|
+
mkdir sdist && tar -xzf dist/*.tar.gz -C sdist --strip-components=1
|
|
86
|
+
cd sdist && python -m pip install ".[dev]" pillow && python -m pytest -q
|
|
87
|
+
|
|
88
|
+
publish-testpypi:
|
|
89
|
+
needs: [test-wheel, test-sdist]
|
|
90
|
+
if: github.event_name == 'workflow_dispatch' && inputs.target == 'testpypi'
|
|
91
|
+
runs-on: ubuntu-latest
|
|
92
|
+
environment:
|
|
93
|
+
name: testpypi
|
|
94
|
+
url: https://test.pypi.org/p/ooxpy
|
|
95
|
+
permissions:
|
|
96
|
+
id-token: write
|
|
97
|
+
steps:
|
|
98
|
+
- uses: actions/download-artifact@v4
|
|
99
|
+
with:
|
|
100
|
+
name: dist
|
|
101
|
+
path: dist
|
|
102
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
103
|
+
with:
|
|
104
|
+
repository-url: https://test.pypi.org/legacy/
|
|
105
|
+
|
|
106
|
+
publish-pypi:
|
|
107
|
+
needs: [test-wheel, test-sdist]
|
|
108
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
109
|
+
runs-on: ubuntu-latest
|
|
110
|
+
environment:
|
|
111
|
+
name: pypi
|
|
112
|
+
url: https://pypi.org/p/ooxpy
|
|
113
|
+
permissions:
|
|
114
|
+
id-token: write
|
|
115
|
+
steps:
|
|
116
|
+
- uses: actions/download-artifact@v4
|
|
117
|
+
with:
|
|
118
|
+
name: dist
|
|
119
|
+
path: dist
|
|
120
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
ooxpy-0.5.2/CHANGELOG.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to ooxpy. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
|
+
[semantic versioning](https://semver.org/) from 1.0 (see docs/STABILITY.md).
|
|
6
|
+
|
|
7
|
+
## [0.5.0] — unreleased (first public release)
|
|
8
|
+
|
|
9
|
+
The first release on PyPI. It covers the roadmap's phases 0–4 and most of phase 3.
|
|
10
|
+
The Word, Excel and PowerPoint features below have cases in the Office check
|
|
11
|
+
corpus, all confirmed on Office 2007; Office 2016 opened every case without a
|
|
12
|
+
repair prompt (`tools/officecheck/reports/`). Strict-conformance files have been
|
|
13
|
+
checked with LibreOffice only.
|
|
14
|
+
|
|
15
|
+
### Core
|
|
16
|
+
|
|
17
|
+
- One factory per element for the whole Open XML SDK vocabulary (Word, Excel,
|
|
18
|
+
PowerPoint, DrawingML, VML and Microsoft's extension namespaces), with typed
|
|
19
|
+
stubs for IDE completion.
|
|
20
|
+
- Validation on construction (attributes, values, children, order), `validate()`
|
|
21
|
+
reports at two levels (`level="full"` matches whole content models), and
|
|
22
|
+
`validate(target="Office2007")` / `save(target=..., strip=True)` for older Office.
|
|
23
|
+
- Lossless editing: untouched parts are written back byte for byte; saves are
|
|
24
|
+
deterministic.
|
|
25
|
+
- Strict-conformance files are read and written; untrusted files are bounded
|
|
26
|
+
(`Limits`: zip bombs, DTDs, legacy and encrypted files give a `PackageError`).
|
|
27
|
+
- odfpy-compatible names (`addElement`, `teletype`, `load`, `OpenDocumentText()` …).
|
|
28
|
+
- The `oox` command: `validate`, `info`, `text`, `downgrade`.
|
|
29
|
+
|
|
30
|
+
### Word
|
|
31
|
+
|
|
32
|
+
- Default styles, settings, fonts, theme and page setup; headings, paragraphs,
|
|
33
|
+
runs with formatting, custom styles and effective formatting.
|
|
34
|
+
- Lists with Word's own numbering and the labels Word displays.
|
|
35
|
+
- Sections, headers and footers, page fields; hyperlinks, bookmarks, footnotes,
|
|
36
|
+
endnotes, comments; table of contents; find and replace across runs.
|
|
37
|
+
- Tables (merges, widths, header rows, cell formatting); inline and floating pictures
|
|
38
|
+
(PNG, JPEG, GIF, BMP, TIFF, EMF, WMF, SVG); text boxes.
|
|
39
|
+
- Tracked changes (suggest, list, accept, reject); fields (captions,
|
|
40
|
+
cross-references, document properties, dates) recomputed by oox; content
|
|
41
|
+
controls; document protection with Word's password hash.
|
|
42
|
+
- Charts with an embedded workbook.
|
|
43
|
+
|
|
44
|
+
### Excel
|
|
45
|
+
|
|
46
|
+
- Typed cells, formulas with cached results, dates, shared strings; fast reads.
|
|
47
|
+
- Cell styles and number formats (with `display_text` as Excel renders them),
|
|
48
|
+
column widths, row heights, merges, frozen panes, filters, names, data validation.
|
|
49
|
+
- Conditional formatting, tables with totals rows, comments, hyperlinks, print
|
|
50
|
+
setup, sheet options, sheet and workbook protection.
|
|
51
|
+
- Charts from cell ranges (combinations, secondary axes) and chart sheets.
|
|
52
|
+
|
|
53
|
+
### PowerPoint
|
|
54
|
+
|
|
55
|
+
- Office's eleven standard layouts; placeholders (text and pictures), text boxes,
|
|
56
|
+
shapes, pictures, tables (creating and editing), speaker notes, click links,
|
|
57
|
+
sections, charts.
|
|
58
|
+
|
|
59
|
+
### Fixed since the last internal build
|
|
60
|
+
|
|
61
|
+
- Text extraction (`teletype.extractText`, `oox text`) counted a Word text box's
|
|
62
|
+
text twice: once from Word 2010's shape, once from the VML copy kept for Word
|
|
63
|
+
2007. Fallback copies are now skipped, and `extractText(p, text_boxes=False)`
|
|
64
|
+
gives a paragraph's own text, as Word does.
|
|
65
|
+
- `TargetError` (raised by `save(target=...)`) is exported from `oox`.
|
|
66
|
+
- `oox.lenient()` now also accepts invalid attribute values when building elements, as
|
|
67
|
+
documented (it used to turn off only the checks for unknown attributes and children).
|
|
68
|
+
`validate()` reports such values whether or not it runs inside the block.
|
|
69
|
+
- A `Section` object taken before `add_section()` now keeps describing its own section
|
|
70
|
+
(it used to switch to the new one).
|
|
71
|
+
- `Section.set_margins` accepts EMU from `oox.units` (`left=Cm(2)`), as Word tables do;
|
|
72
|
+
plain numbers are still twips.
|
ooxpy-0.5.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ooxpy contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
ooxpy-0.5.2/MANIFEST.in
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# The sdist carries what the test suite needs (tests import tools/ and run examples/)
|
|
2
|
+
# plus the documentation sources; the wheel stays the library alone.
|
|
3
|
+
include CHANGELOG.md RELEASING.md mkdocs.yml
|
|
4
|
+
graft tests
|
|
5
|
+
graft tools
|
|
6
|
+
graft examples
|
|
7
|
+
graft docs
|
|
8
|
+
graft .github
|
|
9
|
+
prune site
|
|
10
|
+
prune dist
|
|
11
|
+
global-exclude *.py[cod] __pycache__ .DS_Store
|
ooxpy-0.5.2/NOTICE
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Generated files in src/oox/_generated and src/oox/ns are derived from the
|
|
2
|
+
Open XML SDK schema metadata (https://github.com/dotnet/Open-XML-SDK, data/),
|
|
3
|
+
pinned at 431ab05cf160248cc3885a4a766026d4f8243792 (2026-08-18).
|
|
4
|
+
|
|
5
|
+
The MIT License (MIT)
|
|
6
|
+
|
|
7
|
+
Copyright (c) .NET Foundation and Contributors
|
|
8
|
+
|
|
9
|
+
All rights reserved.
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
29
|
+
------------------------------------------------------------------------------
|
|
30
|
+
tests/test_odfpy_examples.py quotes and translates example scripts from odfpy
|
|
31
|
+
(https://github.com/eea/odfpy, examples/), used under the Apache License 2.0
|
|
32
|
+
(odfpy is licensed GPL-2.0-or-later OR Apache-2.0).
|
|
33
|
+
|
|
34
|
+
See docs/ATTRIBUTIONS.md for every source, library and specification used.
|
ooxpy-0.5.2/PKG-INFO
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ooxpy
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Summary: Office Open XML (docx, xlsx, pptx) the odfpy way: a factory per element, generated from the schemas, with validation
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/grhpas/ooxpy
|
|
7
|
+
Project-URL: Documentation, https://grhpas.github.io/ooxpy/
|
|
8
|
+
Project-URL: Source, https://github.com/grhpas/ooxpy
|
|
9
|
+
Project-URL: Issues, https://github.com/grhpas/ooxpy/issues
|
|
10
|
+
Keywords: docx,xlsx,pptx,ooxml,office open xml,word,excel,powerpoint,odfpy,ecma-376
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Topic :: Office/Business :: Office Suites
|
|
22
|
+
Classifier: Topic :: Text Processing :: Markup :: XML
|
|
23
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
+
Classifier: Typing :: Typed
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
License-File: NOTICE
|
|
29
|
+
Requires-Dist: lxml>=5.0
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
32
|
+
Requires-Dist: python-docx>=1.1; extra == "dev"
|
|
33
|
+
Requires-Dist: python-pptx>=1.0; extra == "dev"
|
|
34
|
+
Requires-Dist: openpyxl>=3.1; extra == "dev"
|
|
35
|
+
Requires-Dist: XlsxWriter>=3.2; extra == "dev"
|
|
36
|
+
Requires-Dist: ruff; extra == "dev"
|
|
37
|
+
Requires-Dist: pyright; extra == "dev"
|
|
38
|
+
Requires-Dist: pyyaml; extra == "dev"
|
|
39
|
+
Provides-Extra: docs
|
|
40
|
+
Requires-Dist: mkdocs<2,>=1.6; extra == "docs"
|
|
41
|
+
Requires-Dist: mkdocs-material<10,>=9.5; extra == "docs"
|
|
42
|
+
Requires-Dist: pymdown-extensions>=10; extra == "docs"
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
|
|
45
|
+
# ooxpy (`import oox`)
|
|
46
|
+
|
|
47
|
+
A schema-driven, **odfpy-style** library for Office Open XML (.docx, .xlsx, .pptx).
|
|
48
|
+
It has one factory function per element, generated from the Open XML SDK's
|
|
49
|
+
schema metadata, plus a runtime that validates your markup and keeps children
|
|
50
|
+
in schema order.
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
from oox import WordprocessingDocument
|
|
54
|
+
from oox.ns import w
|
|
55
|
+
|
|
56
|
+
doc = WordprocessingDocument.new()
|
|
57
|
+
doc.body.add(
|
|
58
|
+
w.P(w.PPr(w.Jc(val="center")), # order is fixed for you
|
|
59
|
+
w.R(w.RPr(w.Sz(val=48), w.B()), w.T("Hello, OOXML"))),
|
|
60
|
+
)
|
|
61
|
+
doc.save("hello.docx")
|
|
62
|
+
|
|
63
|
+
w.Jc(val="middle") # InvalidAttributeValue: w:val='middle' is not one of: left, start, center, right, end, both, ...
|
|
64
|
+
# (and your IDE offers those values: every factory ships with typed stubs)
|
|
65
|
+
w.P(w.Tbl()) # InvalidChild: <w:tbl> is not allowed in <w:p>; allowed: ...
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Excel and PowerPoint work the same way:
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from oox import SpreadsheetDocument, PresentationDocument
|
|
72
|
+
from oox.spreadsheet import Formula
|
|
73
|
+
from oox.units import Inches, Cm
|
|
74
|
+
|
|
75
|
+
book = SpreadsheetDocument.new("Sales")
|
|
76
|
+
book.append_row("Sales", ["Region", "Units", "Price", "Revenue"])
|
|
77
|
+
book.append_row("Sales", ["North", 120, 9.5, Formula("B2*C2")])
|
|
78
|
+
book.add_picture("Sales", "chart.png", anchor="F2", width=Cm(12))
|
|
79
|
+
book.save("sales.xlsx")
|
|
80
|
+
|
|
81
|
+
deck = PresentationDocument.new() # master, layout and theme included
|
|
82
|
+
slide = deck.add_slide()
|
|
83
|
+
deck.add_textbox(slide, Inches(1), Inches(0.5), Inches(11), Inches(1), "Regional sales", size=40)
|
|
84
|
+
deck.add_picture(slide, "chart.png", Inches(1), Inches(2), width=Inches(6))
|
|
85
|
+
deck.save("sales.pptx")
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Opening untrusted files is bounded (zip bombs, DTDs, legacy/encrypted files all give a
|
|
89
|
+
clear `PackageError`), Strict-conformance files are read and written, and
|
|
90
|
+
`doc.validate(target="Office2007")` checks a file against an older Office version.
|
|
91
|
+
|
|
92
|
+
Pictures (PNG, JPEG, GIF, BMP, TIFF, EMF, WMF, SVG) work in all three formats, and so
|
|
93
|
+
do charts (`book.add_chart("Sales", "column", "A1:D5")`, `doc.add_chart(...)`,
|
|
94
|
+
`deck.add_chart(...)`). `doc.save(path, target="Office2007")` refuses markup Office 2007
|
|
95
|
+
can't read; `strip=True` removes it.
|
|
96
|
+
|
|
97
|
+
From the command line:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
python -m oox validate report.docx --target Office2007 # problems per part; exit 1 if any
|
|
101
|
+
python -m oox info deck.pptx # kind, parts, sheets/slides, properties
|
|
102
|
+
python -m oox text book.xlsx # paragraphs / cells / slide texts and notes
|
|
103
|
+
python -m oox downgrade from-libreoffice.xlsx for-2007.xlsx
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Coming from odfpy?** The same method names work (`addElement`, `childNodes`,
|
|
107
|
+
`getElementsByType`, `teletype`, `load`, `save(name, True)`). See
|
|
108
|
+
[docs/odfpy.md](docs/odfpy.md).
|
|
109
|
+
|
|
110
|
+
## Install
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
pip install ooxpy
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Python 3.10 or newer; the only dependency is [lxml](https://lxml.de/).
|
|
117
|
+
|
|
118
|
+
## Documentation
|
|
119
|
+
|
|
120
|
+
The documentation lives in [`docs/`](docs/index.md): getting started, concepts, guides
|
|
121
|
+
for Word, Excel, PowerPoint and charts, a cookbook, the command line, migrating from
|
|
122
|
+
odfpy, Office compatibility and the API reference. Every code example in it runs in the
|
|
123
|
+
test suite. To read it as a site:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
pip install ".[docs]"
|
|
127
|
+
mkdocs serve
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
The [`examples/`](examples/) folder has ten runnable scripts, each with a short HTML
|
|
131
|
+
tutorial next to it (`examples/index.html`).
|
|
132
|
+
|
|
133
|
+
**Status:** 0.5.0, the first public release (alpha): the API may still change before
|
|
134
|
+
1.0 ([docs/STABILITY.md](docs/STABILITY.md)); changes are listed in
|
|
135
|
+
[CHANGELOG.md](CHANGELOG.md). The design and decision record is
|
|
136
|
+
[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md), the plan [docs/ROADMAP.md](docs/ROADMAP.md).
|
|
137
|
+
|
|
138
|
+
## Development
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
pip install -e ".[dev,docs]"
|
|
142
|
+
pytest # includes the docs' examples and a strict site build
|
|
143
|
+
python -m tools.apidocs # after changing docstrings: regenerate docs/reference
|
|
144
|
+
python -m tools.api_surface --write # after a deliberate public API change
|
|
145
|
+
|
|
146
|
+
# regenerate the grammar from a pinned Open XML SDK checkout
|
|
147
|
+
git clone --depth 1 --filter=blob:none --sparse https://github.com/dotnet/Open-XML-SDK.git ../sdk
|
|
148
|
+
git -C ../sdk sparse-checkout set data
|
|
149
|
+
python -m tools.gen --sdk-data ../sdk/data
|
|
150
|
+
OOX_SDK_DATA=../sdk/data pytest # also checks committed code == regenerated code
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
Generated code in `src/oox/_generated` and `src/oox/ns` comes from Open XML SDK
|
|
154
|
+
data (© .NET Foundation and Contributors, MIT). Every source, library and
|
|
155
|
+
specification we use is credited in [docs/ATTRIBUTIONS.md](docs/ATTRIBUTIONS.md).
|
ooxpy-0.5.2/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# ooxpy (`import oox`)
|
|
2
|
+
|
|
3
|
+
A schema-driven, **odfpy-style** library for Office Open XML (.docx, .xlsx, .pptx).
|
|
4
|
+
It has one factory function per element, generated from the Open XML SDK's
|
|
5
|
+
schema metadata, plus a runtime that validates your markup and keeps children
|
|
6
|
+
in schema order.
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from oox import WordprocessingDocument
|
|
10
|
+
from oox.ns import w
|
|
11
|
+
|
|
12
|
+
doc = WordprocessingDocument.new()
|
|
13
|
+
doc.body.add(
|
|
14
|
+
w.P(w.PPr(w.Jc(val="center")), # order is fixed for you
|
|
15
|
+
w.R(w.RPr(w.Sz(val=48), w.B()), w.T("Hello, OOXML"))),
|
|
16
|
+
)
|
|
17
|
+
doc.save("hello.docx")
|
|
18
|
+
|
|
19
|
+
w.Jc(val="middle") # InvalidAttributeValue: w:val='middle' is not one of: left, start, center, right, end, both, ...
|
|
20
|
+
# (and your IDE offers those values: every factory ships with typed stubs)
|
|
21
|
+
w.P(w.Tbl()) # InvalidChild: <w:tbl> is not allowed in <w:p>; allowed: ...
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Excel and PowerPoint work the same way:
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from oox import SpreadsheetDocument, PresentationDocument
|
|
28
|
+
from oox.spreadsheet import Formula
|
|
29
|
+
from oox.units import Inches, Cm
|
|
30
|
+
|
|
31
|
+
book = SpreadsheetDocument.new("Sales")
|
|
32
|
+
book.append_row("Sales", ["Region", "Units", "Price", "Revenue"])
|
|
33
|
+
book.append_row("Sales", ["North", 120, 9.5, Formula("B2*C2")])
|
|
34
|
+
book.add_picture("Sales", "chart.png", anchor="F2", width=Cm(12))
|
|
35
|
+
book.save("sales.xlsx")
|
|
36
|
+
|
|
37
|
+
deck = PresentationDocument.new() # master, layout and theme included
|
|
38
|
+
slide = deck.add_slide()
|
|
39
|
+
deck.add_textbox(slide, Inches(1), Inches(0.5), Inches(11), Inches(1), "Regional sales", size=40)
|
|
40
|
+
deck.add_picture(slide, "chart.png", Inches(1), Inches(2), width=Inches(6))
|
|
41
|
+
deck.save("sales.pptx")
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Opening untrusted files is bounded (zip bombs, DTDs, legacy/encrypted files all give a
|
|
45
|
+
clear `PackageError`), Strict-conformance files are read and written, and
|
|
46
|
+
`doc.validate(target="Office2007")` checks a file against an older Office version.
|
|
47
|
+
|
|
48
|
+
Pictures (PNG, JPEG, GIF, BMP, TIFF, EMF, WMF, SVG) work in all three formats, and so
|
|
49
|
+
do charts (`book.add_chart("Sales", "column", "A1:D5")`, `doc.add_chart(...)`,
|
|
50
|
+
`deck.add_chart(...)`). `doc.save(path, target="Office2007")` refuses markup Office 2007
|
|
51
|
+
can't read; `strip=True` removes it.
|
|
52
|
+
|
|
53
|
+
From the command line:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
python -m oox validate report.docx --target Office2007 # problems per part; exit 1 if any
|
|
57
|
+
python -m oox info deck.pptx # kind, parts, sheets/slides, properties
|
|
58
|
+
python -m oox text book.xlsx # paragraphs / cells / slide texts and notes
|
|
59
|
+
python -m oox downgrade from-libreoffice.xlsx for-2007.xlsx
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Coming from odfpy?** The same method names work (`addElement`, `childNodes`,
|
|
63
|
+
`getElementsByType`, `teletype`, `load`, `save(name, True)`). See
|
|
64
|
+
[docs/odfpy.md](docs/odfpy.md).
|
|
65
|
+
|
|
66
|
+
## Install
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install ooxpy
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Python 3.10 or newer; the only dependency is [lxml](https://lxml.de/).
|
|
73
|
+
|
|
74
|
+
## Documentation
|
|
75
|
+
|
|
76
|
+
The documentation lives in [`docs/`](docs/index.md): getting started, concepts, guides
|
|
77
|
+
for Word, Excel, PowerPoint and charts, a cookbook, the command line, migrating from
|
|
78
|
+
odfpy, Office compatibility and the API reference. Every code example in it runs in the
|
|
79
|
+
test suite. To read it as a site:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install ".[docs]"
|
|
83
|
+
mkdocs serve
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The [`examples/`](examples/) folder has ten runnable scripts, each with a short HTML
|
|
87
|
+
tutorial next to it (`examples/index.html`).
|
|
88
|
+
|
|
89
|
+
**Status:** 0.5.0, the first public release (alpha): the API may still change before
|
|
90
|
+
1.0 ([docs/STABILITY.md](docs/STABILITY.md)); changes are listed in
|
|
91
|
+
[CHANGELOG.md](CHANGELOG.md). The design and decision record is
|
|
92
|
+
[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md), the plan [docs/ROADMAP.md](docs/ROADMAP.md).
|
|
93
|
+
|
|
94
|
+
## Development
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pip install -e ".[dev,docs]"
|
|
98
|
+
pytest # includes the docs' examples and a strict site build
|
|
99
|
+
python -m tools.apidocs # after changing docstrings: regenerate docs/reference
|
|
100
|
+
python -m tools.api_surface --write # after a deliberate public API change
|
|
101
|
+
|
|
102
|
+
# regenerate the grammar from a pinned Open XML SDK checkout
|
|
103
|
+
git clone --depth 1 --filter=blob:none --sparse https://github.com/dotnet/Open-XML-SDK.git ../sdk
|
|
104
|
+
git -C ../sdk sparse-checkout set data
|
|
105
|
+
python -m tools.gen --sdk-data ../sdk/data
|
|
106
|
+
OOX_SDK_DATA=../sdk/data pytest # also checks committed code == regenerated code
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Generated code in `src/oox/_generated` and `src/oox/ns` comes from Open XML SDK
|
|
110
|
+
data (© .NET Foundation and Contributors, MIT). Every source, library and
|
|
111
|
+
specification we use is credited in [docs/ATTRIBUTIONS.md](docs/ATTRIBUTIONS.md).
|