Skip to main content

Simple object-relational mapper for SQLite3, includes plugin for Bottle web framework

Project description

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

Macaron provides easy access way to SQLite database as standalone. And also it can work in Bottle web framework through the plugin mechanism.

Example:

>>> import macaron
>>> macaron.macaronage("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'>
>>> macaron.bake()
>>> macaron.cleanup()

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for macaron-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c8d4c6b3a9217f7fd3c0f2c404eb0a9a207aea83a91370cf5cfdf192e38c5c1c
MD5 9b02d293a2fdef5d1e965d5d1be05988
BLAKE2b-256 4ef7b1a604969b58813351bd79bf2f2eed9e022269e4ff2a16397d3ef0a72a99

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