/
ilya.petrash
/
SimplePyScripts
Обзор
Документация
Войти
/
ilya.petrash
/
SimplePyScripts
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
github3py__examples/get_gist_history.py
26 строк
474 B
gil9red
Refactoring. Using black code style
18 май 2023, 17:05
18 май 2023, 17:05
75f7eb1
Код
Авторство
О чём код?
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" # SOURCE: https://github.com/sigmavirus24/github3.py # pip install github3.py from github3 import GitHub from config import TOKEN gh = GitHub(token=TOKEN) gist = gh.gist("2f80a34fb601cd685353") for commit in gist.commits(): # TODO: KeyError: 'gistfile1.txt' print( commit.committed_at, commit.version, len(commit.gist().files["gistfile1.txt"].content()), )