This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Archipelago | |
FROM python:3.12-slim AS archipelago-base | |
ENV VIRTUAL_ENV=/opt/venv | |
ENV PYTHONUNBUFFERED=1 | |
WORKDIR /app | |
COPY . . | |
RUN apt-get update; \ | |
apt-get install -y --no-install-recommends \ | |
git=1:2.39.5-0+deb12u1 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Backport of the asyncio.runners module from Python 3.7. | |
""" | |
# Source: | |
# https://github.com/python/cpython/blob/a4afcdfa55ddffa4b9ae3b0cf101628c7bff4102/Lib/asyncio/runners.py | |
# Modifications: | |
# * removed relative imports of .coroutines, .events, .tasks | |
# * replaced `coroutines`, `events`, `tasks` with `asyncio`. | |
# * replaced `tasks.all_tasks` with `asyncio.Task.all_tasks` because it is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import time | |
import sys | |
URL = "https://api.github.com/search/users" | |
MAX_PAGE = 100 | |
class GithubQuery(object): | |
results = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am nickdavies on github. | |
* I am nickdavies (https://keybase.io/nickdavies) on keybase. | |
* I have a public key whose fingerprint is 346A A865 7D22 2B04 604A 63A3 5F0F 5B6D 38FE 70FC | |
To claim this, I am signing this object: |