Comparison
alpaca-py vs alpaca-trade-api vs dhanhq vs schwab-py
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
The Official Python SDK for Alpaca APIs
Actively maintained. Last release 4 weeks ago, commits in 22 of the last 26 weeks. A safe choice.
$
pip install alpaca-pyAlpaca API python client
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install alpaca-trade-apiThe official Python client for communicating with the DhanHQ API
Actively maintained. Last release 7 days ago. A safe choice.
$
pip install dhanhqUnofficial API wrapper for the Schwab HTTP API
Maintained. Last release 3 weeks ago, commits in 2 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install schwab-pyIn short
- alpaca-trade-api is archived: avoid it for new projects.
- alpaca-py is the most used: 1.4M downloads a month, 11× more than schwab-py.
- Maintenance is comparable: alpaca-py 87, dhanhq 82, schwab-py 48 on Pythie’s Index.
- alpaca-py is growing fastest: downloads +19% over the last month.
- Safe default for a new project: alpaca-py.
Side by side
| Metric | alpaca-py | alpaca-trade-api | dhanhq | schwab-py |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 87 | Pythie’s Index: 5 | Pythie’s Index: 82 | Pythie’s Index: 48 |
| Verdict | Actively maintained | Archived | Actively maintained | Maintained |
| Downloads / month | 1.4M | 83.5K | 56.3K | 133.4K |
| Downloads, month over month | +19% | -15% | -18% | -5% |
| GitHub stars | 1.6K | 1.9K | – | 492 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 46 | 29 | 4 | 7 |
| Last release | Nov 5, 2026 | Jan 12, 2024 | Nov 26, 2026 | Nov 15, 2026 |
| Releases, 12 months | 5 | 0 | 5 | 1 |
| Weeks with commits | 22 / 26 | 0 / 26 | – | 2 / 26 |
| Recent contributors | 17 | 22 | – | 7 |
| First release | Apr 2022 | May 2018 | Sep 2022 | May 2024 |
| Python versions | 3.10 – 3.15 | – | – | – |
| License | Apache-2.0 | Apache-2.0 | MIT | MIT |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.