This file contains hidden or 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 copy | |
import functools | |
import typing as tp | |
Value = tp.Union[int, tp.List] | |
Pair = tp.List[Value] | |
def loader(lines: tp.Iterable[str]): |
This file contains hidden or 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
pyinstaller --onefile --noconfirm --hiddenimport=win32timezone ^ | |
--hiddenimport=pkg_resources.py2_warn --hiddenimport=win32serviceutil ^ | |
--noupx --uac-admin --name=AG_Loader cli.py |
This file contains hidden or 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
[tool.poetry] | |
name = "zkd" | |
version = "0.1.0" | |
description = "" | |
authors = ["Sergei Iakhnitskii <[email protected]>"] | |
[tool.poetry.dependencies] | |
python = "^3.6" | |
cython = "^0.29.21" | |
geohash-hilbert = "^1.4.0" |
This file contains hidden or 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 threading | |
import weakref | |
from collections import namedtuple | |
from functools import update_wrapper | |
import trio | |
# Idea of using weakref, trio.Lock and thread-local storage is given by Nathaniel J. Smith <[email protected]> | |
NewerOlder