From 7bf3e633b62ae791e3c034385fd4a8d9b7cfbf98 Mon Sep 17 00:00:00 2001 From: EggPool <33421807+EggPool@users.noreply.github.com> Date: Fri, 9 Apr 2021 16:14:05 +0200 Subject: [PATCH 1/6] Fallback to backport Auto fallback to use the backport for pre 3.7 pythons. --- etherscan/etherscan.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etherscan/etherscan.py b/etherscan/etherscan.py index 5749aa8..9238a1c 100644 --- a/etherscan/etherscan.py +++ b/etherscan/etherscan.py @@ -1,5 +1,8 @@ import json -from importlib import resources +try: + from importlib import resources +except ImportError: + import importlib_resources as resources import requests From 575a1e7d9e258bdf594e794c2ecbdf0948de6271 Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Sun, 11 Apr 2021 13:55:20 +0200 Subject: [PATCH 2/6] Fixed for 100% codecov --- etherscan/etherscan.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/etherscan/etherscan.py b/etherscan/etherscan.py index 9238a1c..5749aa8 100644 --- a/etherscan/etherscan.py +++ b/etherscan/etherscan.py @@ -1,8 +1,5 @@ import json -try: - from importlib import resources -except ImportError: - import importlib_resources as resources +from importlib import resources import requests From 3dd94721804bbcbc8d13f0e38405e2ffa41c781d Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Thu, 15 Apr 2021 09:22:57 +0200 Subject: [PATCH 3/6] Added delay because of rate-limit --- test/test_modules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_modules.py b/test/test_modules.py index 65e669b..632211d 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -1,5 +1,6 @@ import json from datetime import datetime +import time import os from unittest import TestCase @@ -44,6 +45,7 @@ def methods(self, net): "res": res, } dump(log, fname) + time.sleep(0.1) def test_net_methods(self): for net in self._NETS: From 584cd1b2014a51dcb05ed0c5c965b4d04d3544ac Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 21 Apr 2021 23:55:21 +0200 Subject: [PATCH 4/6] =?UTF-8?q?Removed=20G=C3=B6rli=20testnet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_modules.py b/test/test_modules.py index 632211d..bf10567 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -23,7 +23,7 @@ def dump(data, fname): class Case(TestCase): _MODULE = "" - _NETS = ["MAIN", "GOERLI", "KOVAN", "RINKEBY", "ROPSTEN"] + _NETS = ["MAIN", "KOVAN", "RINKEBY", "ROPSTEN"] def methods(self, net): print(f"\nNET: {net}") From 06b76428efcaa4d7d147ae612cbe86429e0c719f Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Wed, 21 Apr 2021 23:58:00 +0200 Subject: [PATCH 5/6] Updated README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 731341e..3a415f6 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ A minimal, yet complete, Python API for [Etherscan.io](https://etherscan.io/). -All standard and pro endpoints are provided and Görli, Kovan, Rinkeby and Ropsten testnets are also supported. +All standard and pro endpoints are provided. Kovan, Rinkeby and Ropsten testnets are also supported. Available on [PyPI](https://pypi.org/project/etherscan-python/). Powered by [Etherscan.io APIs](https://etherscan.io/apis#misc). From e059d7c91071d8999b8aaf90edb9bf7c488a110d Mon Sep 17 00:00:00 2001 From: Panagiotis Kotsias Date: Thu, 22 Apr 2021 00:02:26 +0200 Subject: [PATCH 6/6] Added time.sleep to avoid rate limits in unittests --- test/test_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_modules.py b/test/test_modules.py index bf10567..8ad9f9b 100644 --- a/test/test_modules.py +++ b/test/test_modules.py @@ -45,7 +45,7 @@ def methods(self, net): "res": res, } dump(log, fname) - time.sleep(0.1) + time.sleep(0.5) def test_net_methods(self): for net in self._NETS: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy