Skip to content

Commit

Permalink
Merge branch 'main' into feature/29102-add-sdk-usage-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
saraeq committed Dec 13, 2024
2 parents 2e613eb + 4403551 commit e2eab97
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Please consult the [API Reference](https://api.equinor.com/api-details#api=Timeseries-api-v1-7) for a full overview of the API endpoints.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
homepage = "https://github.com/equinor/omnia-timeseries-python"
repository = "https://github.com/equinor/omnia-timeseries-python"
Expand Down
10 changes: 10 additions & 0 deletions src/omnia_timeseries/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
'''
Expand Down

0 comments on commit e2eab97

Please sign in to comment.