Metadata-Version: 2.1
Name: torrent-bencode3
Version: 0.1.0
Summary: torrent文件的编码、解码
Home-page: http://github.com/skytoup/torrent-bencode3
Author: skytoup
Author-email: skytoupone1@gmail.com
License: MIT
Description: # TorrentBEncode3
        > 用于编码、解码torrent文件的bencode格式, 需要Python3.5+
        
        
        ## 安装
        `pip3 install torrent-bencode3`
        
        ## 测试
        1. `git clone https://github.com/skytoup/TorrentBEncode3`
        2. `cd TorrentBEncode3`
        3. `pip3 install -r requirements-test.txt`
        4. `tox`
        
        ## 使用
        ```python3
        from bencode import BEncode
        
        
        s = BEncode.loads(b'11:hello world')  # b'hello world'
        BEncode.dumps(s)  # b'11:hello world'
        
        with open('/path/to/torrent', 'rb') as f:
            obj = BEncode.load(f)
            with open('/path/to/save/torrent', 'wb') as wf:
                BEncode.dump(obj, wf)
        ```
        
Keywords: torrent,bencode,encode,decode
Platform: any
Requires-Python: >=3.5
Description-Content-Type: text/markdown
