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).
  • Documentation is provided by 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

Installation

python3 -m pip install odoc

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.0b2.tar.gz (48.2 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.0b2-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for odoc-0.7.0b2.tar.gz
Algorithm Hash digest
SHA256 98a20f6c99fade3e1acc0cef92ba8fd9eb7ed461d5a77076ab8294d1d0657b44
MD5 8f4f6acad4830c36396e4e2a420375e2
BLAKE2b-256 73cd5d9879ade07b8d181785d758053474ca6d6d09438561912c0bbc3acf2f37

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for odoc-0.7.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba0c98e9461d04ce0a73e057f05f75861de1f1b5f4af719925a2091f47d10146
MD5 35ed2aeb975cd77ab9101bf7462a2c8d
BLAKE2b-256 50adefa73b7a2476e689d1a7a9eaa38b227e90b4928119c1c6cb8c4b8a6ca78f

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