Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
A BitTorrent client written entirely in Python so that you can get to the depths of the protocol
Readme
This is a BitTorrent client written entirely in Python so that it can be easily used for experiments. It is a fully working BitTorrent client so you can use it below as an example. There is no intelligence in this such as getting rarest peice first. Everything is random.
It doesn't use thread
or multiprocessing
as it's designed to be
used for experiments, and I don't know how someone may want to use it,
while also making it impractical for general use, but I'd like to
eventually support the most common schemes such as DHT, Magnet URLs, PHE
tDP, and UPnP so it is possible to accept incoming connections.
PIP
::
pip install pythorrent
From Source
::
pip install -r requirements.txt
python setup.py install
Depending on how you installed PYTHorrent you may need to go to the root of the source of the PYTHorrent directory.
::
cd python-pythorrent
Getting commands
::
python -m pythorrent -h
Downloading a Torrent using a torrent file
::
python -m pythorrent --file ubuntu-16.04-desktop-amd64.iso.torrent --path . --log=info
http://www.kristenwidman.com/blog/71/how-to-write-a-bittorrent-client-part-2/
AGPLv3
::
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
To Do
-----
Tidy up documentation
Memory efficiency
- Only load piece data in to memory when it is needed.
Magnet URL Scheme
DHT
Options? - https://github.com/drxzcl/lightdht/ - I like this one best -
Seems to lock out when finding peers - https://github.com/gsko/mdht
Encryption? PHE
UPnP
- https://code.google.com/archive/p/miranda-upnp/
- Entirely Python code
- http://www.gniibe.org/memo/system/dynamic-ip/upnp.html
- Has dependency on GNUPnP
- https://github.com/miniupnp/miniupnp
\*\* **Always download legal torrents** \*\*
FAQs
A BitTorrent client written entirely in Python so that you can get to the depths of the protocol
We found that pythorrent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.