Odfpy is a library to read and write OpenDocument v1.2 files. The main focus

has been to prevent the programmer from creating invalid documents. It has
checks that raise an exception if the programmer adds an invalid element, adds
an attribute unknown to the grammar, forgets to add a required attribute or
adds text to an element that doesn't allow it.

These checks and the API itself were generated from the RelaxNG schema, and
then hand-edited. Therefore the API is complete and can handle all ODF
constructions.
This commit is contained in:
adam 2017-09-04 19:50:16 +00:00
parent 2b400ea9e9
commit 1d78ce7798
5 changed files with 151 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.952 2017/09/04 19:46:26 adam Exp $
# $NetBSD: Makefile,v 1.953 2017/09/04 19:50:16 adam Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@ -774,6 +774,7 @@ SUBDIR+= py-mkdocs-bootstrap
SUBDIR+= py-mkdocs-bootswatch
SUBDIR+= py-natsort
SUBDIR+= py-numpydoc
SUBDIR+= py-odfpy
SUBDIR+= py-openpyxl
SUBDIR+= py-pandocfilters
SUBDIR+= py-pdf-parser

9
textproc/py-odfpy/DESCR Normal file
View file

@ -0,0 +1,9 @@
Odfpy is a library to read and write OpenDocument v1.2 files. The main focus
has been to prevent the programmer from creating invalid documents. It has
checks that raise an exception if the programmer adds an invalid element, adds
an attribute unknown to the grammar, forgets to add a required attribute or
adds text to an element that doesn't allow it.
These checks and the API itself were generated from the RelaxNG schema, and
then hand-edited. Therefore the API is complete and can handle all ODF
constructions.

View file

@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.1 2017/09/04 19:50:16 adam Exp $
DISTNAME= odfpy-1.3.5
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=o/odfpy/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/eea/odfpy
COMMENT= Python API and tools to manipulate OpenDocument files
LICENSE= gnu-gpl-v2
USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

118
textproc/py-odfpy/PLIST Normal file
View file

@ -0,0 +1,118 @@
@comment $NetBSD: PLIST,v 1.1 2017/09/04 19:50:16 adam Exp $
bin/csv2ods
bin/mailodf
bin/odf2mht
bin/odf2xhtml
bin/odf2xml
bin/odfimgimport
bin/odflint
bin/odfmeta
bin/odfoutline
bin/odfuserfield
bin/xml2odf
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/odf/__init__.py
${PYSITELIB}/odf/__init__.pyc
${PYSITELIB}/odf/__init__.pyo
${PYSITELIB}/odf/anim.py
${PYSITELIB}/odf/anim.pyc
${PYSITELIB}/odf/anim.pyo
${PYSITELIB}/odf/attrconverters.py
${PYSITELIB}/odf/attrconverters.pyc
${PYSITELIB}/odf/attrconverters.pyo
${PYSITELIB}/odf/chart.py
${PYSITELIB}/odf/chart.pyc
${PYSITELIB}/odf/chart.pyo
${PYSITELIB}/odf/config.py
${PYSITELIB}/odf/config.pyc
${PYSITELIB}/odf/config.pyo
${PYSITELIB}/odf/dc.py
${PYSITELIB}/odf/dc.pyc
${PYSITELIB}/odf/dc.pyo
${PYSITELIB}/odf/dr3d.py
${PYSITELIB}/odf/dr3d.pyc
${PYSITELIB}/odf/dr3d.pyo
${PYSITELIB}/odf/draw.py
${PYSITELIB}/odf/draw.pyc
${PYSITELIB}/odf/draw.pyo
${PYSITELIB}/odf/easyliststyle.py
${PYSITELIB}/odf/easyliststyle.pyc
${PYSITELIB}/odf/easyliststyle.pyo
${PYSITELIB}/odf/element.py
${PYSITELIB}/odf/element.pyc
${PYSITELIB}/odf/element.pyo
${PYSITELIB}/odf/elementtypes.py
${PYSITELIB}/odf/elementtypes.pyc
${PYSITELIB}/odf/elementtypes.pyo
${PYSITELIB}/odf/form.py
${PYSITELIB}/odf/form.pyc
${PYSITELIB}/odf/form.pyo
${PYSITELIB}/odf/grammar.py
${PYSITELIB}/odf/grammar.pyc
${PYSITELIB}/odf/grammar.pyo
${PYSITELIB}/odf/load.py
${PYSITELIB}/odf/load.pyc
${PYSITELIB}/odf/load.pyo
${PYSITELIB}/odf/manifest.py
${PYSITELIB}/odf/manifest.pyc
${PYSITELIB}/odf/manifest.pyo
${PYSITELIB}/odf/math.py
${PYSITELIB}/odf/math.pyc
${PYSITELIB}/odf/math.pyo
${PYSITELIB}/odf/meta.py
${PYSITELIB}/odf/meta.pyc
${PYSITELIB}/odf/meta.pyo
${PYSITELIB}/odf/namespaces.py
${PYSITELIB}/odf/namespaces.pyc
${PYSITELIB}/odf/namespaces.pyo
${PYSITELIB}/odf/number.py
${PYSITELIB}/odf/number.pyc
${PYSITELIB}/odf/number.pyo
${PYSITELIB}/odf/odf2moinmoin.py
${PYSITELIB}/odf/odf2moinmoin.pyc
${PYSITELIB}/odf/odf2moinmoin.pyo
${PYSITELIB}/odf/odf2xhtml.py
${PYSITELIB}/odf/odf2xhtml.pyc
${PYSITELIB}/odf/odf2xhtml.pyo
${PYSITELIB}/odf/odfmanifest.py
${PYSITELIB}/odf/odfmanifest.pyc
${PYSITELIB}/odf/odfmanifest.pyo
${PYSITELIB}/odf/office.py
${PYSITELIB}/odf/office.pyc
${PYSITELIB}/odf/office.pyo
${PYSITELIB}/odf/opendocument.py
${PYSITELIB}/odf/opendocument.pyc
${PYSITELIB}/odf/opendocument.pyo
${PYSITELIB}/odf/presentation.py
${PYSITELIB}/odf/presentation.pyc
${PYSITELIB}/odf/presentation.pyo
${PYSITELIB}/odf/script.py
${PYSITELIB}/odf/script.pyc
${PYSITELIB}/odf/script.pyo
${PYSITELIB}/odf/style.py
${PYSITELIB}/odf/style.pyc
${PYSITELIB}/odf/style.pyo
${PYSITELIB}/odf/svg.py
${PYSITELIB}/odf/svg.pyc
${PYSITELIB}/odf/svg.pyo
${PYSITELIB}/odf/table.py
${PYSITELIB}/odf/table.pyc
${PYSITELIB}/odf/table.pyo
${PYSITELIB}/odf/teletype.py
${PYSITELIB}/odf/teletype.pyc
${PYSITELIB}/odf/teletype.pyo
${PYSITELIB}/odf/text.py
${PYSITELIB}/odf/text.pyc
${PYSITELIB}/odf/text.pyo
${PYSITELIB}/odf/thumbnail.py
${PYSITELIB}/odf/thumbnail.pyc
${PYSITELIB}/odf/thumbnail.pyo
${PYSITELIB}/odf/userfield.py
${PYSITELIB}/odf/userfield.pyc
${PYSITELIB}/odf/userfield.pyo
${PYSITELIB}/odf/xforms.py
${PYSITELIB}/odf/xforms.pyc
${PYSITELIB}/odf/xforms.pyo

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2017/09/04 19:50:16 adam Exp $
SHA1 (odfpy-1.3.5.tar.gz) = 2e7c62f4cd1d0155a6eaa175f101fa9757901a36
RMD160 (odfpy-1.3.5.tar.gz) = c2577581fcfe24392cf0cebfb14e7acd3ec7ad41
SHA512 (odfpy-1.3.5.tar.gz) = cd04c3323a82eff68aa05822443d387476b0aa1f7ab89b12f29f21dd3b64be65ed0545ce2d126d4f03382143d094a67a7ba7b1b1a91d5ff2bc94495bcf1bff23
Size (odfpy-1.3.5.tar.gz) = 492825 bytes