Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Использование библиотек для взаимодействия с GitHub #171

Open
mirrin00 opened this issue Jul 14, 2023 · 2 comments
Labels
Major Top priority task Medium A task that requires some effort to complete it Refactoring Changes made to the code to improve readability, speed of execution, and logic between parts.
Milestone

Comments

@mirrin00
Copy link
Collaborator

Описание

Замена "сырых" запросов к GitHub через requests на библиотеку PyGithub или её аналог

@mirrin00 mirrin00 added the Refactoring Changes made to the code to improve readability, speed of execution, and logic between parts. label Jul 14, 2023
@Artanias Artanias added this to the v0.5.0 milestone Jul 14, 2023
@Artanias Artanias added this to Backlog in Codeplag tasks (CP) via automation Jul 14, 2023
@Artanias Artanias added Minor Less priority task Medium A task that requires some effort to complete it Major Top priority task and removed Minor Less priority task labels Jul 14, 2023
@Artanias
Copy link
Collaborator

Я думал может ещё посмотреть в сторону чего-то асинхронного.

@mirrin00
Copy link
Collaborator Author

Я думал может ещё посмотреть в сторону чего-то асинхронного.

Есть опасение, что PyGithub может не поддерживать асинхронное выполнение (но надо проверять). Мне не совсем понятен выигрыш от асинхронного выполнения: чтобы сравнить деревья нужны файлы, а чтобы их найти нужны репозитории, и тд. Выглядит как последовательное выполнение, поэтому я не вижу возможности применения асинхронного выполнения.

Но можно посмотреть на pool worker'ов, как общий механизм параллеллизма: каждый worker выполняет какую-то самостоятельную отдельную задачу по типу проверить список репозиториев, проверить репозиторий, построить дерево для одного файла, сравнить два дерева, и тп.

@Artanias Artanias moved this from Backlog to To do in Codeplag tasks (CP) Aug 19, 2023
@Artanias Artanias moved this from To do to Backlog in Codeplag tasks (CP) Sep 1, 2023
@Artanias Artanias moved this from Backlog to To do in Codeplag tasks (CP) Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Major Top priority task Medium A task that requires some effort to complete it Refactoring Changes made to the code to improve readability, speed of execution, and logic between parts.
Projects
Development

No branches or pull requests

2 participants