Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
/ anom-py Public archive

An ndb-like object mapper for Google Cloud Datastore.

License

Notifications You must be signed in to change notification settings

Bogdanp/anom-py

Repository files navigation

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.