Skip to main content

Python wrapper for sql tag mapping database

Project description

tagmapper-sdk SNYK dependency check

Prototype python package to get IMS-tag mappings for data models for separators and wells.

Authentication is done using Azure credentials and bearer tokens.

Use

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

    from tagmapper import Well
    w = Well("NO 30/6-E-2")  
    
  2. Fetching the base view (well_attributes_mapped_to_timeseries_base) from the API:
    Refer to examples/demo_api_func.py:
    Fetch data for all facilities:

    from tagmapper.base_model import get_data_base_well
    df = get_data_base_well(limit=100000, offset=0) 
    print(df)
    

    Fetch data for selected facilities:

    from tagmapper.base_model import get_data_base_well
    facility_names = ['STATFJORD B','JOHAN SVERDRUP RP']
    df = get_data_base_well(facility_names, limit=10000, offset=0) # More facilit
    print(df)
    

Installing

Install from pypi using pip.
pip install tagmapper

Developing

Clone repo and run poetry install to install dependencies.

Testing

Run tests and check coverage using pytest-cov poetry run pytest --cov=tagmapper test/ --cov-report html

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.5.0.tar.gz (13.5 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.5.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tagmapper-0.5.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/24.5.0

File hashes

Hashes for tagmapper-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b84778852be08da4ab3678ce2f6d6abc623f794bf2f34dfc1e888f0735b12e99
MD5 217d80f946fb2cb3788630ba82aa4566
BLAKE2b-256 49ec3b08e57e7e8d37c2625caeae572dff06657445e11f2d77868894a684c45a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tagmapper-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/24.5.0

File hashes

Hashes for tagmapper-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b38d1edee2191f9860a07c8864ba374078728291a65cb017778a35cfeaac664
MD5 14d30b73cc60106312d4df0ec1d041bf
BLAKE2b-256 ddba84192305e888509b2fc5d20a0f1367f06f2b271b9a8b016b158c2456be81

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