-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use DuneClient instead of Raw Request (#3)
## Test Plan: ```sh docker-compose up -d python -m src.main ``` If you have your .env set with a valid `DUNE_API_KEY`, you should see something like: ``` 2024-10-08 23:16:23,020 INFO dune_client.api.base executing 4132129 on medium cluster 2024-10-08 23:16:23,254 INFO dune_client.api.base waiting for query execution 01J9PZV08G4FD64YVFV6NFZHPE to complete: ExecutionState.PENDING (queue position: 1) Data saved to PostgreSQL successfully! ```
- Loading branch information
Showing
6 changed files
with
45 additions
and
32 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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
DB_URL=postgresql://postgres:postgres@localhost:5432/postgres | ||
DUNE_API_KEY= | ||
DB_URL=postgresql://postgres:postgres@localhost:5432/postgres | ||
|
||
QUERY_ID= | ||
POLL_FREQUENCY=10 | ||
QUERY_ENGINE=medium |
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,13 @@ | ||
# Dune Sync V2 | ||
|
||
|
||
|
||
|
||
## Local Development | ||
|
||
Fill out the empty fields in [Sample Env](.env.sample) (`DUNE_API_KEY` and `QUERY_ID`) | ||
|
||
```shell | ||
docker-compose up -d | ||
python -m src.main | ||
``` |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
requests | ||
dune-client>=1.7.7 | ||
pandas | ||
sqlalchemy | ||
python-dotenv | ||
|
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