Skip to main content

Very simple O/R mapper for SQLite3 in small applications

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.1.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for macaron-0.1.0.tar.gz
Algorithm Hash digest
SHA256 335ac445f32631f8291428babc7d6a80369dc145bd9f3a92f1d4a4541d6a595e
MD5 c58eb8ecca534ccf801e45b29b7c96a2
BLAKE2b-256 1a14bfe3e93552340c8c7b7399737cc0cc3a584045784d28069daae192f489a5

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