Go to file
7sDream 279c8fc54d
init
2017-05-23 13:35:40 +08:00
.gitignore init 2017-05-23 13:35:40 +08:00
LICENSE init 2017-05-23 13:35:40 +08:00
MANIFEST.in init 2017-05-23 13:35:40 +08:00
README.md init 2017-05-23 13:35:40 +08:00
setup.cfg init 2017-05-23 13:35:40 +08:00
setup.py init 2017-05-23 13:35:40 +08:00
test.py init 2017-05-23 13:35:40 +08:00
test.torrent init 2017-05-23 13:35:40 +08:00
torrent_parser.py init 2017-05-23 13:35:40 +08:00

README.md

Torrent file parser for Python

Install

pip install torret_parser

Usage:

CLI

$ pytp test.torrent
$ cat test.torrent | pytp

As a module

>>> import torrent_parser as tp
>>> data = tp.parse_torrent_file('test.torrent')
>>> print(data['announce'])
http://tracker.trackerfix.com:80/announce

Test

python -m unittest test

LICENSE

See License.