TGViewer
Python Community Python Community @python_community_ru · 11.6K subscribers
Post #2411 1.78K
🖥 Githubkit

Когда вы работаете с API GitHub, вам приходится вручную обрабатывать HTTP-запросы, токены и JSON-ответы, что занимает много времени и может привести к ошибкам.

Githubkit — это библиотека на Python, которая предлагает удобный и типизированный интерфейс для взаимодействия с API GitHub.

Установить можно с помощью:

pip install githubkit
# или, используйте poetry
poetry add githubkit
# или, используйте pdm
pdm add githubkit
# или, используйте uv
uv add githubkit

Пример:

from githubkit import Response
from githubkit.versions.latest.models import FullRepository

resp: Response[FullRepository] = github.rest.repos.get("owner", "repo")
repo: FullRepository = resp.parsed_data
print(repo.full_name)

▪ Github (https://github.com/yanyongyu/githubkit)
▪ Документация (https://yanyongyu.github.io/githubkit/)
@Python_Community_ru
More from @python_community_ru
  1. Oct 5, 2026‍🖥 Python-дайджест недели: PyPy 8 с Python 3.12, отладка None и фреймворки для агентов Py…
  2. Oct 4, 2026🐍 Python тормозит? В 3.15 добавили инструмент, который покажет где Tachyon (`profiling.sa…
  3. Oct 2, 2026webAI выпустила TwIL-LM3-Pro - компактную модель на 3,66B параметров специально для формал…
  4. Oct 1, 2026🔥 Бесплатный курс по Claude Code на русском: от установки до команды агентов На GitHub вы…
  5. Sep 30, 2026🖥 Cayu - open-source runtime для долгоживущих ИИ-агентов на Python Проект закрывает инфра…
  6. Sep 29, 2026🖥 Примеры кода на Python 2026: лучшие практики, разбор и задачи с решениями Python пример…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →