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.2.tar.gz (15.1 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.2-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tagmapper-0.9.2.tar.gz
  • Upload date:
  • Size: 15.1 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.2.tar.gz
Algorithm Hash digest
SHA256 cbc924c09cd4e1da516b4593ead196009d5a52e08fa2c3610001b57dd3a6a144
MD5 6f4ab929b281ee0981e17d889f90de24
BLAKE2b-256 fdf17d8f9eeedda53705842e5c9646d9cf0707cb8e45af319c276118cdb00c3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tagmapper-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 23.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43182071fcd0d863822c7a66ed229be4c4a0896993584f4e2b45a1e1631176ac
MD5 8d6cc971fca6d90b005292368478a205
BLAKE2b-256 66335fe09a59c2b9a2e8a4ff0a29342f6ff6acbc64df27fcd701d8fac8f59f8c

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