Python wrapper for SPD tag mapping database
Project description
tagmapper-sdk 
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 schema.
Authentication is done using Azure credentials and bearer tokens.
Use
-
See demo. Or try the following simple code.
from tagmapper import Well w = Well("NO 30/6-E-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)
-
Getting a generic model with no schema from API:
See demo. Example usage:from tagmapper import Model # Create a model model = Model.get_model( model_owner="example_owner", model_name="example_model", object_name="example_object") model.print_report()
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tagmapper-0.6.7.tar.gz.
File metadata
- Download URL: tagmapper-0.6.7.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cffd240c2ee83ee9fa3e1584875db5b6264c07d3cf8a40a929181105efcb349c
|
|
| MD5 |
ae205aae912ff1071ca666bbd8638d05
|
|
| BLAKE2b-256 |
eda3b7e925d7b8ff8a2c9e90605b5277b86e7b7276575fe48df7b63b4fc4a12d
|
File details
Details for the file tagmapper-0.6.7-py3-none-any.whl.
File metadata
- Download URL: tagmapper-0.6.7-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed163303ec5bf46e4dc7107aa688944471e5801b7c3d8f349485cd4ff199a1a
|
|
| MD5 |
5848c5e4610d8fbb1b0ee2412fab4be3
|
|
| BLAKE2b-256 |
b03b7da7919303dcb61846f4ff07c07c16af2790b42e4ea396e48ad4c93794ac
|