Skip to content

Commit 131773c

Browse files
SimSefSimon Sefcikclaude
authored
feat: remove legacy API directories and dependencies (#241)
* feat: remove legacy API directories and dependencies 🗑️ Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: remove unused functions and commented code - Remove unused _get_subclasses() and _get_all_inheritors() functions from __init__.py - Remove commented out SolanaApi assertion from test_enumerate_classes.py * fix: apply black formatting --------- Co-authored-by: Simon Sefcik <sim@Simons-Mac-mini.local> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3dace1a commit 131773c

101 files changed

Lines changed: 0 additions & 21899 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

blockapi/__init__.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import coinaddrng
55

6-
import blockapi.api
76
import blockapi.utils
87

98
from .services import APIError
@@ -111,30 +110,6 @@ def _inheritors(klass):
111110
return subclasses
112111

113112

114-
def _get_subclasses(class_name):
115-
return [getattr(class_name, x) for x in dir(class_name) if not x.startswith('__')]
116-
117-
118-
def _get_all_inheritors():
119-
all_inheritors = []
120-
121-
tridy = _get_subclasses(blockapi.api)
122-
123-
for trida in tridy:
124-
tridy_sub = _get_subclasses(trida)
125-
for trida_sub in tridy_sub:
126-
if (
127-
inspect.isclass(trida_sub)
128-
and blockapi.services.BlockchainAPI in trida_sub.__bases__
129-
):
130-
all_inheritors.append(trida_sub)
131-
grandchildren = _inheritors(trida_sub)
132-
if len(grandchildren) > 0:
133-
all_inheritors += _inheritors(trida_sub)
134-
135-
return all_inheritors
136-
137-
138113
def get_working_apis_for_coin(symbol, debug=False):
139114
coin_classes = get_api_classes_for_coin(symbol)
140115

blockapi/api/__init__.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)