-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #245 from dyvenia/dev
Release 0.2.15 PR
- Loading branch information
Showing
21 changed files
with
373 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,4 +149,4 @@ config.toml | |
# MKDocs | ||
desktop.ini | ||
|
||
.viminfo | ||
.viminfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# How to pull CloudForCustomers data | ||
|
||
With Viadot you can pull data from CloudForCustomers API, save it in csv and parquet format on the Azure Data Lake. | ||
You can connect directly with prepeard report URL adress or with table adding special parameters to fetch the data. | ||
|
||
## Pull data from Supermetrics and save output as a csv file on Azure Data Lake | ||
|
||
To pull data from CloudForCustomers we will create flow basing on `CloudForCustomersReportToADLS` | ||
:::viadot.flows.CloudForCustomersReportToADLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from viadot.tasks import C4CToDF, C4CReportToDF | ||
from viadot.config import local_config | ||
|
||
|
||
def test_c4c_to_df(): | ||
url = "http://services.odata.org/V2/Northwind/Northwind.svc/" | ||
endpoint = "Employees" | ||
c4c_to_df = C4CToDF() | ||
df = c4c_to_df.run(url=url, endpoint=endpoint) | ||
answer = df.head() | ||
|
||
assert answer.shape[1] == 23 | ||
|
||
|
||
def test_c4c_report_to_df(): | ||
credentials = local_config.get("CLOUD_FOR_CUSTOMERS") | ||
credentials_prod = credentials["Prod"] | ||
report_url = credentials_prod["server"] | ||
c4c_report_to_df = C4CReportToDF() | ||
df = c4c_report_to_df.run(report_url=report_url, env="Prod") | ||
answer = df.head() | ||
|
||
assert answer.shape[0] == 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
def test_version(): | ||
assert __version__ == "0.2.14" | ||
assert __version__ == "0.2.15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.2.14" | ||
__version__ = "0.2.15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.