Metadata-Version: 1.1
Name: django-sizefield
Version: 0.9
Summary: A model field to store a file size, whose edition and display shows units.
Home-page: https://github.com/leplatrem/django-sizefield
Author: Mathieu Leplatre
Author-email: contact@mathieu-leplatre.info
License: LPGL, see LICENSE file.
Download-URL: http://pypi.python.org/pypi/django-sizefield/
Description: *django-sizefield* is a file size field, stored as BigInteger and rendered
        with units in Bytes (KB, MB, ...)
        
        .. image:: https://travis-ci.org/leplatrem/django-sizefield.png
            :target: https://travis-ci.org/leplatrem/django-sizefield
        
        .. image:: https://coveralls.io/repos/leplatrem/django-sizefield/badge.png
            :target: https://coveralls.io/r/leplatrem/django-sizefield
        
        
        =======
        INSTALL
        =======
        
        ::
        
            pip install django-sizefield
        
        
        =====
        USAGE
        =====
        
        Model field
        ===========
        
        ::
        
            class Data(models.Model):
                path = models.FilePathField()
                size = FileSizeField()
        
        
        The model form will have a TextInput, which renders the 
        value with units, and accepts values with or without units.
        
        
        Template filter
        ===============
        
        It adds units to any number value:
        
        ::
        
            {% load sizefieldtags %}
            
            {{ value|filesize }}
        
        *will render 12.3KB (for example)*
        
        
        =======
        AUTHORS
        =======
        
            * Mathieu Leplatre <contact@mathieu-leplatre.info>
            * Alexander (@meteozond)
            * Tom Yam (@perez)
        
        
        =======
        LICENSE
        =======
        
            * Lesser GNU Public License
        
        
        
        
        
        
        
        =========
        CHANGELOG
        =========
        
        0.9 (2015-11-12)
        ================
        
        - Add support for unitless values (#13, thanks @megapctr)
        
        
        0.8 (2015-10-04)
        ================
        
        - Add support for Python3 (thanks @naxube)
        
        
        0.7 (2015-03-13)
        ================
        
        - Add Zetta and Yotta support (thanks @meteozond)
        - Fix bug with big values (fixes #8, thanks @meteozond)
        
        
        0.6 (2014-09-25)
        ================
        
        - Add Exabytes support (thanks Matt Pritchard)
        
        0.5 (2014-06-18)
        ================
        
        - Fix template tag not support None values (fixes #4)
        - Support comma notation for float values (fixes #5)
        
        0.4 (2013-08-25)
        ================
        
        - Complete refactor by @perez
        
        0.3 (2013-06-08)
        ================
        
        - South support by @meteozond
        
        0.2 (2013-05-31)
        ================
        
        - Petabytes support by @meteozond
        
        0.1 (2011-01-04)
        ================
        
        - Initial working version.
        
Platform: UNKNOWN
Classifier: Topic :: Utilities
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 2.7
