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.5.1.tar.gz (57.0 kB view details)

Uploaded Source

Built Distribution

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

pywellcad-0.5.1-py3-none-any.whl (65.6 kB view details)

Uploaded Python 3

File details

Details for the file pywellcad-0.5.1.tar.gz.

File metadata

  • Download URL: pywellcad-0.5.1.tar.gz
  • Upload date:
  • Size: 57.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pywellcad-0.5.1.tar.gz
Algorithm Hash digest
SHA256 2c2c8d667e7e61eadbf7a835e727351486a6bd55546cdd15b088942f85a2b071
MD5 256286b83285adc0d290b63f599651e1
BLAKE2b-256 9bf547f5d3094ad0bb77d7af3b91259683f37a44944c81dd3631c445eb9bd7fd

See more details on using hashes here.

File details

Details for the file pywellcad-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: pywellcad-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 65.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pywellcad-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83d716ea6e76acee1aa34e098b66ca35ea834d7ad93b070af76e3b0b4f90722b
MD5 d8cb535ba17e0e7522541fc8b4ff2b02
BLAKE2b-256 9b6ba6e82658c2bba099ccce60b4c0330a071f8d152e863a66bde44b736b7c6e

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