Skip to main content

OMSimulator Python package

The OMSimulator Python package provides the Python bindings for OMSimulator.

The package can be installed in two ways:

  1. Standard installation — the package downloads the appropriate OMSimulator binaries from pip repository which is part of pip release

  2. Local installation — the package is prepared from the OMSimulator build and install tree without downloading any binaries.

Standard installation

pip install OMSimulator

The package also contains the standalone OMSimulatorGui. Its own requirements (PySide6, pyqtgraph and scipy) are not installed by default; install them with the gui extra, which is also enough when OMSimulator is already installed:

pip install OMSimulator[gui]

Then start the GUI with:

python -m OMSimulatorGui

If the requirements are missing, the GUI says so and prints this install command.

Building the source distribution (sdist)

The sdist is built by CMake; the binaries are not part of it, they are downloaded when the package is installed.

cmake -S . -B build -DOMS_ENABLE_PIP=ON
cmake --build build

The sdist is written to src/pip/install/dist/. Building it needs the Python build module (pip install build). Test it in a fresh virtual environment:

python -m venv oms-pip-test
oms-pip-test/bin/python -m pip install "src/pip/install/dist/<file>.tar.gz[gui]"

OMSimulator-local-pip

The local pip installation builds the OMSimulator Python package from the locally installed OMSimulator binaries.

Unlike the standard pip installation, the local installation does not download OMSimulator binaries from the internet. The Python package is prepared directly from the current CMake build and install tree.

This is useful when developing OMSimulator or testing Python bindings against a locally built version.

src/pip/install/     prepared local pip package
pyproject.toml       Python package configuration
OMSimulator/         Python package and native OMSimulator library
OMSimulatorGui/      the standalone GUI
schema/              OMSimulator schema files

Running the local pip installation

Configure the project with OMS_ENABLE_LOCAL_PIP=ON

cmake -S . -B build -DOMS_ENABLE_LOCAL_PIP=ON
cmake --build build
cmake --install build

Install the local Python package

After the CMake installation has prepared the package, it can be installed with:

cd src/pip/install
python -m pip install .

Alternatively, CMake provides a dedicated pip_install target:

cmake --build build --target pip_install

Metadata

Release files for OMSimulator 3.0.0.post214

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

Source distribution (sdist)

Source distribution for OMSimulator 3.0.0.post214
File Size Uploaded Provenance Actions
omsimulator-3.0.0.post214.tar.gz 9.2 kB Without provenance Details for omsimulator-3.0.0.post214.tar.gz

Release files / omsimulator-3.0.0.post214.tar.gz

Download URL omsimulator-3.0.0.post214.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
44b8e3b2444147d77f23308ae0851b0bcc92c2c812b4382dbc81cfe6859ce056
BLAKE2b-256 checksum
How to use checksums
f073d17f47fbab008bfe60cd104b5cfa0e6a4d5882dd29f0dc88745ba34e2551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for OMSimulator 3.0.0.post214

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.0.post214 This release

1 release file No provenance

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