| Name | tagmapper JSON |
| Version |
0.7.3
JSON |
| download |
| home_page | None |
| Summary | Python wrapper for SPD tag mapping database |
| upload_time | 2025-10-23 18:49:54 |
| maintainer | None |
| docs_url | None |
| author | Åsmund Våge Fannemel |
| requires_python | <4.0,>=3.10.0 |
| license | None |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# tagmapper-sdk [](https://github.com/equinor/tagmapper-sdk/actions/workflows/snyk.yml)
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
1. See [demo](examples/demo_well.py). Or try the following simple code.
```python
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: <br>
Refer to examples/demo_api_func.py:<br>
Fetch data for all facilities:<br>
```python
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:
```python
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)
```
3. Getting a generic model with no schema from API:
See [demo](examples/demo_generic_model.py). Example usage:
```python
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``
Raw data
{
"_id": null,
"home_page": null,
"name": "tagmapper",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10.0",
"maintainer_email": null,
"keywords": null,
"author": "\u00c5smund V\u00e5ge Fannemel",
"author_email": "asmf@equinor.com",
"download_url": "https://files.pythonhosted.org/packages/9a/46/cbce0451172f949ca4767e3f8f967799ca5232e61f02e28706d7550af080/tagmapper-0.7.3.tar.gz",
"platform": null,
"description": "# tagmapper-sdk [](https://github.com/equinor/tagmapper-sdk/actions/workflows/snyk.yml)\nPython package to get timeseries and constant value mappings for data models from SDP tag mapping library.\n\nIt supports SDP defined models for Separators and Wells as well as generic models with or without schema.\n\nAuthentication is done using Azure credentials and bearer tokens.\n\n\n## Use\n1. See [demo](examples/demo_well.py). Or try the following simple code. \n ```python\n from tagmapper import Well\n w = Well(\"NO 30/6-E-2\") \n ```\n\n2. Fetching the base view (well_attributes_mapped_to_timeseries_base) from the API: <br>\n Refer to examples/demo_api_func.py:<br>\n Fetch data for all facilities:<br>\n ```python\n from tagmapper.base_model import get_data_base_well\n df = get_data_base_well(limit=100000, offset=0) \n print(df)\n ```\n Fetch data for selected facilities:\n ```python\n from tagmapper.base_model import get_data_base_well\n facility_names = ['STATFJORD B','JOHAN SVERDRUP RP']\n df = get_data_base_well(facility_names, limit=10000, offset=0) # More facilit\n print(df)\n ```\n\n3. Getting a generic model with no schema from API: \n See [demo](examples/demo_generic_model.py). Example usage:\n ```python\n from tagmapper import Model\n\n # Create a model\n model = Model.get_model(\n model_owner=\"example_owner\",\n model_name=\"example_model\",\n object_name=\"example_object\")\n model.print_report()\n ```\n\n## Installing\nInstall from pypi using pip. \n``\npip install tagmapper\n``\n\n\n## Developing\nClone repo and run ``poetry install`` to install dependencies.\n\n\n## Testing\nRun tests and check coverage using pytest-cov\n``poetry run pytest --cov=tagmapper test/ --cov-report html``\n",
"bugtrack_url": null,
"license": null,
"summary": "Python wrapper for SPD tag mapping database",
"version": "0.7.3",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ffddaf0961504b3e4a8cdfabe20c65cf1dab2034892fa8a519e0f4033b5b40f5",
"md5": "1e3f1cdbb7746d537e37a553b7935443",
"sha256": "a7ea9e26e69c2932fa04d568a4c3b2de664212cdb97648b5785c374faeeacaef"
},
"downloads": -1,
"filename": "tagmapper-0.7.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1e3f1cdbb7746d537e37a553b7935443",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10.0",
"size": 15183,
"upload_time": "2025-10-23T18:49:53",
"upload_time_iso_8601": "2025-10-23T18:49:53.417555Z",
"url": "https://files.pythonhosted.org/packages/ff/dd/af0961504b3e4a8cdfabe20c65cf1dab2034892fa8a519e0f4033b5b40f5/tagmapper-0.7.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9a46cbce0451172f949ca4767e3f8f967799ca5232e61f02e28706d7550af080",
"md5": "8744fbba2a9caca0eb25738cd4d239c1",
"sha256": "d3216819bd2f157abdf153d8e19ac4bc06eb789e988af2b5a64950c9a3fb4321"
},
"downloads": -1,
"filename": "tagmapper-0.7.3.tar.gz",
"has_sig": false,
"md5_digest": "8744fbba2a9caca0eb25738cd4d239c1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10.0",
"size": 12963,
"upload_time": "2025-10-23T18:49:54",
"upload_time_iso_8601": "2025-10-23T18:49:54.346507Z",
"url": "https://files.pythonhosted.org/packages/9a/46/cbce0451172f949ca4767e3f8f967799ca5232e61f02e28706d7550af080/tagmapper-0.7.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-23 18:49:54",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "tagmapper"
}