Skip to main content

Python wrapper for Equinor SPD tag mapping database

Project description

tagmapper-sdk SNYK dependency check

Python package to get timeseries and constant value mappings for data models from SDP tag mapping library.

It supports SDP defined models for Separators and Wells as well as generic models with or without a defined schema.

Authentication is done using Azure credentials and bearer tokens. Access to Equinor internal network, e.g., office network or VPN Location_All, is required to access data.

Use

  1. See demo. Or try the following simple code.

    from tagmapper import Well    
    # Create well object
    w = Well("NO 30/6-E-2")
    # # Print the default report
    w.print_report()
    # # Print a formatted report 
    #w.print_formatted_report()
    
  2. Getting a generic model with no schema from API:
    See demo. Example usage:

    from tagmapper import Model
    
    available_models = Model.get_model_names()
    model_owner = available_models[0]["model_owner"]
    model_name = available_models[0]["model_name"]
    object_names = Model.get_object_names(model_owner=model_owner, model_name=model_name)
    
    # Fetch a model from api
    mod = Model.get_model(
    model_owner=model_owner,
    model_name=model_name,
    object_name=object_names[0])
    mod.print_report()
    

Installing

Install from pypi using pip.
pip install tagmapper

Developing

Clone repo and run poetry install to install dependencies.

Testing and code coverage

Run tests and check coverage using pytest-cov poetry run pytest --cov=. --cov-report=xml:coverage.xml

Compare coverage with modified lines against main branch diff-cover coverage.xml --compare-branch=origin/main

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

tagmapper-0.9.3.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

tagmapper-0.9.3-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file tagmapper-0.9.3.tar.gz.

File metadata

  • Download URL: tagmapper-0.9.3.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for tagmapper-0.9.3.tar.gz
Algorithm Hash digest
SHA256 91e054fb18eb8f4d0fe91b2971f9eb0ff304217b01d6907c6d13a6e58102eceb
MD5 d950f77c74efa7213d4b5d91f459fab0
BLAKE2b-256 600f5c60fc2c1fa22365bc8fccc4db8677837e07c5e06072f2bbe98bf54a9067

See more details on using hashes here.

File details

Details for the file tagmapper-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: tagmapper-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for tagmapper-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 110b43be569a7aa89e00a9f171e4c7e2facecae90144039c4025c4bf587361f8
MD5 f84785e12c129e3bfc7b664a880e1bdd
BLAKE2b-256 118256330e68fb7b4caf184b7869d50dc238a2174c88b70df2afb34bec016b2e

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