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 json | |
import subprocess | |
from concurrent.futures import ThreadPoolExecutor | |
from datetime import datetime | |
from pathlib import Path | |
from urllib.request import urlopen | |
REPOSITORIES = "https://github.com/pypi-data/data/raw/main/stats/repositories.json" | |
with urlopen(REPOSITORIES) as f: |
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 hashlib | |
import json | |
from multiprocessing.dummy import Pool | |
from pathlib import Path | |
import urllib3 | |
DOWNLOAD_CACHE = Path("DownloadedMetadata") | |
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
from datetime import datetime | |
import email.message | |
import re | |
from multiprocessing.dummy import Pool | |
import json | |
import traceback | |
import urllib3 | |
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
use clap::Parser; | |
use std::fs::File; | |
use std::io; | |
use std::path::Path; | |
use std::io::BufRead; | |
use std::collections::HashMap; | |
use std::cmp::Reverse; | |
use crossbeam::thread; | |
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
twine | |
guideways | |
pygrib | |
openpyxl | |
amber | |
srl | |
pytrip | |
revisioning | |
geoSpatial | |
xresources |
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 collections.abc | |
import sqlite3 | |
class PersistentDict(collections.abc.MutableMapping): | |
def __init__(self, db=":memory:", table="dict"): | |
# Set to autocommit mode (isolation_level=None) | |
self.conn = sqlite3.connect(db, isolation_level=None) | |
if not table.isidentifier(): | |
raise ValueError(f"Table name {table!r} is not a valid identifier") | |
self.table = table |
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 io | |
class LazyFile(io.RawIOBase): | |
def __init__(self): | |
self.pos = 0 | |
# Cache this as it may be costly to compute | |
self.end = self.get_size() | |
def get_size(self): | |
# Subclasses implement this | |
raise NotImplemented |
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 contextlib | |
import runpy | |
import site | |
import sys | |
import pytest | |
# ---------------------------------------------------------------------- | |
import sys | |
import importlib.abc |
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
# Keypirinha launcher (keypirinha.com) | |
import keypirinha as kp | |
import keypirinha_util as kpu | |
from collections import namedtuple | |
from html.parser import HTMLParser | |
import datetime | |
import os | |
from ctypes import windll |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder