{"id":19835400,"url":"https://github.com/equinor/openserver","last_synced_at":"2026-03-07T04:31:06.067Z","repository":{"id":45467017,"uuid":"265663292","full_name":"equinor/OpenServer","owner":"equinor","description":"Code for running Petroleum Experts OpenServer API commands in Python","archived":false,"fork":false,"pushed_at":"2023-10-30T14:05:46.000Z","size":168,"stargazers_count":29,"open_issues_count":3,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-01-09T11:24:43.012Z","etag":null,"topics":["gap","petex","prosper","wellhydraulics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equinor.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2020-05-20T19:10:02.000Z","updated_at":"2023-12-20T20:03:17.000Z","dependencies_parsed_at":"2022-07-14T15:17:19.443Z","dependency_job_id":"af9e423f-620f-4dee-b9f6-a83c0ea1ae7c","html_url":"https://github.com/equinor/OpenServer","commit_stats":{"total_commits":67,"total_committers":6,"mean_commits":"11.166666666666666","dds":0.7164179104477613,"last_synced_commit":"5eca84bb50ea9b59d3b7eb3dc1025f05f25aeee8"},"previous_names":[],"tags_count":4,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2FOpenServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2FOpenServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2FOpenServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2FOpenServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equinor","download_url":"https://codeload.github.com/equinor/OpenServer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270269,"owners_count":17283649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gap","petex","prosper","wellhydraulics"],"created_at":"2024-11-12T12:07:55.675Z","updated_at":"2026-03-07T04:31:05.713Z","avatar_url":"https://github.com/equinor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/equinor/openserver/master/resources/logo.png\" title=\"OpenServer\"/\u003e\n\u003c/p\u003e\n\n[![PyPI](https://img.shields.io/pypi/v/openserver)](https://pypi.org/project/openserver/)\n[![SCM Compliance](https://scm-compliance-api.radix.equinor.com/repos/equinor/openserver/badge)](https://scm-compliance-api.radix.equinor.com/repos/equinor/openserver/badge)\n[![Runs on Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge\u0026logo=windows\u0026logoColor=white)](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge\u0026logo=windows\u0026logoColor=white)\n\n# OpenServer\nCode for running Petroleum Experts OpenServer API commands in Python. More general information about this API protocol can be found on [Petroleum Experts'](https://www.petex.com/products/ipm-suite/openserver/) site.\n\nPlease have a look at the [CONTRIBUTING.MD file](https://github.com/equinor/OpenServer/blob/master/CONTRIBUTING.md) if you want to contribute.\n\n\n## Python\n\n### Getting started\nInstall the required package:\n```\npip install openserver\n```\n\n### Example in Python\n\nThere are two ways of using the functions, either by importing a class called OpenServer or by importing all modules. The first is the most \"pythonic\" way which can be used to disconnect from the license server. The latter is easier for those converting from visual basic style coding environment. \n\nThe following code will import the OpenServer module, start Prosper, open a Prosper file named well_2 on C-drive and adding a comment into the comment section in Prosper.\n\n#### by using the class ####\n\n```\nfrom openserver import OpenServer\n\nc = OpenServer()\nc.connect()\n\nc.DoCmd('PROSPER.START()')\nc.DoCmd('PROSPER.OPENFILE(\"C:\\\\well_2.OUT\")')\nc.DoSet('PROSPER.SIN.SUM.Comments', 'Testing OpenServer from Python')\n\nc.disconnect()\n```\n\nor\n\n```\nfrom openserver import OpenServer\n\nwith OpenServer() as c:\n    c.DoCmd('PROSPER.START()')\n    c.DoCmd('PROSPER.OPENFILE(\"C:\\\\well_2.OUT\")')\n    c.DoSet('PROSPER.SIN.SUM.Comments', 'Testing OpenServer from Python')\n```\n\n#### by importing all modules ####\n\n```\nfrom openserver import *\n\nDoCmd('PROSPER.START()')\nDoCmd('PROSPER.OPENFILE(\"C:\\\\well_2.OUT\")')\nDoSet('PROSPER.SIN.SUM.Comments', 'Testing OpenServer from Python')\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequinor%2Fopenserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequinor%2Fopenserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequinor%2Fopenserver/lists"}