-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67ab258
commit 03ef844
Showing
3 changed files
with
25 additions
and
4 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
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,17 @@ | ||
print('test action hello wrld') | ||
print('test action hello wrld') | ||
|
||
import yaml | ||
from dune_client.client import DuneClient | ||
|
||
dune = DuneClient.from_env() | ||
|
||
# Read the queries.yml file | ||
with open('queries.yml', 'r') as file: | ||
data = yaml.safe_load(file) | ||
|
||
# Extract the query_ids from the data | ||
query_ids = [id for id in data['query_ids']] | ||
|
||
for id in query_ids: | ||
query = dune.get_query(id) | ||
print(query) |
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,5 +1,8 @@ | ||
|
||
query_ids: | ||
- query_id_1 | ||
- query_id_2 | ||
- query_id_3 | ||
- 3237721 | ||
- 3237738 | ||
- 3237745 | ||
- 3237723 | ||
- 3237726 | ||
- 3237742 |