Go to file
7sDream 94e8cd7974
add encoding arg
2017-06-05 01:37:49 +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 fix typo in readme 2017-05-23 13:49:54 +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 add encoding arg 2017-06-05 01:37:49 +08:00

README.md

Torrent file parser for Python

Install

pip install torrent_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.