anom-py icon indicating copy to clipboard operation
anom-py copied to clipboard

An ndb-like object mapper for Google Cloud Datastore.

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.