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

Latest commit

 

History

History
42 lines (28 loc) · 1.11 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.11 KB

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.