Skip to content
built-for-devsPublic

About

Turn an email address into a cited public developer profile. A Python enrichment waterfall: free layers need no keys, paid layers (Hunter, Tabstack, SixtyFour) run only when their key is set.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Dev Trace (Python)

Turn an email address into a public developer profile. The free layers need no keys.

Quick start · Waterfall · Spend · Node CLI and Claude skill · MIT


Dev Trace takes one email address and returns JSON that describes what public sources say about the person behind it: name, GitHub identity and activity, company, and a rough seniority and role read. It is a Python command-line tool for running that lookup from a shell or a script. Every field records which provider produced it and how confident the match is.

This repository is the Python CLI. The Node CLI and Claude Code skill is dev-trace-skill. The two are separate implementations. They share the idea of a waterfall and the field envelope, not code, flags or output. See How it differs from dev-trace-skill.

Four rules hold for every run:

  • Public sources only. Every field traces to a public source. Nothing is stored. The result is written to stdout.
  • Candidates, not guesses. A GitHub profile is merged only when it resolves at match confidence 0.5 or higher. Logins that were tried and did not resolve are listed under meta.candidates.
  • Paid layers wait for a key. Without a key, a paid layer reports skipped_no_key and sends no request. With a key, it runs on every run that reaches its depth. Read Spend before you add one.
  • No key, no paid call. A run with no keys sends requests only to DNS, Gravatar and GitHub.

Quick start

  1. Use Python 3.10 or newer. The test suite passes on Python 3.12.

    git clone https://github.com/built-for-devs/dev-trace
    cd dev-trace
    python3 -m venv .venv
    source .venv/bin/activate
    python3 -m pip install -r requirements.txt
    python3 -m pip install dnspython   # optional: enables real MX checks
  2. Run a lookup. This example uses a domain that does not exist, so no source matches and no key is needed:

    python3 trace.py no-such-person@example.invalid --pretty

    To look up a real address, use one you are authorized to look up. The free layers will query Gravatar and GitHub about it.

  3. Optional: add keys to a .env file in the checkout. See Keys.

Output

The CLI prints one JSON object with two keys, meta and profile. The run above returns this (trimmed):

{
  "meta": {
    "queried_with": { "email": "no-such-person@example.invalid" },
    "depth_reached": 4,
    "depths": {
      "0_validate": "ran",
      "1_surface": "ran",
      "hunter_verify": "skipped_no_key",
      "2_profile": "no_match",
      "3_enriched": "skipped_no_key",
      "4_deep": "skipped_no_key"
    },
    "match_status": "unverified_candidates",
    "candidates": [{ "login": "no-such-person", "origin": "email_derived", "verified": false }],
    "validation": { "syntax_valid": true, "mx_valid": false, "disposable": false, "freemail": false },
    "overall_confidence": 0.3
  },
  "profile": {
    "company_domain": {
      "value": "example.invalid", "confidence": 0.6, "public": true,
      "sources": [{ "provider": "email_parse" }], "derived": false, "conflicts": []
    }
  }
}

Each field in profile has the same envelope:

Key Meaning
value The value.
confidence 0 to 1. Corroboration from a second source raises it slightly.
public Always true in this version.
sources Providers that returned this value, as { "provider": "..." } objects.
derived true when the value is an inference, such as seniority or role.
conflicts Other values that disagreed. The higher-confidence value is kept.

In meta:

  • depths gives the status of each layer. Values include ran, ok, no_match, rate_limited, skipped_no_key, error and http_<status>.
  • match_status is verified when GitHub resolves at confidence 0.7 or higher, probable when it resolves below that, and unverified_candidates otherwise. At --max-depth 1, a Gravatar hit alone also gives probable.
  • candidates lists GitHub logins that were tried and did not resolve, or resolved below the 0.5 threshold.

Keep saved output private. It contains the address you looked up.

The waterfall

Each layer runs in order and merges into one profile. A layer that cannot run is recorded in meta.depths and the run continues.

Depth Layer Source Key Runs by default
0 validate Syntax check, MX lookup, disposable-domain list none yes
1 surface Gravatar profile; homepage title for non-free-mail domains none yes
1 verify Hunter email verifier (one request) HUNTER_API_KEY yes, if key is set
2 profile GitHub: email search, public profile, languages, activity none (GITHUB_TOKEN raises rate limits) yes
3 enriched Tabstack extract/json on the company site (one request) TABSTACK_API_KEY yes, if key is set
4 deep SixtyFour enrich with the address and resolved name (one request) SIXTYFOUR_API_KEY yes, if key is set

--max-depth sets the ceiling. The default is 4, so with all three keys set, a plain run reaches every layer. A ceiling is not a spending cap. Hunter runs at depth 1, so --max-depth 1 still uses Hunter credits when its key is set. Use --max-depth 0 for DNS-only validation, or --max-depth 2 to stop before Tabstack and SixtyFour.

For free-mail domains such as gmail.com, the homepage scrape (depth 1) and Tabstack (depth 3) are skipped. GitHub (depth 2) still runs.

Spend

Free layers make requests to Gravatar and GitHub. Hunter, Tabstack and SixtyFour are paid. Each is called at most once per run.

Call Runs when Cost
Hunter email-verifier HUNTER_API_KEY set, --max-depth 1 or higher 0.5 Hunter credit per call. Hunter's free plan includes 50 credits a month.
Tabstack extract/json TABSTACK_API_KEY set, --max-depth 3 or higher, company domain (not free mail) 50 Tabstack credits per call, per Tabstack's published table. New accounts include 10,000 free credits.
SixtyFour enrich SIXTYFOUR_API_KEY set, --max-depth 4 (the default) Billed in SixtyFour credits as work completes. This request sets no tier, so the vendor default applies. This is not verified.

