Skip to content

Amourspirit/python-libreoffice-pip

Repository files navigation

Python LibreOffice Pip Extension Template

Introduction

This project is intended to be a template for developers of LibreOffice Extensions.

Need to create a quick cross platform extension that installs python packages requirements? If so you found the correct template.

If you only need to create an extension that installs one or more Python Packages into LibreOffice the no code experience is needed. Simply make a repo from the current template, change configuration, build and your done. A new LibreOffice extension has been generated that will install your python packages when it is installed into LibreOffice. See the Quick Start in the Wiki.

This project is also well suited for developers who want to create a LibreOffice Extension using Python and need to Pip install one or more requirements.

All the tools needed to develop, debug, and test are included in this template. A developer can use this template to create a LibreOffice Extension that uses Python and Pip install.

The extensions created with this template can be installed cross platform.

Tested on the following:

  • Windows
  • Windows LibreOffice Portable
  • Mac
  • Linux sudo installed LibreOffice
  • Linux Snap installed LibreOffice
  • Linux Flatpak installed LibreOffice
  • Linux AppImage LibreOffice

For more information see the Wiki

For a working example see the following extensions:

Original Template Readme

Live LibreOffice Python

Live LibreOffice Python is a complete development environment for creating, debugging and testing python scripts. It leverages the power of VS Code and has LibreOffice baked in that can be access via the internal web browser or via your local web browser which allows for a much more pleasant and consistent debugging experience.

With the power of GitHub Codespaces it is possible to have VS Code and LibreOffice running together. One big benefit is a isolated and VS Code/LibreOffice environment.

Locally a project based upon this template can also be run in a Development Container.

It is also possible to use GitHub CLI/CD to create a workflow that test your project with the presents of LibreOffice. This template has a working example of testing using GitHub CLI/CD.

There are Built in Tools such as gitget that allow you to quickly add examples to your project from sources such as LibreOffice Python UNO Examples. Also there is a built in console to help debug the API.

This templated can also be leveraged to demonstrate working examples of code.

image

Getting Started

See the Getting Started in the Wiki.

About

Template for creating LibreOffice Extensions that need pip install capability

Resources

License

Stars

Watchers

Forks