Skip to main content

Petroleum Experts OpenServer calculations

Project description

OpenServer

Code for running Petroleum Experts OpenServer API commands in Python. More general information about this API protocol can be found on Petroleum Experts' site.

Please have a look at the CONTRIBUTING.MD file if you want to contribute.

Python

Getting started

Lorem Lipsum pip install ...

Example in Python

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

The following code will import the OpenServer module, start Prosper, open a Prosper file named well_2 on root drive and adding a comment into the comment section in Prosper.

by importing all modules

from openserver import *

DoCmd('PROSPER.START()')
DoCmd('PROSPER.OPENFILE("C:\well_2.OUT")')
DoSet('PROSPER.SIN.SUM.Comments', 'Testing OpenServer from Python')

by using the class

from openserver import OpenServer

c = OpenServer()
c.connect()

c.DoCmd('PROSPER.START()')
c.DoCmd('PROSPER.OPENFILE("C:\well_2.OUT")')
c.DoSet('PROSPER.SIN.SUM.Comments', 'Testing OpenServer from Python')

c.disconnect()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openserver-1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openserver-1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file openserver-1.0.tar.gz.

File metadata

  • Download URL: openserver-1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for openserver-1.0.tar.gz
Algorithm Hash digest
SHA256 1ff1bc74e90691163ab0b1472209b44e775d142090deae819453ac6e27004290
MD5 bbc1e2877a79bb8d01911c1ac7318c66
BLAKE2b-256 de74f4c0e008cb7059736241b58efd05a49195838f9fdf81b2a8ad4fab9f494d

See more details on using hashes here.

File details

Details for the file openserver-1.0-py3-none-any.whl.

File metadata

  • Download URL: openserver-1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for openserver-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 625a54efb1cff0984da1e487e1327155f1652f6259fbdfd95cd0701f0ca9c6c3
MD5 d145fbdf784270272c818d712466e0bd
BLAKE2b-256 3638a149f61099d2ab80c412390b412c21a0d82949f861b5f94a0c1f0ebf9746

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page