Skip to content

JamesHoi/kruz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kruz

kruz is a command line p2p file transfer tool

> kruz share file.txt
Share server started, waiting for client...
Connected from ('::ffff:127.0.0.1', 12478, 0, 0)
file.txt: 100%|██████████████████████████████████████████████████████████████████▉| 4.27M/4.27M [00:00<00:00, 98.5MB/s]

receive file

> kruz recv 127.0.0.1 19302
Connected to peer 127.0.0.1:19302
file.txt: 100%|███████████████████████████████████████████████████████████████████▉| 4.27M/4.27M [00:00<00:00, 100MB/s]
File recved, cost 0.7420966625213623s

Install

Supported Versions Require python>=3.8

pip install kruz

or you can install from source

git clone https://github.com/JamesHoi/kruz
cd kruz & python setup.py install

Run tests

pip install pytest pytest-xdist
cd kruz & pytest

TODO

  1. show all ipv6 address
  2. ctrl+c to cancel sharing
  3. accomplish communication using udp protocol
  4. hole puching
  5. multi-thread sharing
  6. nat type from pystun is incorrect
  7. send folder

About

a command line p2p file transfer tool

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages