{ "info": { "author": "Brandon Istenes", "author_email": "bistenes@socos.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: Apache Software License" ], "description": "datastore-to-gcs\n================\n\nTransfers data from Google Cloud Datastore to Google Cloud Storage.\nIntended to be used from Google App Engine.\n\n\nUsage\n-----\n\n::\n\n >>> import datastore_to_gcs\n >>> from google.appengine.ext import ndb\n >>>\n >>> class Foo(datastore_to_gcs.BaseModel):\n ... email = ndb.StringProperty()\n ...\n >>> f = Foo(email='a@b.com')\n >>> f.put()\n Key('Foo', 1)\n >>> datastore_to_gcs.update(Foo, 'bucket-name', 'foo.json')\n >>> f2 = Foo(email='b@b.com')\n >>> f2.put()\n Key('Foo', 2)\n >>> import datastore_to_gcs.cloud_storage as gcs\n >>> gcs.download_object('bucket-name', 'foo.json')\n [{u'last_modified': u'2017-06-19T18:02:01.332908', u'email': u'a@b.com', u'id': 1}]\n >>> datastore_to_gcs.update(Foo, 'bucket-name', 'foo.json')\n >>> gcs.download_object('bucket-name', 'foo.json')\n [{u'last_modified': u'2017-06-19T18:02:01.332908', u'email': u'a@b.com', u'id': 1}, {u'last_modified': u'2017-06-19T18:03:09.342067', u'email': u'b@b.com', u'id': 2}]\n >>>\n >>>\n >>> class Message(datastore_to_gcs.BaseModel):\n ... text = ndb.StringProperty()\n ...\n >>> m1 = Message(text='hello 1')\n >>> m1.put()\n Key('Message', 3)\n >>> datastore_to_gcs.dump_log(Message, 'bucket-name', 'messages/')\n '2017-06-19T18:05:07.json'\n >>> m2 = Message(text='hello 2')\n >>> m2.put()\n Key('Message', 4)\n >>> m3 = Message(text='hello 3')\n >>> m3.put()\n Key('Message', 5)\n >>> datastore_to_gcs.dump_log(Message, 'bucket-name', 'messages/')\n '2017-06-19T18:06:02.json'\n >>> gcs.download_object('bucket-name', 'messages/2017-06-19T18:05:07.json')\n [{u'text': u'hello 1', u'last_modified': u'2017-06-19T18:04:33.558426', u'id': 3}]\n >>> gcs.download_object('bucket-name', 'messages/2017-06-19T18:06:02.json')\n [{u'text': u'hello 2', u'last_modified': u'2017-06-19T18:05:35.084417', u'id': 4}, {u'text': u'hello 3', u'last_modified': u'2017-06-19T18:05:50.859952', u'id': 5}]\n\n\n\nContributing\n------------\n\nPull requests welcome!\nhttps://github.com/SocosLLC/datastore-to-gcs\n\n\nAbout Socos\n-----------\n\nSocos LLC is the company behind `Muse `_.\n\nMuse brings your child's everyday experiences to life and supports\ntheir development through research-based activities. Muse gives you\ninsights into your child's development and shows you what you can do\neach day to support their growth.\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/SocosLLC/datastore-to-gcs/archive/0.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SocosLLC/datastore-to-gcs", "keywords": "gae,gcp,gcs,gcd,datastore,cloudstorage,transfer,dump", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "datastore-to-gcs", "package_url": "https://pypi.org/project/datastore-to-gcs/", "platform": "", "project_url": "https://pypi.org/project/datastore-to-gcs/", "project_urls": { "Download": "https://github.com/SocosLLC/datastore-to-gcs/archive/0.3.tar.gz", "Homepage": "https://github.com/SocosLLC/datastore-to-gcs" }, "release_url": "https://pypi.org/project/datastore-to-gcs/0.3/", "requires_dist": [ "GoogleAppEngineCloudStorageClient", "enum", "python-dateutil", "toolz" ], "requires_python": "", "summary": "Transfer data from Google Cloud Datastore to Google Cloud Storage.", "version": "0.3" }, "last_serial": 2998776, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "32ba66740c79bf833f1892398a5655ee", "sha256": "4e47cb731c9499e1f3891b2ccf98a2743c1cf42f25703dc5b08c004eb6ca3018" }, "downloads": -1, "filename": "datastore-to-gcs-0.2.tar.gz", "has_sig": false, "md5_digest": "32ba66740c79bf833f1892398a5655ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6170, "upload_time": "2017-06-19T18:23:56", "url": "https://files.pythonhosted.org/packages/77/7d/b754aaec2240b5cf6b4284d19ae31078551b33cbd7ed5ab896b0d93db5fe/datastore-to-gcs-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "bbbcadb83c5f40bfd1d78e9a3b8f1df4", "sha256": "5779d670572d422cd0e4e89b55f99587dfe7da19cfda4dc724c82c9a4abefc77" }, "downloads": -1, "filename": "datastore_to_gcs-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "bbbcadb83c5f40bfd1d78e9a3b8f1df4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9066, "upload_time": "2017-07-04T09:51:22", "url": "https://files.pythonhosted.org/packages/ad/46/53d8675566cce2545c25b277db0523869689b4b47dcafa730a3b03bd04be/datastore_to_gcs-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1107be852ae4cf79431cb6d6989b3359", "sha256": "6d9335b5c8371e6cdfbb9d210f5bb4b8b2b790356e052cfebd2e0487e6b81811" }, "downloads": -1, "filename": "datastore-to-gcs-0.3.tar.gz", "has_sig": false, "md5_digest": "1107be852ae4cf79431cb6d6989b3359", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6407, "upload_time": "2017-07-04T09:51:24", "url": "https://files.pythonhosted.org/packages/df/41/e218bf5e5ae4da8a65c44c0eeb4eac97cddc8cd9d996f801ec2a87775178/datastore-to-gcs-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bbbcadb83c5f40bfd1d78e9a3b8f1df4", "sha256": "5779d670572d422cd0e4e89b55f99587dfe7da19cfda4dc724c82c9a4abefc77" }, "downloads": -1, "filename": "datastore_to_gcs-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "bbbcadb83c5f40bfd1d78e9a3b8f1df4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9066, "upload_time": "2017-07-04T09:51:22", "url": "https://files.pythonhosted.org/packages/ad/46/53d8675566cce2545c25b277db0523869689b4b47dcafa730a3b03bd04be/datastore_to_gcs-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1107be852ae4cf79431cb6d6989b3359", "sha256": "6d9335b5c8371e6cdfbb9d210f5bb4b8b2b790356e052cfebd2e0487e6b81811" }, "downloads": -1, "filename": "datastore-to-gcs-0.3.tar.gz", "has_sig": false, "md5_digest": "1107be852ae4cf79431cb6d6989b3359", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6407, "upload_time": "2017-07-04T09:51:24", "url": "https://files.pythonhosted.org/packages/df/41/e218bf5e5ae4da8a65c44c0eeb4eac97cddc8cd9d996f801ec2a87775178/datastore-to-gcs-0.3.tar.gz" } ] }