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
Thanks for contributors
TakesxiSximada
kitsunde
Metadata
Release files for csvorm 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| csvorm-0.1.5.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csvorm-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / csvorm-0.1.5.tar.gz
| Download URL | csvorm-0.1.5.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13c5cbb416f0f8356c10c9a2227d62b5bc37769ae7d8347bdb0a7cb53e2b05ec
|
|
BLAKE2b-256 checksum How to use checksums |
8ee7d304e96bf0004e67aeaf29fa6bfae0df4bdbc6160fa0a034c39488e34617
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / csvorm-0.1.5-py3-none-any.whl
| Download URL | csvorm-0.1.5-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31d36be2ec31c493dc77220768a6ec4949a641298be5f1da031258bf19c753ac
|
|
BLAKE2b-256 checksum How to use checksums |
2c6c7606d8a37db703dfc4ee5fc63d284c59838277e26559f98be4c63bdef36d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for csvorm 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.