Skip to content

Commit

Permalink
chore: more
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Nov 7, 2024
1 parent f557ec9 commit 769857e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions ape_alchemy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,17 @@ def providers():
for ecosystem_name in NETWORKS:
for network_name in NETWORKS[ecosystem_name]:
yield ecosystem_name, network_name, Alchemy


def __getattr__(name: str):
if name == "NETWORKS":
from ._utils import NETWORKS

return NETWORKS

elif name == "Alchemy":
from .provider import Alchemy

return Alchemy

raise AttributeError(name)
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ape.exceptions import APINotImplementedError
from ape.utils import ZERO_ADDRESS

from ape_alchemy import NETWORKS
from ape_alchemy._utils import NETWORKS
from ape_alchemy.provider import NETWORKS_SUPPORTING_WEBSOCKETS, Alchemy


Expand Down

0 comments on commit 769857e

Please sign in to comment.