All notable changes to this project will be documented in this file.
- Feature: force cell_value_by_index() return type OO's getType() method doesn't always return the type you want (particularly for dates or formulas), but this allows you to force a return of a cell's string, value, or formula.
Thanks to: Small-Star
- No more
Side-effect
for a@property
methods. - Check function arguments and raise a
ValueError
on errors. - New
__enter__
and__exit__
methods in theDocument
class according to PEP 0343 (the “with” statement). - More comments in the
./src/examples/example.py
file.
- Some class methods are changed into a properties via the decorator
@property
:- Document.is_null() -> Document.is_null
- Document.version() -> Document.version
- Fields.is_null() -> Fields.is_null
- Fields.count() -> Fields.count
- Field.is_null() -> Field.is_null
- Sheets.is_null() -> Sheets.is_null
- Sheets.count() -> Sheets.count
- Sheet.is_null() -> Sheet.is_null
- In the function
start_office_instance
print output changed into exception raise on errors.
Sorry for no back compatibility, I guess that's was the last time.
Some class methods are changed to be as properties via decorator
@property
.
#####Old code: doc.sheets().insert_spreadsheet("Test1", 0)
doc.fields().field("FIELD_1")
#####New code: doc.sheets.insert_spreadsheet("Test1", 0)
doc.fields.field("FIELD_1")
####Changed methods:
- Document.o_doc() -> Document.o_doc
- Document.sheets() -> Document.sheets
- Document.fields() -> Document.fields
- Fields.document() -> Fields.document
- Sheets.o_sheets() -> Sheets.o_sheets
autostart
option in the constructor.
Auto starts Libre/Open Office with a listening socket.
Example:
doc = pyoocalc.Document(autostart=True)