Python SDK overview¶
The Nextmv Python SDK (nextmv) is a free and open-source library to
interact programmatically with the Nextmv Platform from Python. There
are three main packages (or namespaces) in the SDK:
nextmv(root): modeling constructs to work with decision models in an opinionated way.nextmv.cloud: functionality to interact with Nextmv Cloud, e.g., to run decision models remotely, perform experimentation, testing, versioning, and more.nextmv.local: functionality to run and interact with decision models locally, i.e., on your machine.
Please refer to each of the sections in this documentation for more details on each of these packages.
Installation¶
The library is hosted on PyPI. Python >=3.10. Install using
the Python package manager of your choice:
Examples¶
A great way to get started is to check out the community apps. The following apps are a non-exhaustive list of concrete examples for using this SDK:
python-ampl-facilitylocation,python-ampl-knapsack,python-ampl-priceoptimizationpython-gurobi-knapsackpython-hello-worldpython-hexaly-knapsackpython-highs-knapsackpython-nextroutepython-ortools-costflow,python-ortools-demandforecasting,python-ortools-knapsack-multicsv,python-ortools-knapsack,python-ortools-routing,python-ortools-shiftassignment,python-ortools-shiftplanningpython-pyomo-knapsack,python-pyomo-shiftassignment,python-pyomo-shiftplanningpython-pyoptinterface-knapsackpython-pyvroom-routingpython-xpress-knapsack