Retrieve the NTP pool score for a server
ntp_pool_score is an interface for retrieving a server's NTP pool score via ntppool.org. You can import it or call it directly on the command line. It requires a Python version of at least 3.8.0.
import ntp_pool_score score = ntp_pool_score.get_server_ntp_pool_score("127.0.0.1") print(score) # 20
python -m ntp_pool_score 127.0.0.1 # 20
The easiest way to install ntp_pool_score is via pip.
pip install ntp_pool_score
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.