Metadata-Version: 2.1
Name: stidapi
Version: 1.2.2
Summary: Python client for connecting to Equinor STIDapi
License: Proprietary
Author: Åsmund Våge Fannemel
Author-email: asmf@equinor.com
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: certifi (>=2023.11.17)
Requires-Dist: msal-bearer (>=0.2.1,<2.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Project-URL: repository, https://github.com/equinor/STIDapi-python
Description-Content-Type: text/markdown

# STIDapi

A simple wrapper package to interface Equinor [STIDapi](https://stidapi.equinor.com/) and get plant, system, tag and doc data.


## Use

Try it out by running the [demo](examples/demo.py) 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`


