John-Mark Gurney
22970029de
add a file that should have been added a while back..
2 years ago
John-Mark Gurney
cd9159ddf3
add auto command to populate some standard fields, e.g. mimetype
2 years ago
John-Mark Gurney
729f22e431
add bencode tests to run automaticaly, no cover unused func
2 years ago
John-Mark Gurney
d1d4c7edc6
Add 'ui/medashare/btv/' from commit '85f5c9a03e3773b6868ae83a075c9df8fc70c4d4'
git-subtree-dir: ui/medashare/btv
git-subtree-mainline: 4a28327b7d
git-subtree-split: 85f5c9a03e
2 years ago
John-Mark Gurney
4a28327b7d
forgot this modifications..
2 years ago
John-Mark Gurney
de98507cd3
support specifying multiple files at once
2 years ago
John-Mark Gurney
85f5c9a03e
add doc strings, and limit what functions are exposed..
2 years ago
John-Mark Gurney
893a9b7d9e
update comment..
2 years ago
John-Mark Gurney
7f94e49bc0
move badfiles to class, encoding is ONLY UTF-8 per BEP-3
https://www.bittorrent.org/beps/bep_0003.html
2 years ago
John-Mark Gurney
53c4ac2f39
minor improvements to coverage, ignoring buggy/tests
2 years ago
John-Mark Gurney
4b2b5a1b0a
make sure json encoding fails on unhandled classes..
2 years ago
John-Mark Gurney
0865595d3a
covert to iterating via files instead of pieces..
This uses an index to quickly look up what pieces are part of a
file, and then checks that they are all valid, this should be faster
as it is likely that the torrent has more pieces than files (few
large files, vs many, many small files)..
2 years ago
John-Mark Gurney
809b5d6c63
change how validate is implemented, return files good/bad..
2 years ago
John-Mark Gurney
a594159abb
add missing fixture files..
2 years ago
John-Mark Gurney
c2918b9c8a
support specified encoding in torrent... drop debug print..
2 years ago
John-Mark Gurney
f2b1a00971
first cut at verification of bittorrent files...
This needs to be expanded a bit, and handle utf-8 encoded filenames..
2 years ago
John-Mark Gurney
eb26d1d04f
use strings (us-ascii) for dict keys to make things more manageable..
2 years ago
John-Mark Gurney
20f312a2b1
Make the python3 compliant. This doesn't deal w/ unicode yet
2 years ago
John-Mark Gurney
62f5079122
add initial version of bencode from BitTornado..
the license file text was imported..
2 years ago
John-Mark Gurney
69b1b1c856
implement import (json, from dump) and drop (delete from db)
2 years ago
John-Mark Gurney
0d258c04f4
make sure that iter returns uniq objects..
2 years ago
John-Mark Gurney
1accd1392a
make json coding a thing...
2 years ago
John-Mark Gurney
4b9ce5a97f
add some information about this one..
2 years ago
John-Mark Gurney
ab539f5ef7
forgot to add this w/ a previous commit..
2 years ago
John-Mark Gurney
d2895ce7fa
forgot the fileobject's id (host+dir+filename)
2 years ago
John-Mark Gurney
bf0677d6a3
add skip, make sure hostid is a uuid when reloaded..
2 years ago
John-Mark Gurney
ff565c7b93
make path absolute, so same dir/file from different cwd are same
2 years ago
John-Mark Gurney
2a281d5d99
addressed in a previous commit..
2 years ago
John-Mark Gurney
53c6d72103
spell genident properly..
2 years ago
John-Mark Gurney
c557d34725
reformat and add comments to a test..
2 years ago
John-Mark Gurney
c2f3364647
add support for hostid..
2 years ago
John-Mark Gurney
37212a4c08
if list creates a file, write it out..
2 years ago
John-Mark Gurney
cda0102972
update pasn1 to UTC support, add missing test files...
fix up code to pass all the tests...
2 years ago
John-Mark Gurney
4fb88a47f4
wrap lines
2 years ago
John-Mark Gurney
0f2dd2a693
convert tests to be data driven, use pathlib, fix creating metadata
update print order to print common fields first per order in list..
if ident doesn't change it (no args), print out current identity..
2 years ago
John-Mark Gurney
9824f55b0a
remove the old code that was replaced in the previous commit..
2 years ago
John-Mark Gurney
83b6099972
change how the cli works, still not great..
2 years ago
John-Mark Gurney
e1d195c6b1
various minor improvements:
make public key a str, instead of binary
add more tests so that it actually creates the database
better error reporting..
2 years ago
John-Mark Gurney
bb28fff062
point to the correct entry point..
2 years ago
John-Mark Gurney
21dfa9e3c5
failfast so it's easier to debug..
2 years ago
John-Mark Gurney
d4d2d2e367
minor changes to sorted, and make hashing large files work..
2 years ago
John-Mark Gurney
70c68310c3
skip a few, and import a test as different name so it runs..
2 years ago
John-Mark Gurney
51aa039e9b
depend upon version restriction in setup.py
2 years ago
John-Mark Gurney
f90c3d16ba
catch up w/ work, drop Klein for FastAPI, 3.8, and other minor
changes..
2 years ago
John-Mark Gurney
473b317cd9
note OpenXanadu
2 years ago
John-Mark Gurney
f13f6f34e8
add metalink info
3 years ago
John-Mark Gurney
d78aa6f57b
DHT indexes paper from: https://research.cs.queensu.ca/cccg2015/CCCG15-papers/30.pdf
3 years ago
John-Mark Gurney
7682b0e445
use example.com instead..
3 years ago
John-Mark Gurney
a822379476
various cleanups and clarifications...
3 years ago
John-Mark Gurney
bf5cc16ece
describ how object signing could work..
3 years ago