invespider
Official Python client for the InveSpider API — deterministic macroeconomic regime data. No AI, no black box: every number traces back to a real, cited source (CBRT EVDS, World Bank Open Data, IMF World Economic Outlook, Fitch sovereign ratings) and a documented, literature-standard method (rolling Z-score normalization, Winsorization, and Growth×Inflation quadrant classification — the "Investment Clock" framework, Merrill Lynch / Trevor Greetham, 2004).
This API never gives investment advice. It answers "what regime is this economy in, and what does history say it most resembles" — never "buy", "sell", or "hold".
Install
pip install invespider
Quick start
from invespider import InveSpiderClient
client = InveSpiderClient(api_key="YOUR_API_KEY") # optional -- omit for anonymous access, shares a lower rate limit
result = client.compare(
country="TR",
year_a="2024", quarter_a="Q2",
year_b="2018", quarter_b="Q3",
)
for period_id, period in result.periods.items():
print(period_id, period.regime.quadrant, "-", period.regime.description)
print("Axis deltas:", result.deltas)
print("Quadrant stability (last periods):", result.stability)
Why this is cheap to build on
All data is precomputed server-side on a scheduled batch cadence (monthly/ quarterly ingestion + recompute) — every API call is a fast read against already-computed results. There's no per-request compute cost passed on to you, and no rate-limit pressure from "expensive" queries: similarity search and N-way comparisons cost the same as a single vector lookup.
Access and rate limits
Free during this initial phase, for everyone -- there is currently no paid
tier. All 27 supported countries, full ingested history, and N-way
comparison (2-4 periods) are available whether or not you pass an
api_key.
The only thing an API key changes today is rate limiting: anonymous requests share one limit; a key gets its own tracked 200 requests/24h (sliding window). Create a key from your account's API Keys page at https://invespider.com. If paid tiers with higher limits are introduced later, a key will be required to use them -- this README will be updated when that happens, not before.
Regime-shift email alerts (/api/subscriptions) are a separate, free,
public feature -- no API key needed.
Error handling
from invespider import InveSpiderClient, InveSpiderNotComputedError, InveSpiderAuthError, InveSpiderRateLimitError
client = InveSpiderClient(api_key="YOUR_API_KEY")
try:
result = client.compare("TR", "2024", "Q2", "1999", "Q1")
except InveSpiderNotComputedError:
print("No data ingested yet for one of these periods.")
except InveSpiderAuthError:
print("Your API key is missing, invalid, or has been revoked.")
except InveSpiderRateLimitError:
print("Rate limit exceeded for this key -- wait 24h or use a different key.")
Development
pip install -e ".[dev]"
pytest
This package is prepared for PyPI publication but has not yet been published or uploaded.
Metadata
Release files for invespider 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 3.6 MB
Release files / invespider-0.1.4-cp312-cp312-win_amd64.whl
| Download URL | invespider-0.1.4-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 99.7 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1fc9fdd40e4ba531208873b8b5041cd09a70829ebccf3afc74aaa1ceb99a6265
|
|
BLAKE2b-256 checksum How to use checksums |
d5cc2b89fc669df3e558f0d3ca568268d12ba01103471ee6be7d23dfd852ce30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp312-cp312-win32.whl
| Download URL | invespider-0.1.4-cp312-cp312-win32.whl |
|---|---|
| Size | 88.8 kB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
e08c20689013583d8cd2bcbee6e1b6288beae602517182045dbb5d2de9525940
|
|
BLAKE2b-256 checksum How to use checksums |
a4ab0bb95c79cf73da80248662b44516022507368e4a76593d7db5c053aae3a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | invespider-0.1.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 622.1 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
7f51692758b90e7f7fe1ea2bf76c4bc1be4bf191c2d446af71876d7f6c8da800
|
|
BLAKE2b-256 checksum How to use checksums |
3d379eee496e9c2310eecf5bbadf1b9665a3ab18dd0065255141ee01ed9bb5e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | invespider-0.1.4-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 112.8 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
bcc4dd631ede8687aab4654e88730cf3ee30c0c9fa465e98670191bea2ecacae
|
|
BLAKE2b-256 checksum How to use checksums |
43a71b4746b9962855100a63cc53f5471b8091fc011d0dc227ebb9f34201b2ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp311-cp311-win_amd64.whl
| Download URL | invespider-0.1.4-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 100.1 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f004b89d49413f3eab7f4ff11a96f692fdaa6ea74dbfd1e7c39de0be4ef7e905
|
|
BLAKE2b-256 checksum How to use checksums |
1cb6aabf2f198dce64de116423356bd0ae6eeacefe0e4d4595a2919b51544b35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp311-cp311-win32.whl
| Download URL | invespider-0.1.4-cp311-cp311-win32.whl |
|---|---|
| Size | 89.1 kB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
2567366b2db43d59a52376638ad8e548c89ad6a1706e9a6bf61b4d74b63f2f45
|
|
BLAKE2b-256 checksum How to use checksums |
3130731183f3ad599339b9cbb3e082dd7629a697a3f74c65097e4426d6ad36b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | invespider-0.1.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 589.3 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e188cb853cef3bb88c8e15661f437f6b332b56b02644dee87ebf1f59a21ebd1f
|
|
BLAKE2b-256 checksum How to use checksums |
df0e56cbc0aa82aba38e99eb79670a24b3d34e737f990cbba0ae0aa9a0334081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | invespider-0.1.4-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 111.4 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a7d2c087b0a574282f6834a449d00668fee2de878753a1fe7e00ded8e64ee118
|
|
BLAKE2b-256 checksum How to use checksums |
ec86494d459302350384ffbc0d7114be37fa8c7239a3bab886aa387ff17203f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp310-cp310-win_amd64.whl
| Download URL | invespider-0.1.4-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 101.0 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cf91479ff558dac496905ee7c2b950e5e0a40cd3d809e9d9a61bbc796d9ddc57
|
|
BLAKE2b-256 checksum How to use checksums |
7afaf5abce410a8187ab701f2d1000d1f96644775c9b17d52728201797e14d5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp310-cp310-win32.whl
| Download URL | invespider-0.1.4-cp310-cp310-win32.whl |
|---|---|
| Size | 90.1 kB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
e5ed6f1cfcfcd188d35a67d4474ad236b5b14410eba18d25cd83ea0c9ff7775a
|
|
BLAKE2b-256 checksum How to use checksums |
94898460474d336d1ff3083b2b5adf7b9bb9cfb6c6ecdf38848e1cc0ffb7bdd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | invespider-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 568.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
5d4537d18640fea8d5303f3ef4953e717e24f10c0db75bd6a0b50f6782ed7707
|
|
BLAKE2b-256 checksum How to use checksums |
78473d58e628d84dae54df1130bfb29e165f8eb852f2f18d4dc02d90350ffadb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | invespider-0.1.4-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 113.0 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b32d0cc956b26ce8207289e87fda089c2dace2e2269fc36b312a354206ec9b58
|
|
BLAKE2b-256 checksum How to use checksums |
70385c705259e54f69cfdb4ad051704e2b974cb21df4e7e952623b38c43704c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp39-cp39-win_amd64.whl
| Download URL | invespider-0.1.4-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 101.5 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
60f52b9c8282a2999118cabf4ebf03376468f954046329c7733eda1731eb4674
|
|
BLAKE2b-256 checksum How to use checksums |
ae1ca4a4b7204dc955e128ba71101afc988a9066d15689181ef127cd8d76cfe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp39-cp39-win32.whl
| Download URL | invespider-0.1.4-cp39-cp39-win32.whl |
|---|---|
| Size | 90.5 kB |
| Tags | CPython 3.9 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
d2731f0d09adb839696846f8f0f9b8199d3189d1399ca235a45509c3d9ddeeb9
|
|
BLAKE2b-256 checksum How to use checksums |
a935e996a25a0564fcd3d992931beb0e48c6f68091b2eef2840ca9df552826e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | invespider-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 565.3 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
12adbdf5b37eaf88ed5f9a8ee6728cc39d3924ece32cbb5d4a744b0df255be29
|
|
BLAKE2b-256 checksum How to use checksums |
36a939ec38656de68fe5e48c6786c1c566d730fec8dc3535eb7b7468d32fa3a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / invespider-0.1.4-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | invespider-0.1.4-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 113.7 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
016c5a646110b518de9072c0ef8c735d8996f50a9ee3a8c3b1e5f6499a205458
|
|
BLAKE2b-256 checksum How to use checksums |
12220a2b81725bbae912423149944796cbdd8c57447a0c8034b6cf5aea000b8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency log