Skip to main content

pdatum

Job postings, the employers behind them, federal awards to any company, BDC lenders' books and the private companies they hold, state WARN layoff notices, and franchisors' filings with the states, from the command line. Built for scripts and AI agents: everything prints JSON on request, errors go to stderr, and large pulls stream JSON lines.

pdatum is the data jobwolverine.com and rxraven.com are built on.

Install

macOS, Linux, WSL:

curl -fsSL https://pdatum.pearachute.com/install.sh | sh

Windows PowerShell:

irm https://pdatum.pearachute.com/install.ps1 | iex

Windows CMD:

curl -fsSL https://pdatum.pearachute.com/install.cmd -o install.cmd && install.cmd && del install.cmd

The installer uses uv or pipx if you have one, and installs uv (which brings its own Python) if you don't, then puts pdatum on your PATH for new terminals. PDATUM_NO_MODIFY_PATH=1 leaves your PATH alone. Already have Python? pip install pdatum works too.

Use

pdatum key save pdatum_...    # keys are issued by hand for now

pdatum jobs count --q "data engineer" --posted-since 30d
pdatum jobs search --q nurse --remote
pdatum jobs pull --brand rxraven > jobs.jsonl
pdatum employers get salesforce --json
pdatum awards "Acme Corp"

Commands

Command
pdatum jobs count [filters] Returns how many open jobs match, and nothing else. It's cheap, so run it first.
pdatum jobs search [filters] [-n N] Shows the newest matches: one page.
pdatum jobs pull [filters] [--full] [--max N] Streams every match to stdout as JSON lines. Progress goes to stderr.
pdatum jobs get ID Returns one job, open or closed, with its full text.
pdatum jobs changes --since T Streams every job added, closed or reopened since T.
pdatum employers list / pull / get SLUG Employer records. Each fact names its source.
pdatum awards NAME... [--employer SLUG] Federal contracts, IDVs and grants to a company, from USAspending.gov: counts, amounts, agencies, and when the work ends. Any company, by its whole name. Loans are left out.
pdatum bdc book TICKER A business development company's book: its status, version, tables, and the caveats to read first. Asking for one we've never read starts its first read, which takes a while.
pdatum bdc pull TICKER [--out DIR] Writes the whole book to a folder: manifest.json and one JSON-lines file per table, each checked against the manifest.
pdatum bdc request TICKER Reads a lender again now, to take in what it has filed since, or after a read that failed.
pdatum companies resolve NAME Looks up which company a name belongs to: matched, ambiguous or unknown. Starts nothing.
pdatum companies request NAME Gives the same answer for any name. For a name we don't hold, it searches EDGAR for the BDCs that name it and reads them. That takes a while.
pdatum companies list / pull / get SLUG The registry: each company's names, and the lenders that hold it.
pdatum warn states Lists every state, whether we read it or not: when it was last read, how many notices we hold, and why we don't read the rest.
pdatum warn list / count / pull [filters] State WARN notices of layoffs and closures, newest notice first.
pdatum warn changes --since T Streams every notice read for the first time, or newly linked to one of our records, since T.
pdatum franchises states Lists every state, whether we read its franchise filings or not, and why not.
pdatum franchises list / count / pull [filters] Franchisors' registrations and exemption notices with the states, newest first.
pdatum franchises changes --since T Streams every filing read for the first time, changed by its state, or newly linked to one of our records, since T.
pdatum me Shows your key, its scopes, and what it has used.
pdatum skill Prints short instructions for an AI agent to save.
pdatum guide Prints the full API reference, from the server.

The job filters are --brand, --employer, -q, --location, --remote/--not-remote, --posted-since and --posted-before. A time can be 2026-09-01, an age like 7d, 12h or 30m, or epoch seconds.

BDC books

A book is what one business development company reports lending, read from its SEC filings: its positions quarter by quarter, the companies behind them under every name they are filed as, how every other lender we read marks the same loans, what changed between filings, the lender's own reported totals, and every figure a report would quote, already computed.

pdatum bdc book WHF                 # read the caveats before any number
pdatum bdc pull WHF --out whf/      # manifest.json + positions.jsonl, figures.jsonl, ...

The same version is the same data, so a harness can cache on it. Quote the figures table rather than doing arithmetic on positions.

Asking for a lender we've never read starts its first read. pdatum bdc book FSK says it's queued; ask again later, because a first read takes a while. A book is only rebuilt when asked: pdatum bdc request WHF reads what the lender has filed since. A ticker that isn't a business development company says so.

Companies

A private borrower has no ticker. It's a line in its lenders' schedules, spelled a little differently by each one. The registry joins those lines into one company with one slug, and that slug is the company field in every book table.

