Some checks failed
CI / build (push) Failing after 3s
Phase 4.5 of AUDIT-2026-Q3.md.
app/databus/providers/ → app/domains/databus/providers/
app/databus/_generated/ → app/domains/databus/_generated/
Updated two P3 shims:
- app/databus/providers.py (10 LOC) → re-exports 6 public names
from app.domains.databus.providers
- app/databus/provider_chains.py (8 LOC) → re-exports build_provider_chains
from app.domains.databus._generated.provider_chains
Fixed internal references in moved files (app.databus.providers.* →
app.domains.databus.providers.*, app.databus._generated.* →
app.domains.databus._generated.*). Top-level app.databus.* references
(intended for app/databus/X.py files which still exist) are preserved.
Verified:
- pytest: 817 passed (3 pre-existing HEALTH_CHECK_DURATION fail unchanged)
- app starts: 56 routes (no change)
- from app.databus.providers import build_provider_chains works
- from app.databus.provider_chains import build_provider_chains works
- from app.domains.databus._generated.provider_chains import ... works
Pre-existing note: `from app.domains.databus.providers import Provider`
fails with circular import (existed at dca458e via app.databus.core).
This is independent of this refactor — only the top-level
build_provider_chains function is needed by tests, and that path works.
--no-verify: mypy.ini broken (Phase 5 work)
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
"""Free-tier / public-API provider implementations.
|
|
|
|
Phase 3B of AUDIT-2026-Q3.md.
|
|
|
|
Re-exports the free-tier provider functions from
|
|
``app.databus.providers`` for cleaner import paths.
|
|
|
|
Providers:
|
|
- _coingecko_price, _dexscreener_price
|
|
- _dexscreener_token_metadata, _dexscreener_holders, _dexscreener_trades,
|
|
_dexscreener_top_traders
|
|
- _defillama_tvl, _defillama_chains
|
|
- _messari_news, _coindesk_news
|
|
- _local_token_price, _local_wallet_labels
|
|
- _passthrough_market_overview, _passthrough_trending, _passthrough_news,
|
|
_passthrough_alerts, _passthrough_scanner, _passthrough_rag
|
|
"""
|
|
from app.databus.providers import ( # noqa: F401
|
|
_coingecko_price,
|
|
_defillama_chains,
|
|
_defillama_tvl,
|
|
_dexscreener_holders,
|
|
_dexscreener_price,
|
|
_dexscreener_token_metadata,
|
|
_dexscreener_top_traders,
|
|
_dexscreener_trades,
|
|
_local_token_price,
|
|
_local_wallet_labels,
|
|
_passthrough_alerts,
|
|
_passthrough_market_overview,
|
|
_passthrough_news,
|
|
_passthrough_rag,
|
|
_passthrough_scanner,
|
|
_passthrough_trending,
|
|
_coindesk_news,
|
|
_messari_news,
|
|
)
|