User Guide
format_username(username) This function removes leading and trailing spaces from the given username.
>>> from git_user23 import *
>>> format_username(" samuelogboye")
'samuelogboye'
>>> format_username(" samuelogboye ")
'samuelogboye'
confirm_username(username) Checks if a given username is valid on GitHub.
>>> from git_user23 import *
>>> confirm_username("samuelogboye")
True
>>> confirm_username("samuelogboy")
False
get_response(username) Retrieves all user information from GitHub API and returns it as a dictionary.
>>> from git_user23 import *
>>> get_response("samuelogboye")
info
full_name(username) Retrieves the full name of the user
>>> from git_user23 import *
>>> full_name("samuelogboye")
'Samuel Ogboye'
twitter(username) Retrieves the twitter username of a user
>>> from git_user23 import *
>>> twitter("samuelogboye")
'samuel_ogboye'
repos(username) Retrieves a list of all repositories owned by the user.
>>> from git_user23 import *
>>> repos("samuelogboye")
list of repo
bio(username) Retrieves the bio of the user
>>> from git_user23 import *
>>> bio("samuelogboye")
'Software Engineer || Open Source || Technical Writer || C || Python'
location(username) Retrieves the location of the user.
>>> from git_user23 import *
>>> location("samuelogboye")
'Nigeria'
repo_count(username) Retrives the count of public repositories owned by the user.
>>> from git_user23 import *
>>> repo_count("samuelogboye")
30
followers_count(username) Retrieves the count of followers of the user.
>>> from git_user23 import *
>>> followers_count("samuelogboye")
75
following_count(username) Retrieves the count of users that the user is following.
>>> from git_user23 import *
>>> following_count("samuelogboye")
64
joined_date(username) Retrieves the date when the user joined GitHub.
>>> from git_user23 import *
>>> joined_date("samuelogboye")
'2023-02-16'
confirm_token(username, token) Confirms if both username and token are valid. Returns True or False
>>> from git_user23 import *
>>> confirm_token("samuelogboye", *********)
False
create_repo(username, token, repo_name) Creates a public GitHub repository instantly with a README file and returns True if successful.
>>> from git_user23 import *
>>> create_repo("samuelogboye", "******", "testing")
True