Dmitry Beresnev commited on
Commit ·
a71dd82
1
Parent(s): 7b8151d
uv migrations
Browse filesFiles changed (8)
- .gitignore+3
- README.md+7-1
- app.pyAdded+5
- docs/CURRENT_VERSION.md+2-2
- pyproject.tomlAdded+24
- requirements.txtDeleted-6
- src/__init__.pyAdded+1
- src/core/main.py+23-2
164 unmodified lines165166167164 unmodified lines# Model checkpoints*.ckpt164 unmodified lines165166167168169170164 unmodified lines# Model checkpoints*.ckpt*.md*.python-version
30 unmodified lines3132333435363730 unmodified lines## Run```bashpython -m src.core.main```## Notes30 unmodified lines3132333435363738394041424330 unmodified lines## Run```bashuv syncuv run python -m src.core.main```## App Entrypoint```bashuv run python app.py```## Notes
12345from src.core.main import run_forever
if __name__ == "__main__": run_forever()254 unmodified lines255256257258259260261262254 unmodified linesInstall dependencies and run:```bashpip install -r requirements.txtpython -m src.core.main```Recommended quick checks:254 unmodified lines255256257258259260261262254 unmodified linesInstall dependencies and run:```bashuv syncuv run python -m src.core.main```Recommended quick checks:
123456789101112131415161718192021222324[project]name = "market-analyzing-platform"version = "0.1.0"description = "Market-wide risk radar with universe loading, price ingestion, and alerting."readme = "README.md"requires-python = ">=3.10,<3.13"dependencies = [ "lxml", "numpy", "pandas", "pyyaml", "requests", "yfinance",]
[project.scripts]market-analyzing-platform = "src.core.main:run_forever"
[build-system]requires = ["hatchling"]build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]packages = ["src"]123456yfinancepandasnumpyrequestslxmlpyyaml1"""Top-level package marker for local imports and packaging."""40 unmodified lines4142434445464718 unmodified lines66676869707140 unmodified linesreturn "equity"if __name__ == "__main__":pubsub = PubSub()notifier = TelegramNotifier()queue = AlertQueue(max_retries=ALERT_MAX_RETRIES, backoff_base_sec=ALERT_BACKOFF_BASE_SEC)18 unmodified linessnapshot = loader.build_snapshot(universe)pubsub.publish(TOPICS["universe_snapshot"], snapshot)while True:run_once(pubsub, loader, universe, queue, notifier)time.sleep(POLL_INTERVAL_SEC)40 unmodified lines4142434445464718 unmodified lines66676869707172737475767778798081828384858687888990919240 unmodified linesreturn "equity"def build_runtime():pubsub = PubSub()notifier = TelegramNotifier()queue = AlertQueue(max_retries=ALERT_MAX_RETRIES, backoff_base_sec=ALERT_BACKOFF_BASE_SEC)18 unmodified linessnapshot = loader.build_snapshot(universe)pubsub.publish(TOPICS["universe_snapshot"], snapshot)return {"pubsub": pubsub,"notifier": notifier,"queue": queue,"loader": loader,"universe": universe,}def run_single_cycle(runtime=None):state = runtime or build_runtime()run_once(state["pubsub"], state["loader"], state["universe"], state["queue"], state["notifier"])return statedef run_forever():state = build_runtime()while True:run_once(state["pubsub"], state["loader"], state["universe"], state["queue"], state["notifier"])time.sleep(POLL_INTERVAL_SEC)if __name__ == "__main__":run_forever()
.gitignore+3
README.md+7-1
app.pyAdded+5
docs/CURRENT_VERSION.md+2-2
pyproject.tomlAdded+24
requirements.txtDeleted-6
src/__init__.pyAdded+1
src/core/main.py+23-2