Skip to content

Commit

Permalink
Merge pull request #600 from rtdip/develop
Browse files Browse the repository at this point in the history
v0.9.2
  • Loading branch information
cching95 authored Dec 1, 2023
2 parents 4602645 + e816ea6 commit 24c8efb
Show file tree
Hide file tree
Showing 123 changed files with 3,636 additions and 1,705 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"azureFunctions.projectRuntime": "~4",

"python.testing.pytestArgs": [
"--cache-clear",
"--cov=.",
"--cov-report=xml:cov.xml",
"tests",
"-vv"
"-vv",
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/api/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Authentication using Service Principals is similar to end user authentication. A

response = requests.request("POST", url, headers=headers, data=payload, files=files)

access_token = response.json()["access_token"])
access_token = response.json()["access_token"]

params = {
"business_unit": "Business Unit",
Expand Down
2 changes: 1 addition & 1 deletion docs/api/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

# RTDIP REST APIs

RTDIP provides REST API endpoints for querying data in the platform. The APIs are a wrapper to the python [RTDIP SDK](../sdk/overview.md) and provide similar functionality for users and applications that are unable to leverage the python RTDIP SDK. It is recommended to read the [RTDIP SDK documentation](../sdk/overview.md) and in particular the [Functions](../sdk/code-reference/query/resample.md) section for more information about the options and logic behind each API.
RTDIP provides REST API endpoints for querying data in the platform. The APIs are a wrapper to the python [RTDIP SDK](../sdk/overview.md) and provide similar functionality for users and applications that are unable to leverage the python RTDIP SDK. It is recommended to read the [RTDIP SDK documentation](../sdk/overview.md) and in particular the [Functions](../sdk/code-reference/query/functions/time_series/resample.md) section for more information about the options and logic behind each API.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: src.sdk.python.rtdip_sdk.pipelines.sources.spark.iso.caiso_daily_load_iso
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: src.sdk.python.rtdip_sdk.pipelines.sources.spark.iso.caiso_historical_load_iso
15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/circular-average.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/circular-standard-deviation.md

This file was deleted.

15 changes: 15 additions & 0 deletions docs/sdk/code-reference/query/functions/metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Metadata Function
::: src.sdk.python.rtdip_sdk.queries.metadata

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Metadata/metadata.py"
```

This example is using [```DefaultAuth()```](../../authentication/azure.md) and [```DatabricksSQLConnection()```](../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../queries/databricks/sql-warehouses.md). <br />
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Circular Average Function
::: src.sdk.python.rtdip_sdk.queries.time_series.circular_average

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Circular-Average/circular_average.py"
```

This example is using [```DefaultAuth()```](../../../authentication/azure.md) and [```DatabricksSQLConnection()```](../../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../../queries/
databricks/sql-warehouses.md). <br />
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Circular Standard Deviation Function
::: src.sdk.python.rtdip_sdk.queries.time_series.circular_standard_deviation

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Circular-Standard-Deviation/circular_standard_deviation.py"
```

This example is using [```DefaultAuth()```](../../../authentication/azure.md) and [```DatabricksSQLConnection()```](../../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../../queries/databricks/sql-warehouses.md). <br />
15 changes: 15 additions & 0 deletions docs/sdk/code-reference/query/functions/time_series/interpolate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Interpolate Function
::: src.sdk.python.rtdip_sdk.queries.time_series.interpolate

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Interpolate/interpolate.py"
```

This example is using [```DefaultAuth()```](../../../authentication/azure.md) and [```DatabricksSQLConnection()```](../../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../../queries/databricks/sql-warehouses.md). <br />
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Interpolation at Time Function
::: src.sdk.python.rtdip_sdk.queries.time_series.interpolation_at_time

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Interpolation-at-Time/interpolation_at_time.py"
```

This example is using [```DefaultAuth()```](../../../authentication/azure.md) and [```DatabricksSQLConnection()```](../../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../../queries/databricks/sql-warehouses.md). <br />
File renamed without changes.
15 changes: 15 additions & 0 deletions docs/sdk/code-reference/query/functions/time_series/raw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Raw Function
::: src.sdk.python.rtdip_sdk.queries.time_series.raw

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Raw/raw.py"
```

This example is using [```DefaultAuth()```](../../../authentication/azure.md) and [```DatabricksSQLConnection()```](../../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../../queries/databricks/sql-warehouses.md). <br />
15 changes: 15 additions & 0 deletions docs/sdk/code-reference/query/functions/time_series/resample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Resample Function
::: src.sdk.python.rtdip_sdk.queries.time_series.resample

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Resample/resample.py"
```

This example is using [```DefaultAuth()```](../../../authentication/azure.md) and [```DatabricksSQLConnection()```](../../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../../queries/databricks/sql-warehouses.md). <br />
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Summary Function
::: src.sdk.python.rtdip_sdk.queries.time_series.summary
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Time Weighted Average
::: src.sdk.python.rtdip_sdk.queries.time_series.time_weighted_average

## Example
```python
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Time-Weighted-Average/time_weighted_average.py"
```

This example is using [```DefaultAuth()```](../../../authentication/azure.md) and [```DatabricksSQLConnection()```](../../connectors/db-sql-connector.md) to authenticate and connect. You can find other ways to authenticate [here](../../../authentication/azure.md). The alternative built in connection methods are either by [```PYODBCSQLConnection()```](../../connectors/pyodbc-sql-connector.md), [```TURBODBCSQLConnection()```](../../connectors/turbodbc-sql-connector.md) or [```SparkConnection()```](../../connectors/spark-connector.md).

!!! note "Note"
See [Samples Repository](https://github.com/rtdip/samples/tree/main/queries) for full list of examples.

!!! note "Note"
</b>```server_hostname``` and ```http_path``` can be found on the [SQL Warehouses Page](../../../../queries/databricks/sql-warehouses.md). <br />
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Query Builder
::: src.sdk.python.rtdip_sdk.queries.time_series.time_series_query_builder
2 changes: 2 additions & 0 deletions docs/sdk/code-reference/query/functions/weather/latest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Weather Latest Function
::: src.sdk.python.rtdip_sdk.queries.weather.latest
2 changes: 2 additions & 0 deletions docs/sdk/code-reference/query/functions/weather/raw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Weather Raw Function
::: src.sdk.python.rtdip_sdk.queries.weather.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Weather Query Builder
::: src.sdk.python.rtdip_sdk.queries.weather.weather_query_builder
15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/interpolate.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/interpolation-at-time.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/metadata.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/sdk/code-reference/query/query_builder.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/raw.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/resample.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/sdk/code-reference/query/sql/sql_query.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SQL Query
::: src.sdk.python.rtdip_sdk.queries.sql.sql_query
15 changes: 0 additions & 15 deletions docs/sdk/code-reference/query/time-weighted-average.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/sdk/examples/pipelines/deploy/ECMWF-to-Delta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/pipelines/deploy/ECMWF-to-Delta/README.md"
1 change: 1 addition & 0 deletions docs/sdk/examples/query/Summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--8<-- "https://raw.githubusercontent.com/rtdip/samples/main/queries/Summary/README.md"
Loading

0 comments on commit 24c8efb

Please sign in to comment.