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. 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" diff --git a/src/omnia_timeseries/api.py b/src/omnia_timeseries/api.py index 5779868..d8a7d29 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"): '''