Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PRIMO - The P&A Project Optimizer Toolkit

PRIMO - The Oil & Gas Well Plugging Optimizer supports decision makers (state agencies, large-scale well operators, plugging companies, etc.) to (1) prioritize end-of-life wells for Plugging & Abandonment (P&A) operations, (2) design high-impact and/or high-efficiency P&A projects, and (3) compare P&A projects in an unbiased, fully transparent, and defensible way.

Project Status

PyPI - Python Version Pypi Checks codecov Black Imports: isort Documentation Status Contributors Merged PRs Issue stats Downloads

Getting Started

Our complete documentation is available on readthedocs, but here is a summarized set of steps to get started using the framework.

While not required, we encourage the installation of Anaconda or Miniconda and using the conda command to create a separate python environment in which to install the PRIMO Toolkit.

Regular users can use conda to create a new "primo" environment.

conda env create -f conda-env.yml

This creates a new conda environment with the name "primo" that comes installed with all required dependencies to solve PRIMO's optimization problems.

Developers can create a new "primo" environment by executing:

conda env create -f conda-env-dev.yml

Activate the new environment with:

conda activate primo

To test the installation of the primo package, execute:

pytest primo\utils\tests\test_imports.py

The above test, if executed successfully, confirms that primo package is now installed and available in the "primo" package that was just created.

To use the utilities implemented in the PRIMO package that query the U.S. Census API, an appropriate API key must be obtained by signing up with the respective service. These keys must be configured in a .env file in the parent directory. For more details, please see: API Keys

Additionally, use of elevation based utilities requires the user to provide a GeoTIFF file that provides elevation data across the region of interest. Users can download this data from USGS Science Data Catalog. For more details, please see: Elevation Data

Users can also employ other commercial solvers, for example Gurobi, to solve the optimization problem. However, users are responsible for configuring and setting up these solvers themselves.

Running PRIMO with Binder

You can run PRIMO with Binder: a public cloud service that provides a temporary and short-lived sandbox environment to run PRIMO without installing any software locally.

Quickstart

You can launch the Binder environment by clicking on the following badge: Binder

Key Notes

  • Binder environments are automatically destroyed after a few minutes of inactivity. To avoid lost work, please download the notebook file on your local machine periodically.
  • The Binder provided environment is public and insecure. Please do not use this environment to work with sensitive data.

Funding acknowledgements

This work is funded by DOE program grant DE-FOA-003109.

Contributing

By contributing to this repository, you are agreeing to all the terms set out in the LICENSE.md and COPYRIGHT.md files in this directory.

Metadata

Release files for primo-optimizer 0.4.10rc2

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

Source distribution (sdist)

Source distribution for primo-optimizer 0.4.10rc2
File Size Uploaded Provenance Actions
primo_optimizer-0.4.10rc2.tar.gz 234.3 kB With provenance Details for primo_optimizer-0.4.10rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for primo-optimizer 0.4.10rc2
File Interpreter ABI Platform Actions
primo_optimizer-0.4.10rc2-py3-none-any.whl Python 3 none any Details for primo_optimizer-0.4.10rc2-py3-none-any.whl

Total release size: 515.0 kB

Release files / primo_optimizer-0.4.10rc2.tar.gz

Download URL primo_optimizer-0.4.10rc2.tar.gz
Size 234.3 kB
Tags Source
SHA-256 checksum
How to use checksums
696cbe59ebb68e73684a0e8e51e83810f1b45e2d2d037d294b76bd5c900bb27c
BLAKE2b-256 checksum
How to use checksums
dc87179706c712b86f5fa052a9e309af9330ff428ef500546c11ae2f1d91cffc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / primo_optimizer-0.4.10rc2-py3-none-any.whl

Download URL primo_optimizer-0.4.10rc2-py3-none-any.whl
Size 280.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e765983f6f876eea4e4bb69fa5a2ca3c1ec4472a93dc9ba35a46c2fa7d180eae
BLAKE2b-256 checksum
How to use checksums
8cb6259e1f31b3e06a04826db043de02b7b120287fd2aa15b486445c454c0ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for primo-optimizer 0.4.10rc2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for primo_optimizer-0.4.10rc2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

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.

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