Skip to main content

Interface with OSDU RDDMS using ETP protocol

Project description

Build Status codecov Python PyPI version License

Pyetp is a library implementing an ETP v1.2 client with utilities and support for working with RESQML v2.0.1 models.

The following Energistics (c) products were used in the creation of this work: Energistics Transfer Protocol (ETP) v1.2 and RESQML v2.0.1

Installing the library

This package is published to PyPI, and can be installed via:

pip install pyetp

The library is tested against Python versions 3.11, 3.12 and 3.13.

Local development

Locally we suggest setting up a virtual environment, and installing the latest version of pip. Then install the library in editable mode along with the dev-dependency group. That is:

python -m venv .venv
source .venv/bin/activate
pip install pip --upgrade
pip install -e .
pip install --group dev

After doing changes to the code, make sure to lint, format, check the types, and run tests and see that they pass.

Linting and formatting

We use ruff as a linter and formatter. To lint run:

ruff check

To run the formatter do:

ruff format

Or if you just want to check what could have been formatted:

ruff format --check

Type checking

We use mypy to check type annotations via:

mypy src tests --strict

Running tests

We have set up tests against a local open-etp-server. To start this server run:

docker compose -f tests/compose.yml up [--detach]

If you want to re-use the same terminal window you should use the --detach-option, otherwise start a new terminal. We use pytest for testing, which can be run via:

py.test

Building the documentation

We use Material for Mkdocs for the documentation. To install the documentation dependencies run

pip install --group docs

While developing the documentation run

mkdocs serve --livereload

for hot-reloading. The pages are served at http://localhost:8000. To build the documentation for publication run

mkdocs build

which create a directory site/ with the pages. Open site/index.html to see the result.

RESQML versions

The library is built and tested against RESQML v2.0.1. The spec can be downloaded here.

Generated Python objects from RESQML spec

Under src/pyetp/resqml_objects/v201/generated.py you will find Python objects generated from the RESQML xml spec.

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

pyetp-0.0.51.tar.gz (238.2 kB view details)

Uploaded Source

Built Distribution

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

pyetp-0.0.51-py3-none-any.whl (260.9 kB view details)

Uploaded Python 3

File details

Details for the file pyetp-0.0.51.tar.gz.

File metadata

  • Download URL: pyetp-0.0.51.tar.gz
  • Upload date:
  • Size: 238.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyetp-0.0.51.tar.gz
Algorithm Hash digest
SHA256 413977cf54fcecc83c989e8ec509eebf0eca0912711fbfdad8a72c51915c048a
MD5 67b1caaa30c7e6b2dde8010f30531d39
BLAKE2b-256 8f873ec63359da07ba93123d5bfa00df6933b4fdf34a10b171791376b751f2ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyetp-0.0.51.tar.gz:

Publisher: publish.yml on equinor/pyetp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyetp-0.0.51-py3-none-any.whl.

File metadata

  • Download URL: pyetp-0.0.51-py3-none-any.whl
  • Upload date:
  • Size: 260.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyetp-0.0.51-py3-none-any.whl
Algorithm Hash digest
SHA256 912aaac1148c8028cf079d2e9c9e8c966eebff05665454356c74bab72db53aff
MD5 27754e3663afa9c2b82043331be18ff4
BLAKE2b-256 ae8a7ee820e9d25b154a5a999c6d8027a1606e2053fd1266e2547abd41736f92

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyetp-0.0.51-py3-none-any.whl:

Publisher: publish.yml on equinor/pyetp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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