diff --git a/README.md b/README.md index e69de29..43e0d4f 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,3 @@ +# githubapi2 + +https://user-images.githubusercontent.com/71897736/121227487-3b6f7b00-c851-11eb-9c8b-3c3daeb7c076.mp4 diff --git a/githubapi2/__init__.py b/githubapi2/__init__.py index 541be00..9bf84cc 100644 --- a/githubapi2/__init__.py +++ b/githubapi2/__init__.py @@ -1 +1,3 @@ -# This file tells Python that this is a submodule +""" +This file tells Python that this is a submodule +""" diff --git a/githubapi2/githubuser.py b/githubapi2/githubuser.py index 439eaca..441fb9a 100644 --- a/githubapi2/githubuser.py +++ b/githubapi2/githubuser.py @@ -32,7 +32,13 @@ def get_important_data(user_details): def print_user_data(data): - print(f"{data['name']}(@{data['username']}): {data['bio']}") + print(f"{data['name']}: {data['bio']}") + print( + f"Location: {data['location']} | Twitter Username: {data['twitter_username']} | Web Page: https://{data['webpage']}" + ) + print( + f"Total Public Repositories: {data['total_public_repos']} | Total Public Gists {data['total_public_gists']} | Total Followers: {data['total_followers']} | Total Following: {data['total_following']}" + ) def run(): diff --git a/githubapi2/version.py b/githubapi2/version.py index d3ec452..493f741 100644 --- a/githubapi2/version.py +++ b/githubapi2/version.py @@ -1 +1 @@ -__version__ = "0.2.0" +__version__ = "0.3.0" diff --git a/setup.py b/setup.py index abcff35..21bbe3d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ license="MIT", packages=["githubapi2"], install_requires=["requests==2.25.1"], - entry_points={"console_scripts": ["github_user = githubapi2.githubuser:run"]}, + entry_points={"console_scripts": ["ghuser = githubapi2.githubuser:run"]}, classifiers=[ "Programming Language :: Python", ],