Skip to main content

Simple package to get data about GitHub users

Project description

githuby


Simple package for fetching user data from GitHub. This package provides one simple async function fetch_user(), which wraps the data returned by the GitHub API into a User object which then can be used to easily access the data. Repositories are also fetched and wrapped up into Repository instances.

Installing

Python3.8 or above is required.

pip install githuby

Quick Example

from githuby import fetch_user
import asyncio


async def main():
    user = await fetch_user("chr3st5an")

    print(f"{user.username}#{user.id} has {len(user.repositories)} repos:")

    for repo in user.repositories:
        print(f"{repo.name}@{repo.url}")


asyncio.run(main())

... or from the CLI

python -m githuby chr3st5an

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

githuby-0.1.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

githuby-0.1.1-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page