Chart Library Python SDK
Pattern intelligence for AI agents. Search 24 million historical chart patterns and see what happened next.
Install
pip install chartlibrary
Quick Start
from chartlibrary import ChartLibrary
cl = ChartLibrary(api_key="cl_your_key") # or set CHART_LIBRARY_KEY env var
# One call — full intelligence
intel = cl.intelligence("NVDA")
print(f"Top match: {intel['matches'][0]['symbol']} {intel['matches'][0]['date']}")
print(f"5-day outlook: {intel['follow_through']['horizon_returns']['5']}")
print(f"Market regime: {intel['regime']['spy_summary'][:100]}...")
# Market regime snapshot
regime = cl.regime()
for sym, data in regime["regime"].items():
print(f"{sym}: {data['avg_10d']:+.1f}% 10d outlook")
# Pattern search
results = cl.search("AAPL 2024-06-15")
for match in results["results"][:5]:
print(f" {match['symbol']} {match['date']} — {match['match_score']}%")
Endpoints
| Method | What it does |
|---|---|
cl.intelligence(symbol) |
One-call full picture (matches + regime + summary) |
cl.regime() |
Market-wide regime snapshot (SPY + QQQ + 11 sectors) |
cl.regime_detail(symbol) |
Detailed regime analysis with overlay data |
cl.search(query) |
Pattern similarity search |
cl.analyze(query) |
Search + follow-through + summary |
cl.discover() |
Daily top patterns |
cl.status() |
Database stats |
Free API Key
Get one at chartlibrary.io/developers — 200 calls/day, no credit card.
Metadata
Release files for chartlibrary 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| chartlibrary-0.2.0.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chartlibrary-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / chartlibrary-0.2.0.tar.gz
| Download URL | chartlibrary-0.2.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f506c42a432cabacde79eb930dbc3ab9bbb96f4367818d4e546ceccf3e9c428
|
|
BLAKE2b-256 checksum How to use checksums |
ee3bb466c13d2046e3086c670528bbb30387cfbb6c39b7faeaedd1d1e37c0607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / chartlibrary-0.2.0-py3-none-any.whl
| Download URL | chartlibrary-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd9655d0127982b3504310d168f358f1b82877aeadcf5ea9089b9df6956aac4b
|
|
BLAKE2b-256 checksum How to use checksums |
a6334c60f4bffff7abb361722ea311f669d99160c4691edcd6fc73291e5236f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Security for chartlibrary 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.