Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
.. image:: https://travis-ci.org/T0ha/ezodf.svg?branch=master :target: https://travis-ci.org/T0ha/ezodf If you want to support us
.. image:: https://api.flattr.com/button/flattr-badge-large.png :target: https://flattr.com/submit/auto?user_id=t0ha&url=https://github.com/T0ha/ezodf&title=ezodf&language=python&tags=github&category=software
ezodf is a Python package to create new or open existing OpenDocument (ODF) files to extract, add, modify or delete document data.
a simple example::
from ezodf import newdoc, Paragraph, Heading, Sheet
odt = newdoc(doctype='odt', filename='text.odt')
odt.body += Heading("Chapter 1")
odt.body += Paragraph("This is a paragraph.")
odt.save()
ods = newdoc(doctype='ods', filename='spreadsheet.ods')
sheet = Sheet('SHEET', size=(10, 10))
ods.sheets += sheet
sheet['A1'].set_value("cell with text")
sheet['B2'].set_value(3.141592)
sheet['C3'].set_value(100, currency='USD')
sheet['D4'].formula = "of:=SUM([.B2];[.C3])"
pi = sheet[1, 1].value
ods.save()
for more examples see: /examples folder
lxml http://codespeak.net/lxml/ for painless serialisation with prefix declaration (xlmns:prefix="global:namespace:specifier") in the root element. Declarations for unused prefixes are also possible.
nose https://nose.readthedocs.org for testing
For CPython 2.6 compatibility:
weakrefset https://pypi.python.org/pypi/weakrefset for fixing incompatibility with weakref module before 2.7
unittest2 https://pypi.python.org/pypi/unittest2 for asserts like in python 2.7+
The target platform is CPython 2.7 and CPython 3.2+, work on compability with CPython 2.6 is in progress.
with pip::
pip install ezodf
or from source::
python setup.py install
http://packages.python.org/ezodf
send feedback to t0hashvein@gmail..com
ezodf can be found on GitHub at:
Version 0.3.1 - December 2015
Version 0.3.0 - November 2014
Version 0.2.5 - Juli 2012
Version 0.2.4 - June 2012
Version 0.2.3 - January 2012
Version 0.2.2 - March 2011
Version 0.2.1 - 06 February 2011
Version 0.2.0 - 18 January 2011
Version 0.1.0 - 02 January 2011
FAQs
A Python package to create/manipulate OpenDocumentFormat files.
We found that ezodf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.