Skip to main content

John Hoffman's fork of the original bittorrent, we do some modify and use it as torrent download library

Project description

# Atproject

Becuase this package in under development, so we have not upload it to PyPI yet. When this project is good enough,

we will upload it to PyPI, at that time, user can use “pip install academictorrents” install this module.

# How to Install:

in termimal copy the following command:

  1. if you have administrator permission:

    sudo pip install git+https://github.com/liuyifei0226/atproject

  2. If you do not have administrator permission, please use:

    pip install git+https://github.com/liuyifei0226/atproject –user

# How to use:
  1. After installing the Academictorrents, enter python in terminal, get into python commond line:

    python

and you’ll see

>>>

This means you’re in python now.

(2) Import academictorrents in your python. For your convinience, you can import it as at for short:

import academictorrents as at

(3) Download the file. Use the command at.get(” “) to download the file you need. Here you should pay attention that your current path should be higher than the folder you save your .torrent file. For example, if you put your .torrent file in the folder /Users/ABC/Downloads, you should at Downloads or ABC to download the file.

>>> at.get("path/torrentname.torrent")

When you see something like

saving: devinberg.com_471592PB.pdf (0.2 MB) percent done: 0.0 time left: download to: /Users/ChunjieXu/devinberg.com_471592PB.pdf download rate: 0.0 kB/s upload rate: 0.0 kB/s share rating: 0.000 (0.0 MB up / 0.0 MB down) seed status: 1 seen now, plus 0.000 distributed copies peer status: 1 seen now, 0.0% done at 0.0 kB/s

saving: devinberg.com_471592PB.pdf (0.2 MB) percent done: 86.4 time left: complete! download to: /Users/ChunjieXu/devinberg.com_471592PB.pdf download rate: 29.6 kB/s upload rate: 0.0 kB/s share rating: 0.000 (0.0 MB up / 0.2 MB down) seed status: 4 seen now, plus 0.000 distributed copies peer status: 0 seen now, 0.0% done at 0.0 kB/s

saving: devinberg.com_471592PB.pdf (0.2 MB) percent done: 100 time left: Download Succeeded! download to: /Users/ChunjieXu/devinberg.com_471592PB.pdf download rate: upload rate: 0.0 kB/s share rating: 0.000 (0.0 MB up / 0.2 MB down) seed status: 4 seen now, plus 0.000 distributed copies peer status: 0 seen now, 0.0% done at 0.0 kB/s

Congratulations! This means your academic torrents works perfect. You can Press “Control+C” to quit and get back to python.

Project details


Release history Release notifications

This version
History Node

1.1

History Node

1.0

History Node

0.1.0

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
atproject_1_1.tar.gz (240.4 kB) Copy SHA256 hash SHA256 Source None May 19, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page