Write Open Document Foundation documents with Python.
Project description
msl-odt
Overview
msl-odt is a Python module for creating and modifying Open Document Text (.odt) files. It provides an interface for adding formatted text, tables, lists, equations, images, and other elements to an ODT document. The module uses the odfpy library for Open Document file manipulation and aims to follow PEP8 conventions.
Features
- Add Text and Headings: Supports adding paragraphs, heading levels 1 and 2, and handling special characters like
\tand\n. - Hyperlink Detection: Automatically converts URLs (starting with
http://orhttps://) in text to hyperlinks. - Page Breaks: Insert page breaks for document formatting.
- Table Support: Allows creating tables with customisable column widths, table widths, borders, and optional captions.
- Figure support: Supports adding images with specified dimensions and optional captions.
- Hierarchical Lists: Add bulleted or numbered lists with optional hierarchical levels for nested lists.
- Equation Support: Add equations using Star Math 5.0 notation, with options for setting frame size and text wrapping.
Installation
msl-odt is available for installation via the Python Package Index and may be installed with pip
To install the module, using pip:
pip install msl-odt
Examples
Examples on how to use the code are available
in the msl-odt repository and these examples
are also included with the msl-odt installation in the ../site-packages/msl/examples/msl-odt
directory of your Python interpreter.
The examples are provided as Python to allow users to cut-and-paste into their own code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file msl_odt-1.0.tar.gz.
File metadata
- Download URL: msl_odt-1.0.tar.gz
- Upload date:
- Size: 10.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
175d56cc1be48a5c5f3a6a8e90f004e1344835ea2d768273f76097739e6e7bb9
|
|
| MD5 |
ab894eac0f4f2263d342edfa1a2fdd9e
|
|
| BLAKE2b-256 |
dbe6cc970c56ce14c791482a72eb2f6e1abdcfa8341f5fef8d842cf29c422a28
|
File details
Details for the file msl_odt-1.0-py3-none-any.whl.
File metadata
- Download URL: msl_odt-1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4c40c8be0d1a435c8160f0997f25ac6f4de7a3ee06bae63e8b21e12a3018624
|
|
| MD5 |
a6620b65703e2b688e35bbe77136e571
|
|
| BLAKE2b-256 |
0013d1c0263c5b362f53f49b1dd4a938d5c6ecdc1f0d0ef7913c08f25c3bf0b6
|