Human Documentation

human Documentation

Release 1.1.0 Dan Sondergaard

December 18, 2013

1 Installation 2 Reference 3 License 4 Indices and tables Python Module Index

Contents

3 5 7 9 11

i

ii

human Documentation, Release 1.1.0

Human-readable size conversion This module handles parsing of human-readable strings describing file sizes such as 512K and 6.5G. The function from_human() will convert such strings to their corresponding number of bytes. The inverse function is to_human() which converts an integer representing a number of bytes to a human-readable string. The function supported_units() will tell you which units are supported.

Contents

1

human Documentation, Release 1.1.0

2

Contents

CHAPTER 1

Installation

human is not quite ready to go on PyPI yet, but can be easily installed as follows: git clone git://dansondergaard/human.git cd human python setup.py build python setup.py install To build the documentation, execute the following command. You will then have access to pretty documentation in the doc/build directory: python setup.py doc To get started, just import human: >>> import human The module is also available as a command line tool: > human.py from_bytes 78293719 74.7M > human.py to_bytes 1K 1024

3

human Documentation, Release 1.1.0

4

Chapter 1. Installation

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download