Skip to main content

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.2.2.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

stidapi-1.2.2-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page