What is PyTrendx?
PyTrendx is a modern CLI tool that allows you to easily fetch, visualize, analyze, and predict PyPI package download statistics directly from your terminal.
It combines pypistats, matplotlib, NumPy, and scikit-learn to make data analysis effortless — right from your console.
Features
- Fetch PyPI download stats (
--get) - Graph visualization of download trends (
--graph) - Statistical analysis using NumPy (
--analyze) - Predict future download trends with machine learning (
--predict) - Compare multiple packages on the same graph (
--compare) - Detect abnormal spikes or drops in downloads (
--anomaly)
Installation
pip install pytrendx
Usage
Fetch current download stats
ptx get pillow
📦 Fetching PyPI stats for 'pillow'...
📊 Download stats for 'pillow':
========================================
Last day: N/A
Last week: 53472343
Last month: N/A
========================================
Graph download trends
ptx graph pillow
Analyze download statistics
ptx analyze pillow
📊 Statistical Analysis for 'pillow':
=============================================
Total downloads: 2,252,527,225
Average: 6,222,450.90
Median: 6,421,581.00
Std Deviation: 1,608,374.11
=============================================
Predict future trends
ptx predict pillow
🔮 Predicted Downloads for 'pillow' (next 14 days):
=============================================
Day +1: 6,912,699 downloads
Day +2: 6,916,502 downloads
Day +3: 6,920,305 downloads
Day +4: 6,924,108 downloads
Day +5: 6,927,911 downloads
Day +6: 6,931,714 downloads
Day +7: 6,935,517 downloads
Day +8: 6,939,320 downloads
Day +9: 6,943,123 downloads
Day +10: 6,946,926 downloads
Day +11: 6,950,729 downloads
Day +12: 6,954,532 downloads
Day +13: 6,958,335 downloads
Day +14: 6,962,138 downloads
=============================================
Compare multiple packages
ptx compare numpy pandas requests
- Visualize multiple packages on a single graph
- Automatically aligns data to the common time range
- Useful for popularity and growth comparison
Detect download anomalies
ptx anomaly requests
🚨 Anomaly Detection for 'requests'
==================================================
2024-09-15 | ⬆️ SPIKE | 12,430,221 | z=3.41
2024-10-02 | ⬇️ DROP | 2,104,553 | z=-3.12
==================================================
Metadata
Release files for pytrendx 1.6.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 | |
|---|---|---|---|
| pytrendx-1.6.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytrendx-1.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / pytrendx-1.6.0.tar.gz
| Download URL | pytrendx-1.6.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0af9c612d9745b62bd715e915cccde418f940376f5a58d534ff31dbe102aaafc
|
|
BLAKE2b-256 checksum How to use checksums |
89423f28be18492971b555e9c8338aade1578a1301bce035bfb4faf09d3aa716
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / pytrendx-1.6.0-py3-none-any.whl
| Download URL | pytrendx-1.6.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
887d0498bc7abed70e03ba7fa19a3d39f49bdb264323ce56bf9c49b3225a9c13
|
|
BLAKE2b-256 checksum How to use checksums |
67d075967f484bbf449a81e21c4620560862b8dd533e80402178994ed5bd40ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|