Metadata-Version: 1.1
Name: csvorm
Version: 0.1.1dev
Summary: orm for csv
Home-page: https://bitbucket.org/takesxi_sximada/csvorm
Author: TakesxiSximada
Author-email: UNKNOWN
License: BSD
Description: csvorm - ORM for CSV
        
        This allows to use the CSV as ORM.
        
        Install
        ==========
        
        ::
        
            pip install csvorm
        
        How to use it
        ==============
        
        layout define::
        
            from csvorm import (
                Model,
                Column,
                Integer,
                Unicode,
                DateTime,
                )
        
            class TestCSV(Model):
                _encoding_ = 'cp932'
                id_ = Column(Integer)
                name = Column(Unicode)
                modified_at = Column(DateTime())
        
        creating csv::
        
            test_csv = TestCSV()
        
            record = test_csv.create()
            record.id_ = 1
            record.name = u'first'
            record.modified_at = datetime.datetime.now()
        
            record = test_csv.create()
            record.id_ = 2
            record.name = u'second'
            record.modified_at = datetime.datetime.now()
        
            test_csv.dump('test.csv')
        
        
        parse csv::
        
            test_csv = TestCSV()
            test_csv.load('test.csv')
        
        export data::
        
            id_,name,modified_at
            1,first,2014-03-26-15-05-50
            2,second,2014-03-26-15-05-50
        
Keywords: csv
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Natural Language :: Japanese
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