What to know before you add a key:

  • SixtyFour has no confirmation step. Once SIXTYFOUR_API_KEY is set, every run at the default ceiling calls it. There is no flag, prompt or MX check in front of it. To keep the key set but skip the call, use --max-depth 3.
  • SixtyFour receives the address and the resolved name. The request is POST https://api.sixtyfour.ai/enrich with a Bearer token. Only eight named fields are kept from the response: full name, current company, current title, location, seniority, LinkedIn URL, GitHub URL and personal website.
  • Tabstack is not called for free-mail addresses. For a gmail.com address, Tabstack makes no request, and meta.depths["3_enriched"] reads skipped_no_key even when the key is set.
  • Tabstack and SixtyFour request shapes are unverified. SixtyFour's API reference documents POST /v1/people/intelligence with an x-api-key header. This code posts to /enrich with a Bearer token. Tabstack's path is /extract/json with no version prefix in this code. Run either layer against a live key and check the response before you rely on its output.

To run with no vendor spend, leave HUNTER_API_KEY, TABSTACK_API_KEY and SIXTYFOUR_API_KEY unset in the environment and in .env. With a Hunter key set, --max-depth 2 skips Tabstack and SixtyFour, but Hunter still runs at depth 1. --max-depth 0 makes no vendor or network call except DNS.

Credit figures come from Hunter's pricing page and Tabstack's pricing page, checked 2026-11-28, and from SixtyFour's credit costs guide. Plan prices and dollar amounts change, so check the vendor page before you budget.

Keys

Every key is optional. Set only the ones you have. Put them in a .env file in the checkout, or in the environment. .env is gitignored, and .env.example is the committed template.

cp .env.example .env    # then add the keys you have
Variable Used by Purpose
GITHUB_TOKEN depth 2 Raises the GitHub limit from 60 requests an hour to 5,000 an hour. The token also enables the contribution count.
HUNTER_API_KEY depth 1 Email verification.
TABSTACK_API_KEY depth 3 Company enrichment.
SIXTYFOUR_API_KEY depth 4 Person enrichment. See Spend.

Get keys from github.com/settings/tokens, hunter.io, tabstack.ai and sixtyfour.ai.

Command-line options

python3 trace.py <email> [--max-depth N] [--depth N] [--pretty]
Option Effect
--max-depth N Ceiling for layers, 0 to 4. Default 4.
--depth N Same as --max-depth. When both are given, --depth wins.
--pretty Indent the JSON. Without it, the output is one line.

The CLI writes to stdout only. It has no file output option.

Privacy

  • Gravatar receives the MD5 hash of the lowercased address in the request URL. Anyone who can see the network traffic can see the hash, and it can be reversed against a list of candidate addresses. Do not run Trace on a network where that matters.
  • GitHub receives the address in an email search. Trace also tries the address's local part as a GitHub login. A match at that confidence is listed as a candidate and not merged.
  • Paid layers receive the address, and for SixtyFour the resolved name. Run them only on addresses you are allowed to send to those vendors.

Development

Install and test:

python3 -m venv .venv && source .venv/bin/activate
python3 -m pip install -r requirements.txt dnspython
python3 -m pytest

Last run: 83 passed on Python 3.12.13 with dnspython installed. Without dnspython, two MX tests fail with AttributeError, because they patch providers.free_sources.dns.

The suite covers the validation step, the envelope and merge rules, and the GitHub provider. HTTP is mocked. No test covers the waterfall in trace.py or the Hunter, Tabstack and SixtyFour calls in providers/keyed_sources.py.

Layout:

trace.py                     CLI entry point and the waterfall
providers/envelope.py        field envelope, merge rules, shared User-Agent
providers/free_sources.py    depth 0 validation, Gravatar, homepage title
providers/github_source.py   depth 2 GitHub identity, languages, activity, derived fields
providers/keyed_sources.py   Hunter, Tabstack and SixtyFour (paid, keyed)
tests/                       pytest suites
SKILL.md                     the skill description for Claude Code
.env.example                 key template (values empty)
requirements.txt             requests, python-dotenv, pytest

Contributing

Issues and pull requests are welcome. Read CONTRIBUTING.md first. For a security problem, follow SECURITY.md and do not open a public issue.

How it differs from dev-trace-skill

Both tools implement the same waterfall idea. They are maintained separately, and a fix in one does not reach the other.

dev-trace (this repo) dev-trace-skill
Runtime Python 3.10 or newer. Needs requests. python-dotenv loads .env, and dnspython enables MX checks; both are optional at runtime. Node 18 or newer. No dependencies.
Invocation python3 trace.py <email> node scripts/dev-trace.mjs <email>, or a Claude Code skill
Hunter person enrichment Not implemented Depth 4
Tabstack bio (/research) Not implemented Runs when a name is resolved, unless --no-bio
SixtyFour Depth 4. Runs on every default run with a key. No flag, prompt or MX check. Depth 5. Runs only with --deep, plus acceptance and an MX record.
Gravatar lookup MD5 of the address SHA-256 of the address
Ceiling variable None DEV_TRACE_MAX_DEPTH
Output Field envelope with conflicts as a list. meta.depths is a map. Field envelope with conflict as one object or null. meta.depths_run is a list. Sources are strings.
Writes files No Yes, with --json <path>

If you need one behavior, check the table before you assume the other repo does the same thing.

License

MIT. See LICENSE.

About

Turn an email address into a cited public developer profile. A Python enrichment waterfall: free layers need no keys, paid layers (Hunter, Tabstack, SixtyFour) run only when their key is set.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages