Skip to main content

Dealport Python SDK, CLI & Agent Tool Adapters

Zero-dependency official Python package (Python >= 3.10, standard library urllib.request, MIT license) for Dealport: the SMB knowledge layer for agents and humans across 28M+ US private companies, 160M+ US property parcels, the commercial buildings they own, and the human principals behind them, with primary public-filing citations.

Every account starts with a $5.00 free USD balance and pays as you go in plain USD. Create scoped API keys under Connect your AI -> API keys at app.dealport.com/connect?tab=keys.

Install

pip install dealport

# Or run the CLI directly with uvx without installing globally:
uvx dealport preview --state OH --naics 238220 --independent --json

Quickstart (Dealport Client)

Dealport() automatically reads DP_API_KEY or ~/.config/dealport/credentials.json (0600 permissions, shared with dealport login and npx dealport login).

from dealport import Dealport, DealportError

dp = Dealport()

# 1. Size a US buy-box for free ($0.00)
preview = dp.preview_companies(
    state="OH",
    naics=["238220"],
    min_employees=15,
    independent=True,
)
print(f"Matching companies: {preview['matching_count']}")

# 2. Search companies & open a cited Record ($0.01/record, $0.00 repeat within 30 days)
companies = dp.search_companies(state="OH", naics=["238220"], independent=True, limit=5)["data"]
record = dp.get_record(companies[0]["id"])["data"]

# 3. Save 0-100 scores & rationales into a Dealport Project ($0.00)
dp.annotate_companies(
    project_name="Ohio Commercial HVAC",
    items=[
        {
            "company_id": record["id"],
            "score": 92,
            "verdict": "priority",
            "rationale": "Active state trade license, 25+ employees, independent owner-operator",
        }
    ],
)

# 4. Resolve verified human owner phone & email ($0.09 hit / $0.00 miss)
try:
    owner = dp.find_owner(record["id"])
    print(owner.get("person"), owner.get("phone"), owner.get("email"))
except DealportError as err:
    if err.is_insufficient_balance:
        print("Top up balance at https://app.dealport.com:", err)

# 5. 50-state US parcel lookup ($0.03/parcel) & LLC unmasking ($0.09 verified hit / $0.00 miss)
parcel = dp.lookup_property("412 Atlantic Avenue, Brooklyn, NY", include_permits=True)
unmasked = dp.resolve_llc_owner("Atlantic Holdings LLC", state="NY")

2-Line Agent Tool Binding (dealport.tools)

Bind all 47 Dealport MCP tools directly into Python agent frameworks without external wrapper packages:

from dealport import Dealport
from dealport.tools import anthropic_tools, as_callables, dispatch_tool_call, openai_tools

dp = Dealport()

# OpenAI Chat Completions / Responses SDK:
oa_tools = openai_tools()
# result = dispatch_tool_call(dp, tool_call.function.name, tool_call.function.arguments)

# Anthropic Messages SDK:
claude_tools = anthropic_tools()
# result = dispatch_tool_call(dp, tool_use.name, tool_use.input)

# OpenAI Agents SDK, Agno, CrewAI, AutoGen, DSPy, LlamaIndex, or LangChain StructuredTool.from_function:
functions = as_callables(dp)

Pass include_avery_mutations=True to include avery_reach_out and avery_accept_intro in agent tool lists, or include_paid=False to restrict an agent strictly to $0.00 read/sizing/matching/annotation tools.

CLI (dealport / uvx dealport)

dealport login --key dp_live_...
printf '%s\n' "$DP_API_KEY" | dealport connect --all --api-key-stdin
dealport doctor --proof
dealport balance
dealport preview --state OH --naics 238220 --min-employees 15 --independent
dealport search --state OH --naics 238220 --limit 5 --json
dealport property "412 Atlantic Avenue, Brooklyn, NY" --permits
dealport llc "Atlantic Holdings LLC" --state NY
dealport records --type filing --state OH --preview
dealport record <company_id> --evidence
dealport playbooks list
dealport projects create --name "Ohio HVAC Mandate" --state OH --naics 238220 --independent
dealport projects run <project_id> --count 20
dealport owner <company_id>

License

MIT

Metadata

Release files for dealport 0.1.7

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

Source distribution (sdist)

Source distribution for dealport 0.1.7
File Size Uploaded Provenance Actions
dealport-0.1.7.tar.gz 52.2 kB With provenance Details for dealport-0.1.7.tar.gz

Built distribution (wheel)

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

Total release size: 92.8 kB

Release files / dealport-0.1.7.tar.gz

Download URL dealport-0.1.7.tar.gz
Size 52.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9d81edfe75b35f8145bbccea2d94d7d410986637c5e671fbf0426b005680e470
BLAKE2b-256 checksum
How to use checksums
2e5496b3a676ab9f0899affe776cebb4413906ab63501119ee9518143767738d
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 28, 2026.

Transparency log

Release files / dealport-0.1.7-py3-none-any.whl

Download URL dealport-0.1.7-py3-none-any.whl
Size 40.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5353a4aa53cca2f3aba6bec5658bdf876ac58a4cb2e7f6496838292ff8f490d5
BLAKE2b-256 checksum
How to use checksums
809d2a569b45b06400cf41f9918efc112b23ced1cceb517c06245a933274093e
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 28, 2026.

Transparency log

Security for dealport 0.1.7

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 dealport-0.1.7.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 28, 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