repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/ziploader.py
scripts/ziploader.py
#!/usr/bin/env python3 import sys import time import traceback VER = None STAMP = None WINDOWS = sys.platform in ["win32", "msys"] def msg(*a, **ka): if a: a = ["[ZIP]", a[0]] + list(a[1:]) ka["file"] = sys.stderr print(*a, **ka) def confirm(rv): msg() msg("retcode", rv if rv else tr...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/help2html.py
scripts/help2html.py
#!/usr/bin/env python3 import os import re import socket import subprocess as sp # to convert the copyparty --help to html, run this in xfce4-terminal @ 140x43: _ = r"""" echo; for a in '' -bind -accounts -auth -auth-ord -flags -handlers -hooks -idp -urlform -exp -ls -dbd -chmod -pwhash -zm; do ./copyparty-sfx.py --...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/profile.py
scripts/profile.py
#!/usr/bin/env python3 import sys sys.path.insert(0, ".") cmd = sys.argv[1] if cmd == "cpp": from copyparty.__main__ import main argv = ["__main__", "-vsrv::r:c,e2ds,e2ts"] main(argv=argv) elif cmd == "test": from unittest import main argv = ["__main__", "discover", "-s", "tests"] main(mod...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/genlic.py
scripts/genlic.py
#!/usr/bin/env python3 import re, os, sys, codecs outfile = os.path.realpath(sys.argv[1]) os.chdir(os.path.dirname(__file__)) with open("../docs/lics.txt", "rb") as f: s = f.read().decode("utf-8").rstrip("\n") + "\n\n\n\n" s = re.sub("\nC: ", "\nCopyright (c) ", s) s = re.sub("\nL: ", "\nLicense: ", s) ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/uncomment.py
scripts/uncomment.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import io import os import sys import tokenize try: FSTRING_MIDDLE = tokenize.FSTRING_MIDDLE except: FSTRING_MIDDLE = -9001 def uncomment(fpath): """modified https://stackoverflow.com/a/62074206""" print...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/speedtest-fs.py
scripts/speedtest-fs.py
#!/usr/bin/env python3 import os import sys import stat import time import signal import traceback import threading from queue import Queue """speedtest-fs: filesystem performance estimate""" __author__ = "ed <copyparty@ocv.me>" __copyright__ = 2020 __license__ = "MIT" __url__ = "https://github.com/9001/copyparty/" ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/sfx.py
scripts/sfx.py
#!/usr/bin/env python3 # coding: latin-1 from __future__ import print_function, unicode_literals import re, os, sys, time, shutil, signal, tarfile, hashlib, platform, tempfile, traceback import subprocess as sp """ to edit this file, use HxD or "vim -b" (there is compressed stuff at the end) run me with python 2.7...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/tl.py
scripts/tl.py
#!/usr/bin/env python3 import os import sys """ generates a "tl.js" which can be used to prototype a new translation without having to run from source, or tamper with the files that are extracted from the sfx to generate a tl.js for the language you are translating to, run the following command: python tl.py fra Fr...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/fusefuzz.py
scripts/fusefuzz.py
#!/usr/bin/env python3 import os import time """ td=/dev/shm/; [ -e $td ] || td=$HOME; mkdir -p $td/fusefuzz/{r,v} PYTHONPATH=.. python3 -m copyparty -v $td/fusefuzz/r::r -i 127.0.0.1 ../bin/partyfuse.py http://127.0.0.1:3923/ $td/fusefuzz/v -cf 2 -cd 0.5 (d="$PWD"; cd $td/fusefuzz && "$d"/fusefuzz.py) """ def chk(...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/test/ptrav.py
scripts/test/ptrav.py
#!/usr/bin/env python3 import re import sys import time import itertools import requests atlas = ["%", "25", "2e", "2f", ".", "/"] def genlen(ubase, port, ntot, nth, wlen): n = 0 t0 = time.time() print("genlen %s nth %s port %s" % (wlen, nth, port)) rsession = requests.Session() ptn = re.compile...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/test/smoketest.py
scripts/test/smoketest.py
import os import sys import time import shlex import shutil import signal import tempfile import requests import threading import subprocess as sp CPP = [] class Cpp(object): def __init__(self, args): args = [sys.executable, "-m", "copyparty"] + args print(" ".join([shlex.quote(x) for x in args]...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/test/race.py
scripts/test/race.py
#!/usr/bin/env python3 import os import sys import time import json import threading import http.client class Conn(object): def __init__(self, ip, port): self.s = http.client.HTTPConnection(ip, port, timeout=260) self.st = [] def get(self, vpath): self.st = [time.time()] sel...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/pyinstaller/loader.py
scripts/pyinstaller/loader.py
# coding: utf-8 import base64 import hashlib import os import re import shutil import subprocess as sp import sys import traceback v = r""" this 32-bit copyparty.exe is compatible with Windows7-SP1 and later. To make this possible, the EXE was compiled with Python 3.7.9, which is EOL and does not receive security pa...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/lics/rot.py
scripts/lics/rot.py
#!/usr/bin/env python3 import os, codecs for fn in os.listdir("."): if not fn.endswith(".txt"): continue with open(fn, "rb") as f: s = f.read().decode("utf-8") b = codecs.encode(s, "rot_13").encode("utf-8") with open(fn.replace("txt", "r13"), "wb") as f: f.write(b)
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/py2/queue/__init__.py
scripts/py2/queue/__init__.py
# coding: utf-8 from __future__ import print_function, unicode_literals from Queue import Queue, LifoQueue, PriorityQueue, Empty, Full
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/strip_hints/a.py
scripts/strip_hints/a.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os import sys from strip_hints import strip_file_to_string # list unique types used in hints: # rm -rf unt && cp -pR copyparty unt && (cd unt && python3 ../scripts/strip_hints/a.py) # diff -wNarU1 copyparty unt | grep -E '^\-' | sed -r 's...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/deps-docker/shiftbase.py
scripts/deps-docker/shiftbase.py
#!/usr/bin/env python3 import sys from fontTools.ttLib import TTFont, newTable def main(): woff = sys.argv[1] font = TTFont(woff) print(repr(font["hhea"].__dict__)) print(repr(font["OS/2"].__dict__)) # font["hhea"].ascent = round(base_asc * mul) # font["hhea"].descent = round(base_desc * mul)...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/scripts/deps-docker/genprism.py
scripts/deps-docker/genprism.py
#!/usr/bin/env python3 # author: @chinponya import argparse import json from pathlib import Path from urllib.parse import urlparse, parse_qsl def read_json(path): return json.loads(path.read_text()) def get_prism_version(prism_path): package_json_path = prism_path / "package.json" package_json = read...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/metrics.py
copyparty/metrics.py
# coding: utf-8 from __future__ import print_function, unicode_literals import json import time from .__init__ import TYPE_CHECKING from .util import Pebkac, get_df, unhumanize if TYPE_CHECKING: from .httpcli import HttpCli from .httpsrv import HttpSrv class Metrics(object): def __init__(self, hsrv: "H...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/cert.py
copyparty/cert.py
import calendar import errno import json import os import shutil import time from .__init__ import ANYWIN from .util import Netdev, atomic_move, load_resource, runcmd, wunlink HAVE_CFSSL = not os.environ.get("PRTY_NO_CFSSL") if True: # pylint: disable=using-constant-test from .util import NamedLogger, RootLogge...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/th_srv.py
copyparty/th_srv.py
# coding: utf-8 from __future__ import print_function, unicode_literals import hashlib import io import logging import os import re import shutil import subprocess as sp import tempfile import threading import time from queue import Queue from .__init__ import ANYWIN, PY2, TYPE_CHECKING, unicode from .authsrv import...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/httpsrv.py
copyparty/httpsrv.py
# coding: utf-8 from __future__ import print_function, unicode_literals import hashlib import math import os import re import socket import sys import threading import time import queue from .__init__ import ANYWIN, CORES, EXE, MACOS, PY2, TYPE_CHECKING, EnvParams, unicode try: MNFE = ModuleNotFoundError except...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/broker_thr.py
copyparty/broker_thr.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os import threading from .__init__ import TYPE_CHECKING from .broker_util import BrokerCli, ExceptionalQueue, NotExQueue from .httpsrv import HttpSrv from .util import HMaccas if TYPE_CHECKING: from .svchub import SvcHub if True: # ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/httpcli.py
copyparty/httpcli.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse # typechk import copy import errno import hashlib import itertools import json import os import random import re import socket import stat import sys import threading # typechk import time import uuid from datetime import datetim...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/util.py
copyparty/util.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import base64 import binascii import codecs import errno import hashlib import hmac import json import logging import math import mimetypes import os import platform import re import select import shutil import signal import socket...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/httpconn.py
copyparty/httpconn.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse # typechk import os import re import socket import threading # typechk import time try: if os.environ.get("PRTY_NO_TLS"): raise Exception() HAVE_SSL = True import ssl except: HAVE_SSL = False from . imp...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/pwhash.py
copyparty/pwhash.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import base64 import hashlib import os import sys import threading from .__init__ import unicode try: if os.environ.get("PRTY_NO_ARGON2"): raise Exception() HAVE_ARGON2 = True from argon2 import exceptions as...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/tcpsrv.py
copyparty/tcpsrv.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os import re import socket import sys import time from .__init__ import ANYWIN, PY2, TYPE_CHECKING, unicode from .cert import gencert from .qrkode import QrCode, qr2png, qr2svg, qr2txt, qrgen from .util import ( E_ACCESS, E_ADDR_IN...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/broker_mp.py
copyparty/broker_mp.py
# coding: utf-8 from __future__ import print_function, unicode_literals import threading import time import traceback import queue from .__init__ import CORES, TYPE_CHECKING from .broker_mpw import MpWorker from .broker_util import ExceptionalQueue, NotExQueue, try_exec from .util import Daemon, mp if TYPE_CHECKING...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/star.py
copyparty/star.py
# coding: utf-8 from __future__ import print_function, unicode_literals import re import stat import tarfile from queue import Queue from .authsrv import AuthSrv from .bos import bos from .sutil import StreamArc, errdesc from .util import Daemon, fsenc, min_ex if True: # pylint: disable=using-constant-test fro...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/szip.py
copyparty/szip.py
# coding: utf-8 from __future__ import print_function, unicode_literals import calendar import stat import time from .authsrv import AuthSrv from .bos import bos from .sutil import StreamArc, errdesc from .util import VPTL_WIN, min_ex, sanitize_to, spack, sunpack, yieldfile, zlib if True: # pylint: disable=using-co...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/smbd.py
copyparty/smbd.py
# coding: utf-8 import inspect import logging import os import random import stat import sys import time from types import SimpleNamespace from .__init__ import ANYWIN, EXE, TYPE_CHECKING from .authsrv import LEELOO_DALLAS, VFS from .bos import bos from .util import Daemon, absreal, min_ex, pybin, runhook, vjoin if ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/__main__.py
copyparty/__main__.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals """copyparty: http file sharing hub (py2/py3)""" __author__ = "ed <copyparty@ocv.me>" __copyright__ = 2019 __license__ = "MIT" __url__ = "https://github.com/9001/copyparty/" import argparse import base64 import locale impor...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/sftpd.py
copyparty/sftpd.py
# coding: utf-8 from __future__ import print_function, unicode_literals import errno import hashlib import logging import os import select import socket import time from threading import ExceptHookArgs import paramiko import paramiko.common import paramiko.sftp_attr from paramiko.common import AUTH_FAILED, AUTH_SUCCE...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/ico.py
copyparty/ico.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse # typechk import colorsys import hashlib import re from .__init__ import PY2 from .th_srv import HAVE_PIL, HAVE_PILF from .util import BytesIO, html_escape # type: ignore class Ico(object): def __init__(self, args: argpars...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/u2idx.py
copyparty/u2idx.py
# coding: utf-8 from __future__ import print_function, unicode_literals import calendar import os import re import threading import time from operator import itemgetter from .__init__ import ANYWIN, PY2, TYPE_CHECKING, unicode from .authsrv import LEELOO_DALLAS, VFS from .bos import bos from .up2k import up2k_wark_fr...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/authsrv.py
copyparty/authsrv.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import base64 import hashlib import json import os import re import stat import sys import threading import time from datetime import datetime from .__init__ import ANYWIN, MACOS, PY2, TYPE_CHECKING, WINDOWS, E from .bos import bo...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/th_cli.py
copyparty/th_cli.py
# coding: utf-8 from __future__ import print_function, unicode_literals import errno import os import stat from .__init__ import TYPE_CHECKING from .authsrv import VFS from .bos import bos from .th_srv import EXTS_AC, HAVE_WEBP, thumb_path from .util import Cooldown, Pebkac if True: # pylint: disable=using-constant...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/ftpd.py
copyparty/ftpd.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import errno import logging import os import stat import sys import time from pyftpdlib.authorizers import AuthenticationFailed, DummyAuthorizer from pyftpdlib.filesystems import AbstractedFS, FilesystemError from pyftpdlib.handle...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/dxml.py
copyparty/dxml.py
# coding: utf-8 from __future__ import print_function, unicode_literals import importlib import sys import xml.etree.ElementTree as ET from .__init__ import PY2 if True: # pylint: disable=using-constant-test from typing import Any, Optional class BadXML(Exception): pass def get_ET() -> ET.XMLParser: ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/mtag.py
copyparty/mtag.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import json import os import re import shutil import subprocess as sp import sys import tempfile from .__init__ import ANYWIN, EXE, PY2, WINDOWS, E, unicode from .authsrv import VFS from .bos import bos from .util import ( FFM...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/__init__.py
copyparty/__init__.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os import platform import sys import time # fmt: off _:tuple[int,int]=(0,0) # _____________________________________________________________________ hey there! if you are reading this, your python is too old to run copyparty without some ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/ssdp.py
copyparty/ssdp.py
# coding: utf-8 from __future__ import print_function, unicode_literals import errno import re import select import socket import time from .__init__ import TYPE_CHECKING from .multicast import MC_Sck, MCast from .util import CachedSet, formatdate, html_escape, min_ex if TYPE_CHECKING: from .broker_util import B...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/sutil.py
copyparty/sutil.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os import tempfile from datetime import datetime from .__init__ import CORES from .authsrv import VFS, AuthSrv from .bos import bos from .th_cli import ThumbCli from .util import UTC, vjoin, vol_san if True: # pylint: disable=using-const...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/broker_util.py
copyparty/broker_util.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse from queue import Queue from .__init__ import TYPE_CHECKING from .authsrv import AuthSrv from .util import HMaccas, Pebkac if True: # pylint: disable=using-constant-test from typing import Any, Optional, Union from .ut...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/broker_mpw.py
copyparty/broker_mpw.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import os import signal import sys import threading import queue from .__init__ import ANYWIN from .authsrv import AuthSrv from .broker_util import BrokerCli, ExceptionalQueue, NotExQueue from .fsutil import ramdisk_chk from .htt...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/fsutil.py
copyparty/fsutil.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import json import os import re import time from .__init__ import ANYWIN, MACOS from .authsrv import AXS, VFS, AuthSrv from .bos import bos from .util import chkcmd, json_hesc, min_ex, undot if True: # pylint: disable=using-cons...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/mdns.py
copyparty/mdns.py
# coding: utf-8 from __future__ import print_function, unicode_literals import errno import os import random import select import socket import time from ipaddress import IPv4Network, IPv6Network from .__init__ import TYPE_CHECKING from .__init__ import unicode as U from .multicast import MC_Sck, MCast from .util im...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/cfg.py
copyparty/cfg.py
# coding: utf-8 from __future__ import print_function, unicode_literals # awk -F\" '/add_argument\("-[^-]/{print(substr($2,2))}' copyparty/__main__.py | sort | tr '\n' ' ' zs = "a c e2d e2ds e2dsa e2t e2ts e2tsr e2v e2vp e2vu ed emp i j lo mcr mte mth mtm mtp nb nc nid nih nth nw p q s ss sss v z zv" onedash = set(zs....
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/qrkode.py
copyparty/qrkode.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os try: if os.getenv("PRTY_SYS_ALL") or os.getenv("PRTY_SYS_QRCG"): raise ImportError() from .stolen.qrcodegen import QrCode qrgen = QrCode.encode_binary VENDORED = True except ImportError: VENDORED = False ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/__version__.py
copyparty/__version__.py
# coding: utf-8 VERSION = (1, 20, 0) CODENAME = "sftp is fine too" BUILD_DT = (2026, 1, 2) S_VERSION = ".".join(map(str, VERSION)) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) __version__ = S_VERSION __build_dt__ = S_BUILD_DT # I'm all ears
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/svchub.py
copyparty/svchub.py
# coding: utf-8 from __future__ import print_function, unicode_literals import argparse import atexit import errno import logging import os import re import shlex import signal import socket import string import sys import threading import time from datetime import datetime # from inspect import currentframe # print(...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/tftpd.py
copyparty/tftpd.py
# coding: utf-8 from __future__ import print_function, unicode_literals try: from types import SimpleNamespace except: class SimpleNamespace(object): def __init__(self, **attr): self.__dict__.update(attr) import logging import os import re import socket import stat import threading impor...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/up2k.py
copyparty/up2k.py
# coding: utf-8 from __future__ import print_function, unicode_literals import errno import hashlib import json import math import os import re import shutil import stat import subprocess as sp import sys import tempfile import threading import time import traceback from copy import deepcopy from queue import Queue ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/multicast.py
copyparty/multicast.py
# coding: utf-8 from __future__ import print_function, unicode_literals import socket import time import ipaddress from ipaddress import ( IPv4Address, IPv4Network, IPv6Address, IPv6Network, ip_address, ip_network, ) from .__init__ import MACOS, TYPE_CHECKING from .util import IP6_LL, IP64_LL...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/res/__init__.py
copyparty/res/__init__.py
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/surrogateescape.py
copyparty/stolen/surrogateescape.py
# coding: utf-8 """ This is Victor Stinner's pure-Python implementation of PEP 383: the "surrogateescape" error handler of Python 3. Scissored from the python-future module to avoid 4.4MB of additional dependencies: https://github.com/PythonCharmers/python-future/blob/e12549c42ed3a38ece45b9d88c75f5f3ee4d658d/src/futu...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/__init__.py
copyparty/stolen/__init__.py
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/qrcodegen.py
copyparty/stolen/qrcodegen.py
# coding: utf-8 # modified copy of Project Nayuki's qrcodegen (MIT-licensed); # https://github.com/nayuki/QR-Code-generator/blob/daa3114/python/qrcodegen.py # the original ^ is extremely well commented so refer to that for explanations # hacks: binary-only, auto-ecc, py2-compat from __future__ import print_function,...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/bimap.py
copyparty/stolen/dnslib/bimap.py
# coding: utf-8 import types class BimapError(Exception): pass class Bimap(object): def __init__(self, name, forward, error=AttributeError): self.name = name self.error = error self.forward = forward.copy() self.reverse = dict([(v, k) for (k, v) in list(forward.items())]) ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/label.py
copyparty/stolen/dnslib/label.py
# coding: utf-8 from __future__ import print_function import re from .bit import get_bits, set_bits from .buffer import Buffer, BufferError LDH = set(range(33, 127)) ESCAPE = re.compile(r"\\([0-9][0-9][0-9])") avahi_379 = 0 def set_avahi_379(): global avahi_379 avahi_379 = 1 def log_avahi_379(args): ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/dns.py
copyparty/stolen/dnslib/dns.py
# coding: utf-8 from __future__ import print_function import binascii from itertools import chain from .bimap import Bimap, BimapError from .bit import get_bits, set_bits from .buffer import BufferError from .label import DNSBuffer, DNSLabel, set_avahi_379 from .ranges import IP4, IP6, H, I, check_bytes try: r...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/__init__.py
copyparty/stolen/dnslib/__init__.py
# coding: utf-8 """ L: MIT Copyright (c) 2010 - 2017 Paul Chakravarti https://github.com/paulc/dnslib/tree/0.9.23 """ from .dns import * version = "0.9.23"
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/lex.py
copyparty/stolen/dnslib/lex.py
# coding: utf-8 from __future__ import print_function import collections try: from StringIO import StringIO except ImportError: from io import StringIO class Lexer(object): escape_chars = "\\" escape = {"n": "\n", "t": "\t", "r": "\r"} def __init__(self, f, debug=False): if hasattr(f,...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/buffer.py
copyparty/stolen/dnslib/buffer.py
# coding: utf-8 import binascii import struct class BufferError(Exception): pass class Buffer(object): def __init__(self, data=b""): self.data = bytearray(data) self.offset = 0 def remaining(self): return len(self.data) - self.offset def get(self, length): if lengt...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/bit.py
copyparty/stolen/dnslib/bit.py
# coding: utf-8 from __future__ import print_function def get_bits(data, offset, bits=1): mask = ((1 << bits) - 1) << offset return (data & mask) >> offset def set_bits(data, value, offset, bits=1): mask = ((1 << bits) - 1) << offset clear = 0xFFFF ^ mask data = (data & clear) | ((value << offs...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/dnslib/ranges.py
copyparty/stolen/dnslib/ranges.py
# coding: utf-8 import sys if sys.version_info < (3,): int_types = ( int, long, ) byte_types = (str, bytearray) else: int_types = (int,) byte_types = (bytes, bytearray) def check_instance(name, val, types): if not isinstance(val, types): raise ValueError( ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/ifaddr/_posix.py
copyparty/stolen/ifaddr/_posix.py
# coding: utf-8 from __future__ import print_function, unicode_literals import collections import ctypes.util import os import socket import ipaddress if True: # pylint: disable=using-constant-test from typing import Iterable, Optional from . import _shared as shared from ._shared import U class ifaddrs(ctyp...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/ifaddr/_win32.py
copyparty/stolen/ifaddr/_win32.py
# coding: utf-8 from __future__ import print_function, unicode_literals import ctypes from ctypes import wintypes if True: # pylint: disable=using-constant-test from typing import Iterable, List from . import _shared as shared NO_ERROR = 0 ERROR_BUFFER_OVERFLOW = 111 MAX_ADAPTER_NAME_LENGTH = 256 MAX_ADAPTER_D...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/ifaddr/__init__.py
copyparty/stolen/ifaddr/__init__.py
# coding: utf-8 from __future__ import print_function, unicode_literals """ L: BSD-2-Clause Copyright (c) 2014 Stefan C. Mueller https://github.com/pydron/ifaddr/tree/0.2.0 """ import os from ._shared import IP, Adapter def nope(include_unconfigured=False): return [] try: S390X = os.uname().machine == "s...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/stolen/ifaddr/_shared.py
copyparty/stolen/ifaddr/_shared.py
# coding: utf-8 from __future__ import print_function, unicode_literals import ctypes import platform import socket import sys import ipaddress if True: # pylint: disable=using-constant-test from typing import Callable, List, Optional, Union PY2 = sys.version_info < (3,) if not PY2: U: Callable[[str], str...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/bos/path.py
copyparty/bos/path.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os from ..util import SYMTIME, fsdec, fsenc def abspath(p: str) -> str: return fsdec(os.path.abspath(fsenc(p))) def exists(p: str) -> bool: return os.path.exists(fsenc(p)) def getmtime(p: str, follow_symlinks: bool = True) ->...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/bos/bos.py
copyparty/bos/bos.py
# coding: utf-8 from __future__ import print_function, unicode_literals import os import time from ..util import SYMTIME, fsdec, fsenc from . import path as path if True: # pylint: disable=using-constant-test from typing import Any, Optional, Union from ..util import NamedLogger MKD_755 = {"chmod_d": 0o75...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/bos/__init__.py
copyparty/bos/__init__.py
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/web/a/u2c.py
copyparty/web/a/u2c.py
#!/usr/bin/env python3 from __future__ import print_function, unicode_literals S_VERSION = "2.18" S_BUILD_DT = "2026-01-02" """ u2c.py: upload to copyparty 2021, ed <irc.rizon.net>, MIT-Licensed https://github.com/9001/copyparty/blob/hovudstraum/bin/u2c.py - dependencies: no - supports python 2.6, 2.7, and 3.3 throu...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/web/a/partyfuse.py
copyparty/web/a/partyfuse.py
#!/usr/bin/env python3 """partyfuse: remote copyparty as a local filesystem""" __author__ = "ed <copyparty@ocv.me>" __copyright__ = 2019 __license__ = "MIT" __url__ = "https://github.com/9001/copyparty/" S_VERSION = "2.2" S_BUILD_DT = "2025-12-16" """ mount a copyparty server (local or remote) as a filesystem speed...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
true
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/web/a/__init__.py
copyparty/web/a/__init__.py
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/copyparty/web/deps/__init__.py
copyparty/web/deps/__init__.py
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/.vscode/launch.py
.vscode/launch.py
#!/usr/bin/env python3 # takes arguments from launch.json # is used by no_dbg in tasks.json # launches 10x faster than mspython debugpy # and is stoppable with ^C import re import os import sys print(sys.executable) import json5 import shlex import subprocess as sp with open(".vscode/launch.json", "r", encoding="...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/contrib/zfs-tune.py
contrib/zfs-tune.py
#!/usr/bin/env python3 import os import sqlite3 import sys import traceback """ when the up2k-database is stored on a zfs volume, this may give slightly higher performance (actual gains not measured yet) NOTE: must be applied in combination with the related advice in the openzfs documentation; https://openzfs.githu...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/contrib/package/nix/copyparty/update.py
contrib/package/nix/copyparty/update.py
#!/usr/bin/env python3 # Update the Nix package pin # # Usage: ./update.sh [PATH] # When the [PATH] is not set, it will fetch the latest release from the repo. # With [PATH] set, it will hash the given file and generate the URL, # base on the version contained within the file import base64 import json import hashlib ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/contrib/package/nix/partftpy/update.py
contrib/package/nix/partftpy/update.py
#!/usr/bin/env python3 # Update the Nix package pin # # Usage: ./update.sh import base64 import json import hashlib import sys from pathlib import Path OUTPUT_FILE = Path("pin.json") TARGET_ASSET = lambda version: f"partftpy-{version}.tar.gz" HASH_TYPE = "sha256" LATEST_RELEASE_URL = "https://api.github.com/repos/90...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/run.py
tests/run.py
#!/usr/bin/env python3 import runpy import sys host = sys.argv[1] sys.argv = sys.argv[:1] + sys.argv[2:] sys.path.insert(0, ".") def rp(): runpy.run_module("unittest", run_name="__main__") if host == "vmprof": rp() elif host == "cprofile": import cProfile import pstats log_fn = "cprofile.log...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_dxml.py
tests/test_dxml.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import re import unittest from xml.etree import ElementTree as ET from copyparty.dxml import BadXML, mkenod, mktnod, parse_xml ET.register_namespace("D", "DAV:") def _parse(txt): try: parse_xml(txt) r...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_cp.py
tests/test_cp.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import os import shutil import tempfile import unittest from itertools import product from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from tests import util as tu from tests.util import Cfg cla...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_metrics.py
tests/test_metrics.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import os import re import shutil import tempfile import unittest from copyparty.__init__ import PY2 from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from copyparty.metrics import Metrics from tes...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_vfs.py
tests/test_vfs.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import json import os import shutil import tempfile import unittest from copyparty import util from copyparty.authsrv import VFS, AuthSrv from tests import util as tu from tests.util import Cfg class TestVFS(unittest.Test...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/util.py
tests/util.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import os import random import re import shutil import socket import subprocess as sp import sys import tempfile import threading import time import unittest from argparse import Namespace import jinja2 from copyparty.__in...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_mv.py
tests/test_mv.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import json import os import shutil import tempfile import unittest from itertools import product from copyparty.__init__ import PY2 from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from tests imp...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_hooks.py
tests/test_hooks.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import os import shutil import tempfile import unittest from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from tests import util as tu from tests.util import Cfg try: from typing import Option...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_utils.py
tests/test_utils.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import unittest from copyparty.__main__ import PY2 from copyparty.util import w8enc from tests import util as tu class TestUtils(unittest.TestCase): def cmp(self, orig, t1, t2): if t1 != t2: raise ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_httpcli.py
tests/test_httpcli.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import io import os import pprint import shutil import tarfile import tempfile import time import unittest import zipfile from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from tests import util as...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/ptrav.py
tests/ptrav.py
#!/usr/bin/env python3 import itertools import re import sys import time from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from . import util as tu from .util import Cfg atlas = ["%", "25", "2e", "2f", ".", "/"] def nolog(*a, **ka): pass def hdr(query): h = "GET /{} HTTP/1.1\r\...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_webdav.py
tests/test_webdav.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import os import shutil import tempfile import time import unittest from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from tests import util as tu from tests.util import TC, Cfg, pfind2ls # tcpdum...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_shr.py
tests/test_shr.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import json import os import shutil import sqlite3 import tempfile import unittest from copyparty.__init__ import ANYWIN from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from copyparty.util import...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_idp.py
tests/test_idp.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import json import os import unittest from copyparty.__init__ import ANYWIN from copyparty.authsrv import AuthSrv from tests.util import Cfg class TestVFS(unittest.TestCase): def dump(self, vfs): print(json.du...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/__init__.py
tests/__init__.py
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_dots.py
tests/test_dots.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import io import json import os import shutil import tarfile import tempfile import unittest from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from copyparty.u2idx import U2idx from copyparty.up2k ...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/tests/test_dedup.py
tests/test_dedup.py
#!/usr/bin/env python3 # coding: utf-8 from __future__ import print_function, unicode_literals import json import os import shutil import tempfile import unittest from itertools import product from copyparty.authsrv import AuthSrv from copyparty.httpcli import HttpCli from tests import util as tu from tests.util impo...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false
9001/copyparty
https://github.com/9001/copyparty/blob/364f74a1bd1020a3d7663c453ac5bf1b1408ff8f/bin/zmq-recv.py
bin/zmq-recv.py
#!/usr/bin/env python3 import sys import zmq """ zmq-recv.py: demo zmq receiver 2025-01-22, v1.0, ed <irc.rizon.net>, MIT-Licensed https://github.com/9001/copyparty/blob/hovudstraum/bin/zmq-recv.py basic zmq-server to receive events from copyparty; try one of the below and then "send a message to serverlog" in the w...
python
MIT
364f74a1bd1020a3d7663c453ac5bf1b1408ff8f
2026-01-04T14:40:51.385338Z
false