Completor®
Completor® is an Equinor developed Python Command Line Interface (CLI) for modeling wells with inflow control technology.
Introduction
Completor® reads the multi-segmented tubing definition generated by reservoir modelling pre-processing tool and a user defined file (called "case" file) specifying the completion design. The information in the input schedule file and the case file is combined and written to a new schedule file to be included in your reservoir simulator.
Documentation
Detailed documentation for usage of completor can be found at https://equinor.github.io/completor.
Getting started as a user
Prerequisites
- Python, version 3.11, 3.12 or 3.13.
- pandas, version 2.2 or later, including 3.x (installed automatically).
- ERT (optional, and only available on Linux.)
Completor supports pandas >=2.2,<4. When installing the optional ERT integration,
the selected ERT release may impose a narrower pandas version range.
Installation
To start using Completor®, you can follow these instructions:
git clone https://github.com/equinor/completor.git
cd completor
python3 -m venv venv
source venv/bin/activate
pip install -e .
If you intend to run completor as a plugin to ert:
git clone https://github.com/equinor/completor.git
cd completor
python -m venv venv
source venv/bin/activate
pip install -e ".[ert]"
Ensure it runs as intended, confirm it with:
completor --help
This should run for some time and display a help message.
Create and run your first model
Some examples of Completor case file are available in Examples and detailed explanation is available in Configuration.
References
Some technical paper related to Completor and ICV Control applications are available to read and cite:
- Handita Sutoyo, Filippo Panini, Cuthbert Shang Wui Ng, Martin Halvorsen, Geir Elseth, Ingvild Berg Martiniussen, Corentin Cochard, Erik Johan Helland, Sean Robert Smith, and Lene Amundsen. "Maximize Value from Inflow Control Technology Implementations Through Novel Standardized Workflow and Open-Source Modelling Tool." Paper presented at the OTC Brasil, Rio de Janeiro, Brazil, October 2025. doi: 10.4043/36167-MS
- Handita Sutoyo, Mathias Bellout, Margrete Hånes, and Rodolfo Oliveira. "Ensemble-Based Proactive Optimization using a Reactive Strategy for ICV Control." Paper presented at the SPE Norway Subsurface Conference, Bergen, Norway, April 2024. doi: 10.2118/218472-MS
Getting started as a contributor
Contribution guide
We welcome all kinds of contributions, including code, bug reports, issues, feature requests, and documentation. The preferred way of submitting a contribution is to either make an issue on GitHub or by forking the project on GitHub and making a pull request.
See Contribution Document on how to contribute.
Install completor as dev
In order to run Completor® you need to have versions of Python 3.11, 3.12 or 3.13 installed.
Source code
Clone the Completor® repository to get the source code.
git clone https://github.com/equinor/completor.git
cd completor
Pipx
Install pipx, although it's optional next step assumes pipx is installed, check poetry docs for other installation options.
Linux:
python3 -m pip install --user pipx
python3 -m pipx ensurepath
Windows:
python -m pip install --user pipx
# replace python with python3 if installed from Windows app store.
Mac:
brew install pipx
pipx ensurepath
Install Poetry:
For options other than pipx see poetry documentation Open a new terminal/tab then
pipx install poetry
Let Poetry install all dependencies for you.
poetry install
If you're in a Linux environment add the extra Ert dependencies!
poetry install -E ert
Activate poetryenv (or use venv if that is more familiar, poetry should respect it as an environment):
poetry shell
Now you should be able to check that everything is installed correctly by running
pytest
in the activated poetry shell.
Information regarding integration with PyCharm can be found here: https://www.jetbrains.com/help/pycharm/poetry.html#poetry-env More info on viewing your environment information can be found here: https://python-poetry.org/docs/managing-environments/#switching-between-environments
Poetry support completion scripts for Bash, Fish and Zsh detailed information can be found here.
Pre-commit
This project makes use of pre-commit to ensure commits adhere to certain rules and standards.
Pre-commit should already be installed in the poetry install command, but you need to activate the hooks like so:
pre-commit install
If for some reason this is not working correctly you can install pre-commit separately like this:
pipx install pre-commit
pre-commit install
Now pre-commit should be a constant nuisance, bothering you with some minor change each time you want to commit. Although annoying this is preferable to having lots of minor quirks in the code, such as trailing whitespace everywhere. Just run git commit a second time, remembering to add the changes made by pre-commit and you should be mostly good!
Git hook scripts are useful for identifying simple issues before submission to code review. Run hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements. By pointing these issues out before code review, this allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks. Black will style your code automatically to match the Black code style, and Flake8 will check your code for style, syntax, and logical errors. Remember to add the changes made by the scripts to your commit.
Running unit- and integration tests
This project uses pytest for unit and integration testing. Run it before every push to make sure your code is working as intended. To run all tests discovered by pytest, run the following command when in the root folder
Recommended settings/launch args: This makes the tests run in parallel and in turn go a bit more brrrr.
pytest -n auto
Versioning
This project make use of Release Please to keep track of versioning. By following conventional commit messages (enforced) in PR titles, and squash-merging, the release please workflow will automatically create/update release-PRs based on which change is performed.
Black and Flake8
This project uses Black and Flake8 for code formatting and linting. It deviates from the default black config by setting the max line length to 120 characters.
It might be helpful turn on format-on-save, and make black format your code on save.
A helpful visual aid is to set rulers in your editor to 120 characters.
Code should not exceed 120 characters.
Add this to you settings.json to set rulers in VSCode:
{
"editor.rulers": [
120
],
"workbench.colorCustomizations": {
"editorRuler.foreground": "#33779944"
}
}
Metadata
Release files for completor 1.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| completor-1.6.1.tar.gz | 98.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| completor-1.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 208.3 kB
Release files / completor-1.6.1.tar.gz
| Download URL | completor-1.6.1.tar.gz |
|---|---|
| Size | 98.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31bd1c29b89ba098ab4d4dfd6d1dce3cc3fc762931f199d01cc001391fbe90aa
|
|
BLAKE2b-256 checksum How to use checksums |
250e419c3d60bdf36815b8fc0e2af344f2e24bae2c482190eee6cfa837cf5978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 15, 2026.
Transparency logRelease files / completor-1.6.1-py3-none-any.whl
| Download URL | completor-1.6.1-py3-none-any.whl |
|---|---|
| Size | 109.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
688f5c46c87fa60040e8215325852c811756f928ad035b265aa19de8b66de964
|
|
BLAKE2b-256 checksum How to use checksums |
77ed4b2f41d5dc3b597492662c2b757d6c0b1ea6494275d0f4f4268bd5075a4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 15, 2026.
Transparency log