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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file githuby-0.1.1.tar.gz.

File metadata

  • Download URL: githuby-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/6.0.12-76060006-generic

File hashes

Hashes for githuby-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ea30a56ea17d4e795e3a333ef8de03d9e90fcd6f855f4f6a6fa607fb0a7f2e4e
MD5 de28eacb240c45ae0e3cc161404ecbbd
BLAKE2b-256 a36b9b99e49a052c56fa7c215df2c469e5ff5b8f24df0855a3fc59aa852ebb5f

See more details on using hashes here.

File details

Details for the file githuby-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: githuby-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/6.0.12-76060006-generic

File hashes

Hashes for githuby-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e38889d8f64e974cb6c80d39b1c36d8f1d1aa0bb695fc411bb3af04d811582fa
MD5 c6cce63b0a5306a5ae8c6d9b25b81fb1
BLAKE2b-256 35a78b13f792994d91ae8abcd655544fe8aeb7d72cda8e22836dfeeec8cdb4fc

See more details on using hashes here.

Supported by

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