orm - SQL-wrappers (activerecord) to recommened for python? -
is there activerecord (any similar sql-wrapper) python? for:
- used in server-side python script
- light-weight
- supports mysql
what need do:
- insert (filename, file size, file md5, file itself) (string, int, string, blob) columns
- if same file (checksum + filename) not exist in db
thx
you might consider sqlalchemy along elixir:
elixir declarative layer on top of sqlalchemy library. thin wrapper, provides ability create simple python classes map directly relational database tables (this pattern referred active record design pattern), providing many of benefits of traditional databases without losing convenience of python objects.
Comments
Post a Comment