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') 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 (C) 2015 Kapiche Ltd. All original code in Bugeye is licensed under the GNU Affero General Public License.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The copyright holders grant you an additional permission under Section 7 of the GNU Affero General Public License, version 3, exempting you from the requirement in Section 6 of the GNU General Public License, version 3, to accompany Corresponding Source with Installation Information for the Program or any work based on the Program. You are still required to comply with all other Section 6 requirements to provide Corresponding Source.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
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 Distribution
Built Distributions
Hashes for gcloudoem-0.1.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 376acae36bc5f24e982f82a00931adc28872ae5b17e1d2d90b434d5f862b2ae0 |
|
MD5 | 7012d1e7a405aba23cd3d3bee5d6bc42 |
|
BLAKE2b-256 | 571eadbbb313aa751355f4f28eef5591c1c195d0801894c53344db3071c0be2f |
Hashes for gcloudoem-0.1.0.dev1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2eded9e8f6f600e5c3935f0815f39fe77db219c9a80ce41b8115e1cfb3f03e7 |
|
MD5 | a71bd974b2b10215d81160dba669f61e |
|
BLAKE2b-256 | 7bec49d5a0646dde99ed2c9f3137bd84b949b108538086fbacdafd579bc9d52f |