Skip to main content

Configures a project python environment for LibreOffice UNO.

Project description

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.

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

oooenv-0.2.2.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

oooenv-0.2.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file oooenv-0.2.2.tar.gz.

File metadata

  • Download URL: oooenv-0.2.2.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.5 Linux/5.19.0-45-generic

File hashes

Hashes for oooenv-0.2.2.tar.gz
Algorithm Hash digest
SHA256 86044c2de7ed2e24c1d683c6b2351fa2a0d79dd78587653be68625af76bf5817
MD5 e97e348f4b395a07a36c29f6828b046a
BLAKE2b-256 96601e4ce87aff455c1e63b009fd854fba016cfad8f2b3158ad1529f6941dc21

See more details on using hashes here.

File details

Details for the file oooenv-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: oooenv-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.5 Linux/5.19.0-45-generic

File hashes

Hashes for oooenv-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ff74a5c9c33220f42246a01b4585290bb8a089f3f4fd8d233ddf3a4beb620e4
MD5 171ad4716b0adff609fef580b9b0a81c
BLAKE2b-256 69bbfe03feb628dd551537b67a1ce73f71508a2e3be0dba2355a263af0a3bdea

See more details on using hashes here.

Supported by

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