{ "info": { "author": "JJ Geewax", "author_email": "jj@geewax.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet" ], "description": "# Google Cloud Datastore\n\n## Incredibly quick demo\n\nYou need a few packages, so take a look at requirements.txt and `pip install` them.\n\n $ pip install -r requirements.txt\n\nThen you should be all set to run the demo...\n\n $ python demo/demo.py\n\n## Doing this on your own\n\n### Create a project\n\n- Visit https://cloud.google.com/console\n- Click the big red button that says \"Create Project\".\n- In the name box, pick something friendly.\n- In the ID box, pick something unique to you (ie, jgatsby-storage).\n\n### Enable the Cloud Datastore\n\n- Click on APIs & Auth, and scroll down to Google Cloud Datastore API.\n- Click the \"Off\" button on the right to turn it into an \"On\" :)\n\n### Enable a Service Account\n\n- Click on Credentials (under APIs & Auth).\n- Under the OAuth section (the first one) click the big red button that says \"Create New Client ID\".\n- Choose Service Account, and click the blue button \"Create Client ID\".\n- This will automatically download a private key, don't lose this.\n- Rename this key something shorter... like \"jgatsby-storage.key\".\n- Copy the long weird e-mail address (it's labeled \"E-mail address\" in the information for the service account you just created).\n\n### Add some demo data (manually)\n\n- Click on Cloud Datastore towards the bottom.\n- Click the big red button that says \"Create Entity\".\n- Leave Namespace alone (should be in the default one).\n- For Kind, type in \"Thing\".\n- Leave Key set to ID (this will automatically pick a numeric ID for you).\n- In the first textbox, type in \"name\" (this is like one of the columns in a regular database).\n- Leave it as a string, and indexed.\n- For the value, type in \"Computer\".\n- Click \"Create Entity\".\n\nWhat you just did there is add an entity that equates to a Python object you'd construct like... Thing(name='Computer').\n\nFeel free to add another Thing. Maybe a \"Beer\"? And a \"Desk\"?\n\n### Write some code\n\nYou can use `demo/demo.py` as a reference.\n\n import gclouddatastore\n\n CLIENT_EMAIL = ''\n KEY_PATH = './jgatsby-storage.key' # Make this the path to the key that auto-downloaded.\n\n connection = gclouddatastore.get_connection(\n 'jgatsby-storage', # Make this the project ID you picked before.\n CLIENT_EMAIL, KEY_PATH)\n\n # This will print out all the Thing's you created.\n print connection.query('Thing').fetch()\n\n### Yay, you're done\n\nGo build cool stuff :)\n\n## Hmm, that's not on the Google Cloud website...\n\nYou might notice that the other tutorials are a bit different.\nThis introduction is focused on you, on your home computer, with no interest\nat all in using Google Compute Engine.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jgeewax/gclouddatastore", "keywords": null, "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "gclouddatastore", "package_url": "https://pypi.org/project/gclouddatastore/", "platform": "Posix; MacOS X; Windows", "project_url": "https://pypi.org/project/gclouddatastore/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jgeewax/gclouddatastore" }, "release_url": "https://pypi.org/project/gclouddatastore/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "API Client library for Google Cloud Datastore", "version": "0.1.2" }, "last_serial": 982270, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "63aa6dc6ded7b079bafd7e65c515b9d3", "sha256": "977f188aa043a5e9271d16f95642f0293756ab8795d9e3a7bb8b68ddf293d374" }, "downloads": -1, "filename": "gclouddatastore-0.1.tar.gz", "has_sig": false, "md5_digest": "63aa6dc6ded7b079bafd7e65c515b9d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 538544, "upload_time": "2014-01-23T03:35:35", "url": "https://files.pythonhosted.org/packages/d1/cb/9ba9727294eb18e53371e10f1eecbba957e402b412a5f8b92a7d8ded8f9d/gclouddatastore-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "91ad79f99d3cd65166421ddabe130ee4", "sha256": "16e7d245fd0f5e21102ffc9dc8d40e80cb87483435784253ad7d12fd22010646" }, "downloads": -1, "filename": "gclouddatastore-0.1.1.tar.gz", "has_sig": false, "md5_digest": "91ad79f99d3cd65166421ddabe130ee4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25353, "upload_time": "2014-01-26T23:01:45", "url": "https://files.pythonhosted.org/packages/89/9d/c7bdc7e93423917409611f4c09044bd20cffc48a9cd3c700f772721ee865/gclouddatastore-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9a70589b6bf9383801cedc85babb7884", "sha256": "6f5f2537afeaa5e207ccad75297aaccf20e6890a7936886631d42ce11c15d7eb" }, "downloads": -1, "filename": "gclouddatastore-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9a70589b6bf9383801cedc85babb7884", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29155, "upload_time": "2014-01-27T02:45:48", "url": "https://files.pythonhosted.org/packages/9f/9d/9a8e14b5a059e8cff2d36c6f1ea80e18311f4d1431c6d671230631e4180b/gclouddatastore-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9a70589b6bf9383801cedc85babb7884", "sha256": "6f5f2537afeaa5e207ccad75297aaccf20e6890a7936886631d42ce11c15d7eb" }, "downloads": -1, "filename": "gclouddatastore-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9a70589b6bf9383801cedc85babb7884", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29155, "upload_time": "2014-01-27T02:45:48", "url": "https://files.pythonhosted.org/packages/9f/9d/9a8e14b5a059e8cff2d36c6f1ea80e18311f4d1431c6d671230631e4180b/gclouddatastore-0.1.2.tar.gz" } ] }