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)])
Copyright and License
Gcloudoem is Copyright (C) the respective authors of the files, as noted at the top of each file. If not noted, it is Copyright 2015 Kapiche Ltd.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file gcloudoem-0.1.0rc16.tar.gz
.
File metadata
- Download URL: gcloudoem-0.1.0rc16.tar.gz
- Upload date:
- Size: 58.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d302c1988010deb5bf46695886de720c07eba88754f3fecc2cc17176393dec68 |
|
MD5 | c4494440c8ca8a9fc42604be5ec69ec8 |
|
BLAKE2b-256 | cbd664cecb3453feb94691b82b9d7bbecfd4df242a42b3f21827d645d1dccd45 |
File details
Details for the file gcloudoem-0.1.0rc16.macosx-10.10-x86_64.tar.gz
.
File metadata
- Download URL: gcloudoem-0.1.0rc16.macosx-10.10-x86_64.tar.gz
- Upload date:
- Size: 118.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be0cf4a3bda763bc0f15ed4c8a5a89f79673c2f06ad6a53ec54cfade6d657ef8 |
|
MD5 | ea88bbd7f2a932978abf347f295e2e38 |
|
BLAKE2b-256 | 1fb585a07b6689a12de8a6bf865e4544ef88922a9e312e92d97585777df12a53 |