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.post218

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.post218
File Size Uploaded Provenance Actions
omsimulator-3.0.0.post218.tar.gz 9.0 kB Without provenance Details for omsimulator-3.0.0.post218.tar.gz

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

Download URL omsimulator-3.0.0.post218.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d4e19d5e4e2c7a6a97d24ce94369705c1c19ceadbea9761d88cac53b3464f695
BLAKE2b-256 checksum
How to use checksums
b081b755154e1f09d4f1bee187d6a9d2a92fd2709279acca01a9715b5a597274
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for OMSimulator 3.0.0.post218

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.post218 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