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.
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!
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!