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
''' | |
batch change tracker for qbittorrent 4.2- | |
''' | |
import sys | |
import os | |
import glob | |
import bencode | |
if __name__ == '__main__': |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
#First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer” | |
#I thought porting it to Python could be both a challenge and useful | |
from sys import argv, exit, getsizeof | |
from struct import pack_into, unpack_from | |
def ceil4(n): |
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
#!/usr/bin/env python | |
import sys | |
import asyncio | |
import aiohttp | |
class Server: | |
def __init__(self, ws_uri, loop=None, **wskwargs): |
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
#!/usr/bin/env python | |
import sys | |
import asyncio | |
from aiohttp import web | |
class Server: | |
def __init__(self, host, port, loop=None, **kwargs): |
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
# -*- coding: utf-8 -*- | |
import glob | |
def parse_block(f, info): | |
block = {} | |
line = f.readline().strip() | |
if not line: | |
return None |
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
# -*-: coding: utf-8 -*- | |
import asyncio | |
import aiohttp | |
import traceback | |
import datetime | |
import math | |
def hsize(s): | |
suffixs = ["B", "KB", "MB", "GB"] |
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
# -*-: coding: utf-8 -*- | |
import asyncio | |
import aiohttp | |
import traceback | |
import datetime | |
import math | |
def hsize(s): | |
suffixs = ["B", "KB", "MB", "GB"] |
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
#!/usr/bin/env python | |
import sys | |
import asyncio | |
import websockets | |
class Server: | |
def __init__(self, host, port, loop=None, **kwargs): |
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
#!/usr/bin/env python | |
import sys | |
import asyncio | |
import websockets | |
class Server: | |
def __init__(self, ws_uri, ssl_verify=True, loop=None, **wskwargs): |
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
#!/usr/bin/env python3.5 | |
import socket | |
import asyncio | |
from struct import pack, unpack | |
class Client(asyncio.Protocol): | |
def connection_made(self, transport): | |
self.transport = transport | |
self.server_transport = None |
NewerOlder