Skip to main content

A simple O/R mapper for SQLite3

Project description

Macaron is a small and simple object-relational mapper (ORM) for SQLite and Python. It is distributed as a single file module which has no dependencies other than the Python Standard Library.

Macaron provides provides easy access methods to SQLite database. And it supports Bottle web framework through plugin mechanism.

Example:

>>> import macaron
>>> macaron.macaronage(dbfile="members.db")
>>> team = Team.create(name="Houkago Tea Time")
>>> team.members.append(name="Ritsu", part="Dr")
<Member object 1>
>>> mio = team.members.append(name="Mio", part="Ba")
>>> print mio
<Member 'Mio : Ba'>
>>> for member in team.members: print member
...
<Member 'Ritsu : Dr'>
<Member 'Mio : Ba'>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macaron-0.2.0.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file macaron-0.2.0.tar.gz.

File metadata

  • Download URL: macaron-0.2.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for macaron-0.2.0.tar.gz
Algorithm Hash digest
SHA256 feaad6dd1a2d8f1b21ec130d2bc83a3b52cd77f53167727d8f4137f8d59dbf38
MD5 f6bc12af285658953d3736b525a64105
BLAKE2b-256 8d7a6cb8c14c3003f13d45d5d54a55f9fa7da7cb15e7cacb25e0914b47875d39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page