rename copyparty-fuse to partyfuse

This commit is contained in:
ed 2022-11-26 20:01:20 +00:00
parent 6bc1bc542f
commit 6c962ec7d3
5 changed files with 19 additions and 17 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import print_function, unicode_literals from __future__ import print_function, unicode_literals
"""copyparty-fuse-streaming: remote copyparty as a local filesystem""" """partyfuse-streaming: remote copyparty as a local filesystem"""
__author__ = "ed <copyparty@ocv.me>" __author__ = "ed <copyparty@ocv.me>"
__copyright__ = 2020 __copyright__ = 2020
__license__ = "MIT" __license__ = "MIT"
@ -12,7 +12,7 @@ __url__ = "https://github.com/9001/copyparty/"
mount a copyparty server (local or remote) as a filesystem mount a copyparty server (local or remote) as a filesystem
usage: usage:
python copyparty-fuse-streaming.py http://192.168.1.69:3923/ ./music python partyfuse-streaming.py http://192.168.1.69:3923/ ./music
dependencies: dependencies:
python3 -m pip install --user fusepy python3 -m pip install --user fusepy
@ -21,7 +21,7 @@ dependencies:
+ on Windows: https://github.com/billziss-gh/winfsp/releases/latest + on Windows: https://github.com/billziss-gh/winfsp/releases/latest
this was a mistake: this was a mistake:
fork of copyparty-fuse.py with a streaming cache rather than readahead, fork of partyfuse.py with a streaming cache rather than readahead,
thought this was gonna be way faster (and it kind of is) thought this was gonna be way faster (and it kind of is)
except the overhead of reopening connections on trunc totally kills it except the overhead of reopening connections on trunc totally kills it
""" """
@ -154,7 +154,7 @@ def dewin(txt):
class RecentLog(object): class RecentLog(object):
def __init__(self): def __init__(self):
self.mtx = threading.Lock() self.mtx = threading.Lock()
self.f = None # open("copyparty-fuse.log", "wb") self.f = None # open("partyfuse.log", "wb")
self.q = [] self.q = []
thr = threading.Thread(target=self.printer) thr = threading.Thread(target=self.printer)
@ -185,9 +185,9 @@ class RecentLog(object):
print("".join(q), end="") print("".join(q), end="")
# [windows/cmd/cpy3] python dev\copyparty\bin\copyparty-fuse.py q: http://192.168.1.159:1234/ # [windows/cmd/cpy3] python dev\copyparty\bin\partyfuse.py q: http://192.168.1.159:1234/
# [windows/cmd/msys2] C:\msys64\mingw64\bin\python3 dev\copyparty\bin\copyparty-fuse.py q: http://192.168.1.159:1234/ # [windows/cmd/msys2] C:\msys64\mingw64\bin\python3 dev\copyparty\bin\partyfuse.py q: http://192.168.1.159:1234/
# [windows/mty/msys2] /mingw64/bin/python3 /c/Users/ed/dev/copyparty/bin/copyparty-fuse.py q: http://192.168.1.159:1234/ # [windows/mty/msys2] /mingw64/bin/python3 /c/Users/ed/dev/copyparty/bin/partyfuse.py q: http://192.168.1.159:1234/
# #
# [windows] find /q/music/albums/Phant*24bit -printf '%s %p\n' | sort -n | tail -n 8 | sed -r 's/^[0-9]+ //' | while IFS= read -r x; do dd if="$x" of=/dev/null bs=4k count=8192 & done # [windows] find /q/music/albums/Phant*24bit -printf '%s %p\n' | sort -n | tail -n 8 | sed -r 's/^[0-9]+ //' | while IFS= read -r x; do dd if="$x" of=/dev/null bs=4k count=8192 & done
# [alpine] ll t; for x in t/2020_0724_16{2,3}*; do dd if="$x" of=/dev/null bs=4k count=10240 & done # [alpine] ll t; for x in t/2020_0724_16{2,3}*; do dd if="$x" of=/dev/null bs=4k count=10240 & done

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import print_function, unicode_literals from __future__ import print_function, unicode_literals
"""copyparty-fuse: remote copyparty as a local filesystem""" """partyfuse: remote copyparty as a local filesystem"""
__author__ = "ed <copyparty@ocv.me>" __author__ = "ed <copyparty@ocv.me>"
__copyright__ = 2019 __copyright__ = 2019
__license__ = "MIT" __license__ = "MIT"
@ -12,7 +12,7 @@ __url__ = "https://github.com/9001/copyparty/"
mount a copyparty server (local or remote) as a filesystem mount a copyparty server (local or remote) as a filesystem
usage: usage:
python copyparty-fuse.py http://192.168.1.69:3923/ ./music python partyfuse.py http://192.168.1.69:3923/ ./music
dependencies: dependencies:
python3 -m pip install --user fusepy python3 -m pip install --user fusepy
@ -166,7 +166,7 @@ def dewin(txt):
class RecentLog(object): class RecentLog(object):
def __init__(self): def __init__(self):
self.mtx = threading.Lock() self.mtx = threading.Lock()
self.f = None # open("copyparty-fuse.log", "wb") self.f = None # open("partyfuse.log", "wb")
self.q = [] self.q = []
thr = threading.Thread(target=self.printer) thr = threading.Thread(target=self.printer)
@ -197,9 +197,9 @@ class RecentLog(object):
print("".join(q), end="") print("".join(q), end="")
# [windows/cmd/cpy3] python dev\copyparty\bin\copyparty-fuse.py q: http://192.168.1.159:1234/ # [windows/cmd/cpy3] python dev\copyparty\bin\partyfuse.py q: http://192.168.1.159:1234/
# [windows/cmd/msys2] C:\msys64\mingw64\bin\python3 dev\copyparty\bin\copyparty-fuse.py q: http://192.168.1.159:1234/ # [windows/cmd/msys2] C:\msys64\mingw64\bin\python3 dev\copyparty\bin\partyfuse.py q: http://192.168.1.159:1234/
# [windows/mty/msys2] /mingw64/bin/python3 /c/Users/ed/dev/copyparty/bin/copyparty-fuse.py q: http://192.168.1.159:1234/ # [windows/mty/msys2] /mingw64/bin/python3 /c/Users/ed/dev/copyparty/bin/partyfuse.py q: http://192.168.1.159:1234/
# #
# [windows] find /q/music/albums/Phant*24bit -printf '%s %p\n' | sort -n | tail -n 8 | sed -r 's/^[0-9]+ //' | while IFS= read -r x; do dd if="$x" of=/dev/null bs=4k count=8192 & done # [windows] find /q/music/albums/Phant*24bit -printf '%s %p\n' | sort -n | tail -n 8 | sed -r 's/^[0-9]+ //' | while IFS= read -r x; do dd if="$x" of=/dev/null bs=4k count=8192 & done
# [alpine] ll t; for x in t/2020_0724_16{2,3}*; do dd if="$x" of=/dev/null bs=4k count=10240 & done # [alpine] ll t; for x in t/2020_0724_16{2,3}*; do dd if="$x" of=/dev/null bs=4k count=10240 & done

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from __future__ import print_function, unicode_literals from __future__ import print_function, unicode_literals
"""copyparty-fuseb: remote copyparty as a local filesystem""" """partyfuse2: remote copyparty as a local filesystem"""
__author__ = "ed <copyparty@ocv.me>" __author__ = "ed <copyparty@ocv.me>"
__copyright__ = 2020 __copyright__ = 2020
__license__ = "MIT" __license__ = "MIT"
@ -42,13 +42,13 @@ except:
mount a copyparty server (local or remote) as a filesystem mount a copyparty server (local or remote) as a filesystem
usage: usage:
python ./copyparty-fuseb.py -f -o allow_other,auto_unmount,nonempty,pw=wark,url=http://192.168.1.69:3923 /mnt/nas python ./partyfuse2.py -f -o allow_other,auto_unmount,nonempty,pw=wark,url=http://192.168.1.69:3923 /mnt/nas
dependencies: dependencies:
sudo apk add fuse-dev python3-dev sudo apk add fuse-dev python3-dev
python3 -m pip install --user fuse-python python3 -m pip install --user fuse-python
fork of copyparty-fuse.py based on fuse-python which fork of partyfuse.py based on fuse-python which
appears to be more compliant than fusepy? since this works with samba appears to be more compliant than fusepy? since this works with samba
(probably just my garbage code tbh) (probably just my garbage code tbh)
""" """
@ -639,7 +639,7 @@ def main():
print(" need argument: mount-path") print(" need argument: mount-path")
print("example:") print("example:")
print( print(
" ./copyparty-fuseb.py -f -o allow_other,auto_unmount,nonempty,pw=wark,url=http://192.168.1.69:3923 /mnt/nas" " ./partyfuse2.py -f -o allow_other,auto_unmount,nonempty,pw=wark,url=http://192.168.1.69:3923 /mnt/nas"
) )
sys.exit(1) sys.exit(1)

View file

@ -0,0 +1 @@
../../../bin/partyfuse.py

View file

@ -59,6 +59,7 @@ copyparty/vend/asynchat.py,
copyparty/vend/asyncore.py, copyparty/vend/asyncore.py,
copyparty/web, copyparty/web,
copyparty/web/a, copyparty/web/a,
copyparty/web/a/partyfuse.py,
copyparty/web/a/up2k.py, copyparty/web/a/up2k.py,
copyparty/web/a/webdav-cfg.bat, copyparty/web/a/webdav-cfg.bat,
copyparty/web/baguettebox.js, copyparty/web/baguettebox.js,