anom is an object mapper for Google Cloud Datastore.


Keywords
datastore, gcp, ndb, orm, python
License
BSD-3-Clause
Install
pip install anom==0.9.1

Documentation

anom

Build Status PyPI version Documentation

anom is an object mapper for Google Cloud Datastore heavily inspired by ndb with a focus on simplicity, correctness and performance.

Here's what it looks like:

from anom import Model, props


class Greeting(Model):
  email = props.String(indexed=True, optional=True)
  message = props.Text()
  created_at = props.DateTime(indexed=True, auto_now_add=True)
  updated_at = props.DateTime(indexed=True, auto_now=True)

greeting = Greeting(message="Hi!")
greeting.put()

anom is licensed under the 3-clause BSD license and it officially supports Python 3.6 and later.

Installation

pip install -U anom

Documentation

Documentation is available at http://anom.defn.io.