Skip to main content

ALDashboard.package_scanner

time​

json​

math​

requests​

BytesIO​

distributions​

as_datetime​

os​

datetime​

List​

Optional​

Tuple​

get_server_name​

def get_server_name(interview_url)

installed_pkg_list​

def installed_pkg_list(target: List[str]) -> dict

sort_dict​

def sort_dict(raw_data: dict)

URL​

The basic URL to use the GitHub API

PARAMETERS​

Additional parameters for the query (by default 100 items per page)

DELAY_BETWEEN_QUERYS​

The time to wait between different queries to GitHub

getUrl​

def getUrl(url)

Given a URL it returns its body

fetch_github_repos​

def fetch_github_repos(github_user, sub_queries) -> dict

Given a github user input, returns soughted info. It doesn't contain version number.

fetch_github_repo_version​

def fetch_github_repo_version(repo_list, key_pkgs, github_user) -> dict

compare_repo_version​

def compare_repo_version(server_repo_dict, github_repo_dict) -> dict

get_git_info​

def get_git_info(dist) -> Tuple[Optional[str], Optional[str], Optional[str]]

get_pypi_url​

def get_pypi_url(name: str, version: str) -> Optional[str]

get_install_date​

def get_install_date(dist) -> Optional[datetime]

installed_pkg_details​

def installed_pkg_details(target_list: List[str]) -> dict
def format_commit_link(detail: dict) -> str
def format_version_link(detail: dict) -> str

format_install_date​

def format_install_date(detail: dict) -> str