Metadata-Version: 2.3
Name: commonlib-reader
Version: 1.2.0
Summary: Reader for Equinor commonlib api.
Author: Åsmund Våge Fannemel
Author-email: Åsmund Våge Fannemel <asmf@equinor.com>
License: MIT
Requires-Dist: pandas>=2.1.4
Requires-Dist: eq-api-connector>=1.1.0,<2.0.0
Requires-Python: >=3.10, <4.0.0
Project-URL: Repository, https://github.com/equinor/commonlib-reader.git
Description-Content-Type: text/markdown

# commonlib-reader
Connector package for Equinor [Commonlib](https://commonlib.equinor.com/) [api](https://commonlibapi.equinor.com/swagger/index.html). 

Current features:
- Reading code tables
- Getting facility data using the [Facility](commonlib_reader/facility.py) class
- [IMS source ](commonlib_reader/ims.py) lookup tables for facilities
- Getting Tag category, Tag type, Tag format, and Tag format element data. See [tag.py](commonlib_reader/tag.py)
- Getting [units of measure](commonlib_reader/ims.py) definitions.


## Use
Try it out by running the [demo](examples/demo.py).

## Installing

Install package from pypi using `pip install commonlib_reader`


## Developing / testing

uv is preferred for developers. Clone and install with required packages for testing and coverage:
`uv sync`

For testing with coverage run:
`uv run pytest --cov --cov-report=html`
