Python client for connecting to Equinor STIDapi
Project description
STIDapi
A simple wrapper package to interface Equinor STIDapi and get plant, system, tag and doc data.
Use
Try it out by running the demo or the sample code below.
from stidapi import Plant, Tag, Doc
p = Plant("JSV")
t = p.search_tag("*20LIC*")
t2 = Tag("JSV",t[0].no)
d = t2.get_doc()
d2 = p.get_doc(d[0].no)
d3 = Doc(p.inst_code, d[0].no)
Installing
Install package from pypi using pip install stidapi
Developing / testing
Poetry is preferred for developers. Install with required packages for testing and coverage:
poetry install
Call poetry run pytest
to run tests.
To generate coverage report in html run poetry run pytest --cov=stidapi tests/ --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
stidapi-1.3.0.tar.gz
(7.1 kB
view details)
Built Distribution
File details
Details for the file stidapi-1.3.0.tar.gz
.
File metadata
- Download URL: stidapi-1.3.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca926c35fa13d047a30f872a840d1b3a10071896cf56d2d290a1192b7a59aee5 |
|
MD5 | 48a1e7008117afdd68bf33299bc170e2 |
|
BLAKE2b-256 | 8b8c24c267d38abfcb5395fbb5de30cef56f42463eaab36302c30d42fb9b7907 |
File details
Details for the file stidapi-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: stidapi-1.3.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfaa8a868f054391c18852177eb95d41acbd479fab287b19aebdc322bc57162a |
|
MD5 | 4fa9a14cd52ac3ea6e178a32ccd9a194 |
|
BLAKE2b-256 | 426462cacf83991564dc299f7da0f8a9ebb61622dec96bce75869a89c9adb16f |