Skip to main content

An OpenDocument Spreadsheet Generator

Project description

odoc - OpenDocument Spreadsheet Generator

A lightweight spreadsheet generator, which targets LibreOffice.

Aims to provide an easy and painless way to create spreadsheets, without having to dive into the details of the OpenDocument format.

Limitations:

  • odoc is for the creation of documents only. It does not read them, nor does it allow to interact with them, or edit them programatically.
  • Charts are not supported (yet).
  • The documentation sucks - as there is non. But, there are example files, which cover all aspects of odoc.
  • No macro support.

Capabilities:

  • Supports most styling options
  • Named cells and ranges
  • Conditional formating
  • Images
  • Cell comments
  • Merged cells
  • Array-formulas

Example

from odoc import Calc

doc = Calc()
sheet = doc['Sheet1']

sheet[0,0] = 'Apples'
sheet[0,1] = 5

sheet[1,0] = 'Oranges'
sheet[1,1] = 7

sheet[2,0] = 'Total'
sheet[2,1] = f'=sum({sheet[0:1,1].address()})'

doc.save('sample.ods')

Requirements

Python >= 3.11

License

The project uses the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

odoc-0.7.0b0.tar.gz (47.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoc-0.7.0b0-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file odoc-0.7.0b0.tar.gz.

File metadata

  • Download URL: odoc-0.7.0b0.tar.gz
  • Upload date:
  • Size: 47.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for odoc-0.7.0b0.tar.gz
Algorithm Hash digest
SHA256 1a84ca9b67c0d90fff306c29254d4b1c7321a0c83f281fb20818cf5dac9bbb61
MD5 0ad05ae3cb71421162b035efb4a68db8
BLAKE2b-256 4dd0d33722c1094cd0818cb000e5bcae564e9eec587a4f52eae5c9d5a70599bb

See more details on using hashes here.

File details

Details for the file odoc-0.7.0b0-py3-none-any.whl.

File metadata

  • Download URL: odoc-0.7.0b0-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for odoc-0.7.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 154ff39b6e31f0ec989f6d0661e5ecd871f96313b3349ded69a990bddaa7a716
MD5 b483e66709f2b84a43dacfa42f01b647
BLAKE2b-256 64fba3ed3b67cda8b92a17aeeae3bcc9298a6e730aec80bbcbf0088aa45a08db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page