Go to file
7sDream cd04a0f327
update to version 0.1.4
2018-04-06 13:58:53 +08:00
tests Finish enhancement by issue #3 2018-04-06 13:41:51 +08:00
.gitignore init 2017-05-23 13:35:40 +08:00
CHANGELOG.md update to version 0.1.4 2018-04-06 13:58:53 +08:00
LICENSE init 2017-05-23 13:35:40 +08:00
MANIFEST.in update to version 0.1.4 2018-04-06 13:58:53 +08:00
README.md Finish enhancement by issue #3 2018-04-06 13:41:51 +08:00
setup.cfg init 2017-05-23 13:35:40 +08:00
setup.py init 2017-05-23 13:35:40 +08:00
torrent_parser.py update to version 0.1.4 2018-04-06 13:58:53 +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 tests

Changelog

See Changelog.

LICENSE

See License.