Skip to main content

OOOENV

This project is strictly for LibreOffice python projects that need to set UNO environment.

A project as OOO Development Tools would use this project

See also:

Installation

oooenv PyPI

pip install oooenv

Usage

View command options

oooenv -h

Linux/Mac

In Linux and Mac all that is needed to run a project that requires LibreOffice UNO is to link the UNO files into virtual environment.

To add UNO links to virtual environment run command:

oooenv cmd-link -a

To remove UNO links from virtual environment run command:

oooenv cmd-link -r

Windows

Windows python projects cannot use linking to UNO Files.

In Windows the virtual environment configuration file is manipulated.

The Follow command toggles between original configuration and UNO environment configuration.

oooenv env -t

To update the configuration to match the installed version of LibreOffice's python.

This command should not be run until oooenv env -t has be run at least once.

oooenv update --update

If virtual environment is managed by Poetry then it will be necessary to toggle into original config before running poetry update.

When updates are done just run command again to toggle back to UNO environment configuration.

Environment Variables

Special environment variables can be set. These are completely optional. This can be useful for docker containers.

  • OOOENV_LO_UNO_PATH The path where uno.py is located.
  • OOOENV_LO_PROGRAM_PATH The path to LibreOffice such as C:\Program Files\LibreOffice\program or /usr/lib/libreoffice/program.
  • OOOENV_LO_PROGRAM_PATH The path to LibreOffice installed directory, such as C:\Program Files\LibreOffice or /usr/lib/libreoffice.
  • OOOENV_LO_PY_EXE The path to LibreOffice Python. On Windows this is usually C:\Program Files\LibreOffice\program\python.exe and Linux is usually the virtual environment's python.
  • OOOENV_VIRTUAL_ENV The path containing the virtual environment for your project. Usually this is venv or .venv.`
  • OOOENV_SITE_PACKAGES The site packages directory of the virtual environment for your project.

Metadata

Release files for oooenv 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oooenv 0.2.4
File Size Uploaded
oooenv-0.2.4.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oooenv 0.2.4
File Interpreter ABI Platform
oooenv-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 36.0 kB

Release files / oooenv-0.2.4.tar.gz

Download URL oooenv-0.2.4.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ec9c864d6165b87d18dbf008c01cf8e3d941565003799ce5e7e748abc5d57c0f
BLAKE2b-256 checksum
How to use checksums
10ad4c46a0792b6d55fe06d5c6d7dcae6484a5f3299fc109761b03a76f3c9072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.5 Linux/6.5.0-28-generic

Release files / oooenv-0.2.4-py3-none-any.whl

Download URL oooenv-0.2.4-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e17a57661cf12d60f1d1ce5ed1db2aed4e441f0c85f09bc2ac0636d64c5925f3
BLAKE2b-256 checksum
How to use checksums
7c7c7241739f517e95be478e2848c00564237536e9d90ff53055bd7744b82868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.5 Linux/6.5.0-28-generic

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page