Metadata-Version: 2.1
Name: k3num
Version: 0.1.1
Summary: Convert number to human readable format in a string.
Home-page: https://github.com/drmingdrmer/k3num
Author: Zhang Yanpo
Author-email: drdr.xp@gmail.com
License: MIT
Description: # k3num
        
        [![Build Status](https://travis-ci.com/pykit3/k3num.svg?branch=master)](https://travis-ci.com/pykit3/k3num)
        [![Documentation Status](https://readthedocs.org/projects/k3num/badge/?version=stable)](https://k3num.readthedocs.io/en/stable/?badge=stable)
        [![Package](https://img.shields.io/pypi/pyversions/k3num)](https://pypi.org/project/k3num)
        
        Convert number to human readable format in a string.
        
        k3num is a component of [pykit3] project: a python3 toolkit set.
        
        
        # Install
        
        ```
        pip install k3num
        ```
        
        # Synopsis
        
        ```python
        >>> readable(103425)
        '101.0K'
        >>> readable({ 'total': 10240, 'progress': [1, 1024*2.1, 1024*3.2], })
        {'total': '10K', 'progress': ['1', '2.10K', '3.20K']}
        >>> parsenum('5.2K')
        5324.8
        >>> parsenum('10%')
        0.1
        >>> value_to_unit[1024**2]
        'M'
        >>> unit_to_value['K']
        1024
        ```
        
        #   Author
        
        Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>
        
        #   Copyright and License
        
        The MIT License (MIT)
        
        Copyright (c) 2015 Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>
        
        
        [pykit3]: https://github.com/pykit3
Keywords: human,readable,number,digit,integer
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.0
Description-Content-Type: text/markdown
