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
Metadata
Release files for githuby 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| githuby-0.1.1.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| githuby-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 kB
Release files / githuby-0.1.1.tar.gz
| Download URL | githuby-0.1.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea30a56ea17d4e795e3a333ef8de03d9e90fcd6f855f4f6a6fa607fb0a7f2e4e
|
|
BLAKE2b-256 checksum How to use checksums |
a36b9b99e49a052c56fa7c215df2c469e5ff5b8f24df0855a3fc59aa852ebb5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Linux/6.0.12-76060006-generic
|
Release files / githuby-0.1.1-py3-none-any.whl
| Download URL | githuby-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e38889d8f64e974cb6c80d39b1c36d8f1d1aa0bb695fc411bb3af04d811582fa
|
|
BLAKE2b-256 checksum How to use checksums |
35a78b13f792994d91ae8abcd655544fe8aeb7d72cda8e22836dfeeec8cdb4fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.10.6 Linux/6.0.12-76060006-generic
|