From d86c17be1c5522a050b70cb68d6337b405a22c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Inge=20Nyg=C3=A5rd=20=28Omega=20AS=29?= <124273385+janny93@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:46:57 +0100 Subject: [PATCH 1/3] Update README.md Remove "$" in pip install command --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4c2397c..6776060 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Python package for interacting with the [Omnia Industrial IoT Timeseries API](ht To use the Python package, install it in the following manner: ``` -$ pip install git+https://github.com/equinor/omnia-timeseries-python.git@main +pip install git+https://github.com/equinor/omnia-timeseries-python.git@main ``` For support, create an issue on GitHub. @@ -89,4 +89,4 @@ The `Protobuf` response from Timeseries API looks like this: ### Other use cases -Please consult the [API Reference](https://api.equinor.com/api-details#api=Timeseries-api-v1-7) for a full overview of the API endpoints. \ No newline at end of file +Please consult the [API Reference](https://api.equinor.com/api-details#api=Timeseries-api-v1-7) for a full overview of the API endpoints. From a339e7674d7a3a3887618b39f786b22fcd205631 Mon Sep 17 00:00:00 2001 From: saraeq Date: Wed, 11 Dec 2024 13:40:38 +0100 Subject: [PATCH 2/3] Add dev environment config --- src/omnia_timeseries/api.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/omnia_timeseries/api.py b/src/omnia_timeseries/api.py index ae561b1..0772fac 100644 --- a/src/omnia_timeseries/api.py +++ b/src/omnia_timeseries/api.py @@ -29,6 +29,16 @@ def __init__(self, resource_id: str, base_url: str): self._resource_id = resource_id self._base_url = base_url + @classmethod + def Dev(cls, version: TimeseriesVersion = "1.7"): + ''' + Sets up non-production dev environment + ''' + return cls( + resource_id="32f2a909-8a98-4eb8-b22d-1208d9350cb0", + base_url=f"https://api-dev.gateway.equinor.com/plant/timeseries/v{version}" + ) + @classmethod def Test(cls, version: TimeseriesVersion = "1.7"): ''' From 4403551a45e7aebf0baa1727cc5ceb2139718154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sara=20Bj=C3=B8rkelund=20Haugen?= Date: Thu, 12 Dec 2024 08:20:49 +0100 Subject: [PATCH 3/3] Update version number --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3e0a866..3a9cb9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "omnia_timeseries" -version = "1.3.10" +version = "1.3.11" authors = ["Equinor Omnia Industrial IoT Team "] homepage = "https://github.com/equinor/omnia-timeseries-python" repository = "https://github.com/equinor/omnia-timeseries-python"