Skip to main content

varve-data

The Python client for Varve Data: point-in-time US company fundamentals and SEC filing events, built directly from EDGAR.

It downloads your datasets (and keeps them current, fetching only files that changed), loads any table as a pandas DataFrame or DuckDB view, and lines fundamentals up by the date they became public, so a backtest never sees a number before it was filed.

pip install varve-data            # add [duckdb] for SQL over the full files

Try it on the free sample (no key)

import varvedata as vd

q = vd.load("quarterly", sample=True)          # 25 companies, full quarterly history
vd.snapshot("2024-10-31", ["revenue", "eps_diluted"], sample=True)

Your data

Your personal account link (from the purchase email or the account page) is your key.

varve login        # paste the link once; stored in ~/.varve/key, readable only by you
varve sync         # download everything on your plan; rerun daily for Events updates
varve tables       # what's available

Or from Python: vd.sync(). Files go to ~/.varve/data (set VARVE_DATA to change it). A sync checks your plan, downloads only files whose checksum changed, verifies every file, and unpacks the 13F positions archive.

Loading tables

q = vd.load("fundamentals_quarterly")                        # or just "quarterly"
ins = vd.load("insider_transactions",
              columns=["filed", "ticker", "code", "shares", "price", "value"],
              filters=[("code", "==", "P"), ("filed", ">=", pd.Timestamp("2024-01-01"))])
pos = vd.load("13f_positions", filters=[("period", "==", "2026-06-30")])

columns and filters are applied while reading the parquet file, so pulling a slice of the 10-million-row insider table takes a fraction of a second.

con = vd.connect()                                           # DuckDB, one view per table
con.sql("""select ticker, sum(value) as bought from events_insider_transactions
           where code = 'P' and filed >= '2026-01-01' group by 1 order by 2 desc limit 10""").df()

Point-in-time helpers

function what it does
vd.as_of(panel) For each (varve_id, date) row, attach the newest quarter that was public on that date.
vd.snapshot(date) Every company's newest public quarter on one date. max_age_days=200 keeps only companies still reporting.
vd.ttm(q) Trailing-twelve-month figures from four consecutive quarters, dated when the fourth was filed. Works with as_of and snapshot.
vd.map_tickers(df) (ticker, date) → varve_id and cik, using the company that held the ticker on that date (recycled tickers map correctly).

A typical backtest join, starting from your own price data:

prices = vd.map_tickers(prices, ticker_col="symbol", date_col="date")   # adds varve_id, cik
t = vd.ttm(vd.load("quarterly"))
panel = vd.as_of(prices, fields=["revenue", "net_income", "equity"], fundamentals=t)
panel["earnings_yield"] = panel["net_income"] / (panel["close"] * panel["shares_outstanding"])

With Fundamentals 0.3.0 the factors table has 20+ price-free factors (gross profitability, accruals, asset growth, net share issuance, SUE, Piotroski F-score ...) already dated by filed:

fac = vd.load("factors")
panel = vd.as_of(prices, fields=["gross_profitability", "accruals", "sue", "f_score"], fundamentals=fac)

Why it matters: lined up by period_end instead of filing date, 62% of company-months in a typical backtest use a quarter that hadn't been filed yet. See the look-ahead bias study.

More

MIT licensed. The data itself is covered by your Varve Data licence.

Metadata

Release files for varve-data 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for varve-data 0.1.0
File Size Uploaded Provenance Actions
varve_data-0.1.0.tar.gz 13.6 kB Without provenance Details for varve_data-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for varve-data 0.1.0
File Interpreter ABI Platform Actions
varve_data-0.1.0-py3-none-any.whl Python 3 none any Details for varve_data-0.1.0-py3-none-any.whl

Total release size: 28.4 kB

Release files / varve_data-0.1.0.tar.gz

Download URL varve_data-0.1.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6eb79da7d0588f60e6907538a0ee27b0e57ec7ebee50566a42a26bddf02842d9
BLAKE2b-256 checksum
How to use checksums
f0b624ca88a714541f0c20d4345a2538c28eb578d587a1e8e097c61d0dcc9b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / varve_data-0.1.0-py3-none-any.whl

Download URL varve_data-0.1.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd9f0864f3583b0b97c29cb2782306f6330fd885a07e218db14ce78cfc87b161
BLAKE2b-256 checksum
How to use checksums
ec2bc18aaabb4f0bd6efab437a7f6cce59eea9bc814c0a791b7dcf32832c7c5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for varve-data 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page