Python client for the TrustMRR API
Project description
trustmrr 🐍💸
A Python client for the TrustMRR API,
for people who like their startup data the way they like their coffee:
strong, typed, and delivered in cents.
What is this? 🤔
You want to know which startups are on sale. You want to know their MRR, their multiples, their vibes. You want it in Python. You do not want to write requests.get(...) for the seventeenth time this week.
This library does that. You're welcome.
Install 📦
pip install trustmrr
That's it. No build step. No native deps. No "first install Rust." It's 2026 and we're not animals.
60-second quickstart ⏱️
from trustmrr import TrustMRRClient
client = TrustMRRClient(api_key="tmrr_your_api_key") # don't commit this. don't.
deals = client.list_startups(sort="best-deal", on_sale=True, limit=5)
for s in deals["data"]:
print(f"{s['slug']:20} MRR ${s['revenue']['mrr']/100:>10,.2f} multiple {s['multiple']}x")
Output (your numbers will vary, theirs always do):
acmehq MRR $ 35,000.00 multiple 3.2x
widgetco MRR $ 18,420.00 multiple 2.7x
...
Pagination, the lazy way 😴
You could write a while True: with a page counter and a hasMore check. Or you could not.
for startup in client.iter_startups(category="SaaS", min_mrr=100_000):
print(startup["slug"])
iter_startups yields rows forever until the API politely says "I have no more startups for you." It will then stop. Generators: still good.
All the knobs 🎛️
Every parameter is keyword-only and optional. Set what you need, ignore the rest.
| Knob | Type | What it does |
|---|---|---|
page |
int |
Page number (≥ 1). For when you're feeling sequential. |
limit |
int |
1–50. The API draws the line at 50. We agree with the API. |
sort |
str |
One of: revenue-desc, revenue-asc, price-desc, price-asc, multiple-asc, multiple-desc, growth-desc, growth-asc, listed-desc, listed-asc, best-deal. |
on_sale |
bool |
True for "show me the bargain bin." |
category |
str |
"SaaS", "AI", "fintech", and 20 friends. |
x_handle |
str |
Founder's X/Twitter handle. Skip the @, we'll know. |
min_revenue / max_revenue |
number |
Last-30-day revenue, in cents. |
min_mrr / max_mrr |
number |
MRR, in cents. |
min_growth / max_growth |
number |
Decimal. 0.1 = 10%. 1.0 = "are you sure?" |
min_price / max_price |
number |
Asking price, in cents. |
💡 Everything monetary is in cents.
42500means$425.00. Yes, we checked. Twice. Divide by 100 before showing it to humans.
When things go sideways 💥
Non-2xx responses raise TrustMRRError. It has a .status_code and a .payload, both of which are nicer than a generic requests.HTTPError.
from trustmrr import TrustMRRError
try:
client.list_startups()
except TrustMRRError as e:
if e.status_code == 401:
print("Your key is wrong, or expired, or imaginary.")
else:
print(f"API said {e.status_code}: {e.payload}")
Wait, where do I get an API key? 🔑
trustmrr.com. Then read the API docs for the source of truth on parameters and response shape. (This README is the friendly tour; the docs are the legal text.)
Development 🛠️
git clone https://github.com/SergeySetti/trustmrr-python.git
cd trustmrr-python
pip install -e ".[test]"
pytest
All tests are offline — HTTP is mocked, your wallet is safe.
Want to help? See CONTRIBUTING.md. PRs welcome, opinions free.
License 📜
Apache 2.0. Use it, fork it, ship it, sell it. Just don't sue us.
Made with 🐍, ☕, and a healthy distrust of un-typed JSON.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trustmrr-1.0.0.tar.gz.
File metadata
- Download URL: trustmrr-1.0.0.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7918a0ddcdbe18a30bfc7c22e5e0d2b3d5b9251468aa6232d6a5454ce5c0c968
|
|
| MD5 |
a22197e86c6766fd6640e7ab72c9d00e
|
|
| BLAKE2b-256 |
5d70b6f5475c14d5e523cb47a945abb98cd3743fe168f4df8862ca1e87673b12
|
Provenance
The following attestation bundles were made for trustmrr-1.0.0.tar.gz:
Publisher:
publish.yml on SergeySetti/trustmrr-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trustmrr-1.0.0.tar.gz -
Subject digest:
7918a0ddcdbe18a30bfc7c22e5e0d2b3d5b9251468aa6232d6a5454ce5c0c968 - Sigstore transparency entry: 1724769955
- Sigstore integration time:
-
Permalink:
SergeySetti/trustmrr-python@c95034dcb127a94e9a3e0e9834d1f6fcbf3d141c -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SergeySetti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c95034dcb127a94e9a3e0e9834d1f6fcbf3d141c -
Trigger Event:
push
-
Statement type:
File details
Details for the file trustmrr-1.0.0-py3-none-any.whl.
File metadata
- Download URL: trustmrr-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e61d5aa9a744121aaa0669171c280935f987f1c35429aa8b3e5456b05d9402e
|
|
| MD5 |
8325d2dd5fcf61959dd006debbf648b2
|
|
| BLAKE2b-256 |
f26faf72b7165ca8d74f3f6cb01119dfecea70a4e9c602b09382b8ee21345013
|
Provenance
The following attestation bundles were made for trustmrr-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on SergeySetti/trustmrr-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trustmrr-1.0.0-py3-none-any.whl -
Subject digest:
8e61d5aa9a744121aaa0669171c280935f987f1c35429aa8b3e5456b05d9402e - Sigstore transparency entry: 1724770170
- Sigstore integration time:
-
Permalink:
SergeySetti/trustmrr-python@c95034dcb127a94e9a3e0e9834d1f6fcbf3d141c -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SergeySetti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c95034dcb127a94e9a3e0e9834d1f6fcbf3d141c -
Trigger Event:
push
-
Statement type: