Skip to main content

Python SDK for the YUCLAW v3.0 evidence-first financial research platform. Distribution name is `yuclaw-evidence`; import as `yuclaw_py`. Research / education only — not investment advice.

Project description

yuclaw-evidence

Python SDK for the YUCLAW open-source financial intelligence platform.

Disclaimer. Research and education only. Not investment advice. Signal labels are research classifications, not buy/sell recommendations. YUCLAW is not a registered investment adviser. Past results — backtested or forward-tracked — do not predict future performance.

Install

pip install yuclaw-evidence
# or, with notebook extras (matplotlib + jupyter for `04_backtest_analysis`):
pip install "yuclaw-evidence[notebooks]"

Quickstart

import yuclaw_py

# Two access modes:
#   source="postgres" — direct local read (requires the v3.0 stack)
#   source="api"      — REST API (Day 11+, hosted at YuClawLab)
client = yuclaw_py.Client(source="postgres", dsn="dbname=yuclaw_events")

# Latest composite signal for a ticker
sig = client.signal("NVDA")
print(sig["label"], sig["score"])
#> NEUTRAL 0.312

# Full `why` — signal + ranked evidence events with source URLs
why = client.why("NVDA")
for ev in why["evidence"]:
    print(ev["event_type"], ev["raw_excerpt"][:60])

# Point-in-time replay (must already be materialized via `python3 -m v3.cli replay`)
hist = client.replay("AMD", date="2026-03-01")
print(hist["label"], hist["score"])

# Backtest + Forward-tracking ledger as pandas DataFrames
panels = client.backtest()
panels["backtest"].head()
panels["forward"].head()

# Raw events for a ticker
df = client.events("AMD", since="2026-05-01")

# Universe
client.universe()  # list of 79 tickers

What you get

Every signal-bearing return carries a compliance dict:

{"not_advice": True, "research_only": True, "not_registered_adviser": True}

— and the public vocabulary is strictly: STRONG_BULLISH, BULLISH, NEUTRAL, WATCH, WEAKENING, NEGATIVE_EVENT, BEARISH_WATCH, RISK_ALERT.

No SELL, no SHORT. Anywhere.

Starter notebooks

sdk/notebooks/ ships five self-contained notebooks:

  1. 01_quickstart.ipynb — install, connect, first signal
  2. 02_evidence_layer.ipynb — trace a signal to its SEC filings
  3. 03_time_machine.ipynb — replay across dates, verify point-in-time integrity
  4. 04_backtest_analysis.ipynb — load the two panels, plot hit rates (with in-sample caveats)
  5. 05_signal_radar.ipynb — change detection + custom watchlist alert

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yuclaw_evidence-3.0.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yuclaw_evidence-3.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file yuclaw_evidence-3.0.0.tar.gz.

File metadata

  • Download URL: yuclaw_evidence-3.0.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for yuclaw_evidence-3.0.0.tar.gz
Algorithm Hash digest
SHA256 dc9c85ade514d23a78ff30638e525169cb7b4dd1ec60088809cc8f8e94337988
MD5 bad2f7eb3f66a5cff2c10c3fce866252
BLAKE2b-256 ebd47d6033accfc7a5fd153923a17eb43d1589d57c3360f170cdb3da8c4670b1

See more details on using hashes here.

File details

Details for the file yuclaw_evidence-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yuclaw_evidence-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 045ce3d93ec2517eb3f6caa081293c50e7e160d4c4af4bd83e949589f53303f6
MD5 8d926fa4e7ff7c33769ffb05f16bc21d
BLAKE2b-256 6df225138d4c5874bcf0532e5a8570905f6801cdd279c0b520e2b1a15d374318

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page