Skip to main content

a Python client for the WellCAD Automation API

Project description

pywellcad

pywellcad is a Python library that provides an interface to ALT's WellCAD software using the automation module.

Currently, the library is in beta, and only exposes a thin wrapper around the COM API. As well as this COM API, we are working on a brand new, more Pythonic interface. Contributions and suggestions for the new interface are very welcome - take a look at the section below on Contributing.

Requirements

  • Python 3.6+
  • WellCAD v5.5+ with a valid license for the Automation Module

Note: it is possible that the library will at least partially work with older Python and WellCAD versions, but these older versions are not supported.

Installation

In the future, pywellcad will be bundled along with WellCAD and a built in Python distribution. For now, you can install it manually in your own Python environment using pip:

pip install pywellcad

To ensure the WellCAD COM server is registered and can be used by pywellcad, please make sure that you have run WellCAD from an administrator user account at least once.

Usage

The COM interface is entirely available under the module wellcad.com. Importing this and instantiating an Application is the entrypoint to further functionality.

import wellcad.com

app = wellcad.com.Application()
sample_file_path = r"C:\Program Files\Advanced Logic Technology\WellCAD\Samples\Classic Sample.wcl"
borehole = app.open_borehole(sample_file_path)
gr_log = borehole.get_log("GR")
gr_log.file_export(r"C:\Temp", "sample_gr", "csv")

A comprehensive set of documentation can be found here.

Contributing

If you have problems or suggestions, please feel free to open an issue here on GitHub. Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please note, initial development of this library was done using a self-hosted Git platform (Gitea), so you may not have access to older issues/PRs.

License

pywellcad is licensed under the BSD 3-clause license.

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

pywellcad-0.3.0.tar.gz (55.9 kB view hashes)

Uploaded Source

Built Distribution

pywellcad-0.3.0-py3-none-any.whl (65.0 kB view hashes)

Uploaded Python 3

Supported by

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