Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/preview_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
from dotenv import load_dotenv
import sys
import pandas as pd
from typing import cast

dotenv_path = os.path.join(os.path.dirname(__file__), '..', '.env')
load_dotenv(dotenv_path)

dune = DuneClient.from_env()
dune = cast(DuneClient, DuneClient.from_env())

#get id passed in python script invoke
id = sys.argv[1]
Expand Down
3 changes: 2 additions & 1 deletion scripts/pull_from_dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
from dotenv import load_dotenv
import sys
import codecs
from typing import cast

# Set the default encoding to UTF-8
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())

dotenv_path = os.path.join(os.path.dirname(__file__), '..', '.env')
load_dotenv(dotenv_path)

dune = DuneClient.from_env()
dune = cast(DuneClient, DuneClient.from_env())

# Read the queries.yml file
queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries.yml')
Expand Down
3 changes: 2 additions & 1 deletion scripts/push_to_dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
from dotenv import load_dotenv
import sys
import codecs
from typing import cast

# Set the default encoding to UTF-8
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())

dotenv_path = os.path.join(os.path.dirname(__file__), '..', '.env')
load_dotenv(dotenv_path)

dune = DuneClient.from_env()
dune = cast(DuneClient, DuneClient.from_env())

# Read the queries.yml file
queries_yml = os.path.join(os.path.dirname(__file__), '..', 'queries.yml')
Expand Down
3 changes: 2 additions & 1 deletion scripts/upload_to_dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
import sys
import codecs
import os
from typing import cast

# Set the default encoding to UTF-8
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())

dotenv_path = os.path.join(os.path.dirname(__file__), '..', '.env')
load_dotenv(dotenv_path)

dune = DuneClient.from_env()
dune = cast(DuneClient, DuneClient.from_env())

uploads_path = os.path.join(os.path.dirname(__file__), '..', 'uploads')
files = os.listdir(uploads_path)
Expand Down