Metadata-Version: 2.1
Name: bencode_open
Version: 1.0
Summary: bencode parser and converter
Home-page: https://github.com/imachug/bencode-open
Author: Ivanq
Author-email: imachug@gmail.com
License: UNKNOWN
Description: # bencode
        
        `bencode_open` is an open-source MIT-licensed library for parsing and converting
        objects to and from [Bencode format](https://en.wikipedia.org/wiki/Bencode).
        
        
        ## Rationale
        
        `bencode_open` is MIT-licensed and can thus be included to almost all software,
        compared to `bencode` and `bencode.py`.
        
        
        ## Installation
        
        `bencode_open` is available on [GitHub](https://github.com/imachug/bencode_open)
        and on [PyPI](https://pypi.org/project/bencode_open/).
        
        Installing `bencode_open` from PyPI is recommended and can be done as follows:
        
        ```
        pip install bencode_open
        ```
        
        
        ## Usage
        
        ```python
        import bencode_open
        
        print(bencode_open.dumps(b"Hello?"))  # Outputs b"6:Hello?"
        print(bencode_open.dumps(17))  # Outputs b"i17e"
        
        print(bencode_open.loads(b"6:Hello?"))  # Outputs b"Hello?"
        print(bencode_open.loads(b"i17e"))  # Outputs 17
        ```
        
        
        ## Running tests
        
        ```
        python test.py
        ```
        
Platform: UNKNOWN
Description-Content-Type: text/markdown
