Comparison
baostock vs pytdx vs tushare vs twelvedata
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A tool for obtaining historical data of China stock market
Actively maintained. Last release 2 months ago. A safe choice.
$
pip install baostockA Python Interface to TDX protocol
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install pytdxA utility for crawling historical and Real-time Quotes data of China stocks
Maintained. Last release 8 months ago.
$
pip install tusharePython client for Twelve Data
Low maintenance activity. Last release 7 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and security practices.
$
pip install twelvedataIn short
- pytdx is archived: avoid it for new projects.
- baostock is the most used: 283K downloads a month.
- baostock also has the best Pythie’s Index (79).
- twelvedata is growing fastest: downloads +27% over the last month.
- Safe default for a new project: baostock.
Side by side
| Metric | baostock | pytdx | tushare | twelvedata |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 79 | Pythie’s Index: 4 | Pythie’s Index: 64 | Pythie’s Index: 38 |
| Verdict | Actively maintained | Archived | Maintained | Low maintenance activity |
| Downloads / month | 283K | 93K | 263.7K | 108.2K |
| Downloads, month over month | 0% | +1% | -4% | +27% |
| GitHub stars | – | 1.6K | – | 802 |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 46 | 20 | 94 | 6 |
| Last release | Sep 21, 2026 | Aug 26, 2019 | Mar 25, 2026 | Apr 27, 2026 |
| Releases, 12 months | 4 | 0 | 5 | 3 |
| Weeks with commits | – | 0 / 26 | – | 0 / 26 |
| Recent contributors | – | 9 | – | 6 |
| First release | Jan 2018 | Jun 2017 | Jan 2015 | Jan 2020 |
| Python versions | 3.6 – 3.9 | – | 3.6 – 3.10 | – |
| License | non-standard | unknown | non-standard | 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.