Skip to main content

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 — in-sample or forward-tracked — do not predict future performance.

Install

pip install yuclaw-evidence
# or, with notebook extras (matplotlib + jupyter for `04_validation_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"])

# In-Sample Validation + Forward Tracking Ledger as pandas DataFrames
panels = client.validation()
panels["in_sample"].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_validation_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.

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.1.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.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yuclaw_evidence-3.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f9041bfbe7d1f74905668526bd768dffa91b660653d833001b0b8db609d2116f
MD5 8b8b9ab4dba7f9bfc425483bfb93dc98
BLAKE2b-256 93e5cad7fe852c2da01622e0027c40dc1006df6e94c28bebd01ad585f61d14ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yuclaw_evidence-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aedad834c38da9430349097c6e16d851c8a127f1649eb4af878c1a996118a186
MD5 1e43a34ede7b304d5dbc258d26cba25a
BLAKE2b-256 d77d62d316954eff027e8edc269d457f9b64d6a40e7089ecc4bf365bb0b58fc5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 files

3.0.0

2 files

Supported by

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