Pinak-Datta / PypiMeter

PypiMeter is a web application built using Streamlit that provides statistics and insights about Python packages from PyPI (Python Package Index). It fetches data from the PyPI Stats API and displays various statistics including recent downloads, overall downloads, system stats, and Python version stats for a given Python package.
https://pypimeter.streamlit.app/
MIT License
0 stars 1 forks source link

Blank Input Search should show some Warning #2

Closed Pinak-Datta closed 6 months ago

Pinak-Datta commented 6 months ago

Description When we try to hit the submit button, with no input, the app throws an error, as it tries to search the PyPI library with the package name "".

Optimum Solution Instead of a heavy error, we can simply check if the input is kept empty while searching for a package, and we can trigger a warning to the user to provide an input, before hitting submit!

image