Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

gcloud-datastore-oem is a Python Object-Entity Mapper for working with Google Datastore.

Project Description

Python object to entity mapper for Google Datastore with Django support.

Quickstart

from gcloudoem import *

class TestEntity(Entity):
    name = TextProperty()


class OtherTestEntity(Entity):
    address = TextProperty(default='blah')
    te = ListProperty(ReferenceProperty(TestEntity))

connect(dataset_id='dataset_id', namespace='demo')

es = TestEntity.objects.filter(name='Alice')
oe = OtherTestEntity(te=[e for e in es])
oe.save()
ot = OtherTestEntity.objects.get(pk=oe.key.name_or_id)
print(ot.key.name_or_id, [te.name for te in ot.te])
query = query.Query(TestEntity)
query.add_filter("name", "=", "Kris")
cursor = query()
print([(e.name, e.key.name_or_id,) for e in list(o)])

Release history Release notifications

This version
History Node

0.1.0rc16

History Node

0.1.0rc15

History Node

0.1.0rc14

History Node

0.1.0rc13

History Node

0.1.0rc12

History Node

0.1.0rc11

History Node

0.1.0rc10

History Node

0.1.0rc9

History Node

0.1.0rc8

History Node

0.1.0rc7

History Node

0.1.0rc6

History Node

0.1.0rc5

History Node

0.1.0rc4

History Node

0.1.0rc3

History Node

0.1.0rc2

History Node

0.1.0rc1

History Node

0.1.0.dev2

History Node

0.1.0.dev1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gcloudoem-0.1.0rc16.macosx-10.10-x86_64.tar.gz (118.1 kB) Copy SHA256 hash SHA256 Source None Oct 4, 2016
gcloudoem-0.1.0rc16.tar.gz (58.3 kB) Copy SHA256 hash SHA256 Source None Oct 4, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page