Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

companystack

Latest version: v0.1.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
PyPI package Publisher: companystackltd
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

companystack was last scanned on 30 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 30 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 30 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

CompanyStack for Python

The Python client for the CompanyStack API: UK company data from Companies House. It covers company search and profiles, officers, persons with significant control, filing history, financials parsed from filed accounts, health scores, KYB checks, the register change feed and your company lists.

  • Typed: every response model is a TypedDict, so mypy and your editor know the fields.
  • Sync (CompanyStack) and asyncio (AsyncCompanyStack) clients on httpx.
  • Retries a 429 after Retry-After, and retries 5xx and network errors on reads.
  • Pagination helpers (iter_*) for search, filings, list items, the change feed, KYB checks and prospects.

Requires Python 3.9 or later.

Install

pip install companystack

Quick start

Get an API key (it starts with cs_) by signing up free: no card, 1,000 requests a day on the Free plan. Then set it in COMPANYSTACK_API_KEY, or pass api_key=.

from companystack import CompanyStack

cs = CompanyStack()  # reads COMPANYSTACK_API_KEY

results = cs.search_companies(q="tesco", limit=5)
for company in results["results"]:
    print(company["company_number"], company["company_name"], company["company_status"])

profile = cs.get_company("00445790")
print(profile["accounts"]["next_due"])

Examples

# Officers and beneficial owners (Starter plan and above)
officers = cs.list_officers("00445790")
pscs = cs.list_persons_with_significant_control("00445790")

# Financials from filed accounts. Money values are whole pounds (GBP) as filed, not pence.
history = cs.get_financial_history("06450847")
for period in history["periods"]:
    print(period["balance_sheet_date"], period["net_assets"], period["turnover"])

# Health score: a rules-based 0-100 indicator (not a credit rating)
score = cs.get_health_score("06450847")
print(score["overall_score"], score["grade"], score["risk_level"])

# KYB check. Each call uses quota and stores a record on your account.
check = cs.run_kyb_check({"company_number": "06450847", "expected_name": "Club Free Spirit Limited", "reference": "client-42"})
print(check["outcome"], check["reason_codes"])

# Every search result, fetching pages as you go
for company in cs.iter_search_companies(q="bakery", town="LEEDS", max_items=200):
    print(company["company_name"])

# The change feed: store the cursor and resume from it next time
page = cs.list_changes(types="added,dissolved", postcode="LS")
cursor = page["next_cursor"]

# Your lists
lists = cs.list_lists()
cs.add_list_items(42, {"items": [{"company_number": "00445790", "custom_ref": "CL-0042"}]})
asyncio
import asyncio
from companystack import AsyncCompanyStack

async def main():
    async with AsyncCompanyStack() as cs:
        company = await cs.get_company("00445790")
        async for event in cs.iter_list_changes(types="added", max_items=100):
            print(event["company_number"], event["change_type"])

asyncio.run(main())

Errors

Every failure raises a subclass of CompanyStackError, which carries status, code, body, upgrade_url and retry_after:

Exception When
AuthenticationError 401: the key is missing, malformed or revoked
PermissionDeniedError 403: your plan does not include the endpoint (code == "plan_upgrade_required"; see upgrade_url)
NotFoundError 404
ValidationError 400 or 422
ConflictError 409
RateLimitError 429 after the retries; retry_after says how long to wait
ServerError 5xx
APIConnectionError No response (network error or timeout)
from companystack import CompanyStack, PermissionDeniedError, RateLimitError

try:
    cs.get_health_score("00445790")
except PermissionDeniedError as e:
    print("Upgrade at", e.upgrade_url)
except RateLimitError as e:
    print("Try again in", e.retry_after, "seconds")

Configuration

CompanyStack(
    api_key="cs_…",          # default: COMPANYSTACK_API_KEY
    base_url="https://api.companystack.co.uk",
    timeout=30.0,            # seconds per attempt
    max_retries=2,           # 429 on any method; 5xx and network errors on GET
    max_retry_delay=60.0,    # cap on Retry-After waits
    http_client=None,        # bring your own httpx.Client (proxies, transports)
)

After each call, cs.last_rate_limit holds the rate-limit headers (limit, remaining, reset, daily_limit, daily_remaining). What each plan includes, and its limits, is on the pricing page.

Development

_generated.py is generated from the OpenAPI specification and is replaced on each release, so send changes to _base.py (the runtime) or open an issue.

pip install -e ".[test]"
pytest            # runs against a local mock server; no network, no key
mypy

Pricing

Free API plan: £0, 1,000 requests a day, 30 a minute, no card: search (first page, up to 10 results), autocomplete and full company profiles. Starter: £29/month or £288/year, adding officers, owners (PSC), filing history, filed accounts and health scores. Pay as you go, without a monthly plan: prepaid credits from £10 (1,000 credits), used only for calls your plan does not include. Current prices and limits: companystack.co.uk/pricing.

About the data

The data is a copy of public registers (Companies House and the others listed at companystack.co.uk/data-sources), as CompanyStack holds them, and can be incomplete or out of date. Register details and accounts figures are the company's own filings, shown as filed: CompanyStack does not audit or verify them. Health scores and KYB results are indicators that support your own checks, not credit ratings or advice.

Contains public sector information licensed under the Open Government Licence v3.0. CompanyStack is not affiliated with or endorsed by Companies House.

Licence

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases companystack

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229