pdatum companies resolve "Clean Solutions Group"  # which company a name belongs to
pdatum companies request "Zeta Holdings, LLC"    # not held yet: search EDGAR and read its lenders
pdatum companies get clean-solutions-buyer-inc   # every name, and each lender that holds it

Matching ignores case and spacing, and nothing else. An unknown name comes back with similar names, and none of them is a match until you decide it is. Slugs stay valid: when two companies merge, the old slug answers with merged_into, pointing at the company it became.

WARN notices

An employer with 100 or more staff has to give 60 days' notice of a mass layoff or a closure, and each state publishes the notices in its own format. pdatum serves every notice from every state we read, in one shape.

pdatum warn states                            # read this first
pdatum warn list --state tx --notice-since 90d
pdatum warn pull --state ca --state ny > warn.jsonl

Not every state is read, and a state we don't read isn't a state with no layoffs. pdatum warn states says which states are read, when each was last read, and why we don't read the rest. So no command answers a state it holds nothing from with a zero. Asking only about states that haven't had their first read yet says "Not read yet" and exits 1. Asking only about states we don't read is an error that says why. An answer that leaves some states out lists them on stderr.

A notice links to a company and to an employer record when the employer's name is theirs. That's a match on the name, not proof that it's the same business.

The filters are --state (repeat it for more than one), --company, --employer, -q, --notice-since and --notice-before.

Franchise filings

Before a franchisor sells franchises in some states, it files there: a registration, or a notice that it's exempt. pdatum serves every filing from every state we read, in one shape. Texas comes first, with every filing back to 1985.

pdatum franchises states                      # read this first
pdatum franchises list -q "snap fitness"
pdatum franchises pull --status terminated --filed-since 365d > ended.jsonl

A filing gives the franchisor's legal name, its brands and any names it gave up, in names. A franchisor usually files under a company named for its brand, not the company a lender holds: Lift Brands files as Snap Fitness, Inc. So a filing links to a company in two ways. One is by name, which is a match on the name, not proof. The other is a link someone reviewed, whose evidence says what it rests on; the table marks those "(reviewed)".

States work as they do for WARN notices: check pdatum franchises states first, a state waiting for its first read says "Not read yet", and an answer that leaves states out lists them on stderr.

The filters are --state, --company, --employer, -q, --status (registered, exempt or terminated), --filed-since and --filed-before.

Keeping a copy in sync

pdatum jobs pull > jobs.jsonl                       # once
pdatum jobs changes --since 2026-09-01 > delta.jsonl

Upsert each line of delta.jsonl by id. A line with "open": false means that job has closed. The last line on stderr gives the --since to use next time. A change can arrive twice, but never not at all.

Keys and configuration

The key is taken from --api-key, then PDATUM_API_KEY, then the config file, which pdatum key save <key> writes after checking the key with the server. The config file is ~/.pdatum.json; PDATUM_CONFIG_PATH moves it. PDATUM_URL or pdatum config --url points the CLI at another server.

Every command takes --json, or set PDATUM_OUTPUT=json. Errors go to stderr, and the exit code is non-zero: 1 for a failure, 2 for a usage error.

Development

pip install -e .
python -m unittest discover -s tests

The tests never reach a server. The API this talks to is documented at https://pdatum.pearachute.com/api/v1/docs, and pdatum guide prints the same reference from whichever server you point it at. MIT licensed.

Metadata

Release files for pdatum 0.5.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 pdatum 0.5.0
File Size Uploaded Provenance Actions
pdatum-0.5.0.tar.gz 43.6 kB With provenance Details for pdatum-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdatum 0.5.0
File Interpreter ABI Platform Actions
pdatum-0.5.0-py3-none-any.whl Python 3 none any Details for pdatum-0.5.0-py3-none-any.whl

Total release size: 71.9 kB

Release files / pdatum-0.5.0.tar.gz

Download URL pdatum-0.5.0.tar.gz
Size 43.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d4180899a382535fc55c024d46843abf00706a408e0ada8f42cdf8930aa16642
BLAKE2b-256 checksum
How to use checksums
0e8b3149991448cfc97d3b0aa9eb2004e09f08322d49ce5dc3fdad91d4d49b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / pdatum-0.5.0-py3-none-any.whl

Download URL pdatum-0.5.0-py3-none-any.whl
Size 28.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae376b2e4abb547a85996ef8326ad0ed27464a88b6fa0afe32597e5d811f697b
BLAKE2b-256 checksum
How to use checksums
f5e4fe74f0744ed942f3865716e4faf6f921883da26135e53c43ee4357c78b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for pdatum 0.5.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pdatum-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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.

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