{ "info": { "author": "Danny Hermes", "author_email": "daniel.j.hermes@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "endpoints-proto-datastore\n-------------------------\n\n|pypi|\n\nThis library is intended to be used with the Python version of Google\nCloud Endpoints. If you'd like to learn more about Google Cloud\nEndpoints, please visit our `documentation`_. To run each of these samples,\nyou should include the ``endpoints_proto_datastore`` `folder`_ included with\nthis project.\n\nBy extending the functionality provided by ``ndb.Model`` class and the\n``endpoints`` library, this library allows you to directly interact with\nmodel entities in your API methods rather than ProtoRPC requests. For\nexample, instead of:\n\n.. code:: python\n\n @endpoints.method(MyModelMessage, MyModelMessage,\n path='mymodel', http_method='POST',\n name='mymodel.insert')\n def InsertModel(self, request):\n my_model = MyModel(attr1=request.attr1, attr2=request.attr2, ...)\n transformed_model = DoSomething(my_model)\n return MyModelMessage(attr1=transformed_model.attr1,\n attr2=transformed_model.attr2, ...)\n\nwe can directly use the entity in the request:\n\n.. code:: python\n\n @MyModel.method(path='mymodel', http_method='POST',\n name='mymodel.insert')\n def InsertModel(self, my_model):\n return DoSomething(my_model)\n\nwithout ever even having to define a ProtoRPC message class!\n\nGet started with the `examples`_.\n\nProject Setup, Installation, and Configuration\n----------------------------------------------\n\nTo use this library in your App Engine application you can\n\n- Download the `endpoints_proto_datastore`_ library and unzip it in the root\n of your App Engine application. For example, on a Unix based machine:\n\n .. code:: bash\n\n (${GAE_PROJECT_ROOT})$ wget \"https://github.com/GoogleCloudPlatform/\"`\n `\"endpoints-proto-datastore/blob/\"`\n `\"zipfile-branch/\"`\n `\"endpoints_proto_datastore.zip?raw=true\" \\\n -O endpoints_proto_datastore.zip\n (${GAE_PROJECT_ROOT})$ unzip endpoints_proto_datastore.zip\n (${GAE_PROJECT_ROOT})$ rm endpoints_proto_datastore.zip\n\n- Alternatively you can stay up to date by adding this repository to\n your project as a ``git`` `submodule`_:\n\n .. code:: bash\n\n (${YOUR_GIT_ROOT})$ git submodule add https://github.com/GoogleCloudPlatform/endpoints-proto-datastore\n\n This will create the entire project in the ``endpoints-proto-datastore``\n folder in your project. Since `Python packages`_ require ``__init__.py``\n files for imports to work and the root of this project is not meant to be a\n Python package, you'll need to add ``endpoints-proto-datastore`` to your\n Python import path.\n\n The simplest way to do this is to add the following lines to your\n `appengine_config.py`_ file (or create the file if it doesn't yet exist):\n\n .. code:: python\n\n import os\n import sys\n\n ENDPOINTS_PROJECT_DIR = os.path.join(os.path.dirname(__file__),\n 'endpoints-proto-datastore')\n sys.path.append(ENDPOINTS_PROJECT_DIR)\n\n **Note**: If the App Engine project stored in your ``git`` repository\n is not at the root, you may need to add a symlink to the\n ``endpoints-proto-datastore/endpoints_proto_datastore`` directory and\n put it at the root of your App Engine project.\n\nTo install App Engine visit the `Development Environment`_ page.\n\nFeatures, Questions and Support\n-------------------------------\n\n- To request a feature, report a bug, or request a new sample or piece\n of documentation; please `file an issue`_.\n- For troubleshooting issues or asking general questions, please\n `ask a question`_ on StackOverflow using the ``endpoints-proto-datastore``\n tag.\n\nTesting\n-------\n\nAll tests are wrapped into the `endpoints_proto_datastore_test_runner.py`_\nmodule. To run the tests, simply execute\n\n.. code:: bash\n\n $ python ${PATH_TO_TEST_RUNNER}/endpoints_proto_datastore_test_runner.py\n\nThis test runner assumes that you have App Engine SDK tools on your path\nand will use the location of the ``dev_appserver.py`` script to\ndetermine the location of the SDK. For example, on a Unix based system\nit would be equivalent to:\n\n.. code:: bash\n\n $ dirname `readlink \\`which dev_appserver.py\\``\n\nContributing changes\n--------------------\n\n- See `CONTRIB.md`_\n- To create docs for a contributed example, use `pycco`_. For example:\n\n .. code:: bash\n\n $ pycco example_name/main.py\n\nLicensing\n---------\n\n- See `LICENSE`_\n- **Note**: The test runner includes some code from the Twisted\n project, which is `listed under terms other than Apache 2.0`_.\n\n.. _documentation: https://developers.google.com/appengine/docs/python/endpoints/\n.. _folder: https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/tree/master/endpoints_proto_datastore\n.. _examples: http://endpoints-proto-datastore.appspot.com/\n.. _endpoints_proto_datastore: https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/blob/zipfile-branch/endpoints_proto_datastore.zip?raw=true\n.. _submodule: http://git-scm.com/book/en/Git-Tools-Submodules\n.. _Python packages: http://docs.python.org/2/tutorial/modules.html#importing-from-a-package\n.. _appengine_config.py: https://developers.google.com/appengine/docs/python/tools/appengineconfig\n.. _Development Environment: https://developers.google.com/appengine/docs/python/gettingstartedpython27/devenvironment\n.. _file an issue: https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/issues/new\n.. _ask a question: http://stackoverflow.com/questions/ask?tags=endpoints-proto-datastore\n.. _endpoints_proto_datastore_test_runner.py: https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/blob/master/endpoints_proto_datastore/endpoints_proto_datastore_test_runner.py\n.. _CONTRIB.md: https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/blob/master/CONTRIB.md\n.. _pycco: http://fitzgen.github.io/pycco/\n.. _LICENSE: https://github.com/GoogleCloudPlatform/endpoints-proto-datastore/blob/master/LICENSE\n.. _listed under terms other than Apache 2.0: http://twistedmatrix.com/trac/browser/trunk/LICENSE\n\n.. |pypi| image:: https://img.shields.io/pypi/v/endpoints-proto-datastore.svg\n :target: https://pypi.python.org/pypi/endpoints-proto-datastore\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/GoogleCloudPlatform/endpoints-proto-datastore", "keywords": "", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "endpoints-proto-datastore", "package_url": "https://pypi.org/project/endpoints-proto-datastore/", "platform": "", "project_url": "https://pypi.org/project/endpoints-proto-datastore/", "project_urls": { "Homepage": "https://github.com/GoogleCloudPlatform/endpoints-proto-datastore" }, "release_url": "https://pypi.org/project/endpoints-proto-datastore/0.10.0/", "requires_dist": null, "requires_python": "", "summary": "Google Cloud Endpoints Proto Datastore Library", "version": "0.10.0" }, "last_serial": 2434360, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "e1af6294ea7e5ed30eb59e7b14f16f19", "sha256": "e72358a41d8cec1f9157e2f8137bf9e90c539608cdd6255cb79c2891a23fbdfa" }, "downloads": -1, "filename": "endpoints_proto_datastore-0.10.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e1af6294ea7e5ed30eb59e7b14f16f19", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 37401, "upload_time": "2016-11-01T04:41:37", "url": "https://files.pythonhosted.org/packages/9a/8e/3525275c8a04f41a9f858b478e6b0e70c16c25cf444868298ff33979e851/endpoints_proto_datastore-0.10.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7649188039f32a3ba4e42111494ccf52", "sha256": "37a6d40f45ec8e4377a442714d7932643621a032922f67e697a1c036adeffe07" }, "downloads": -1, "filename": "endpoints-proto-datastore-0.10.0.tar.gz", "has_sig": false, "md5_digest": "7649188039f32a3ba4e42111494ccf52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30543, "upload_time": "2016-11-01T04:41:41", "url": "https://files.pythonhosted.org/packages/a6/87/8d990329f0134cc7d99d88a4398ec5c8beea3d32adc1df804272ba48a4a7/endpoints-proto-datastore-0.10.0.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "63532d03094425265c15b417eab63b20", "sha256": "412ea72265af76e5738d20c4cd16baf8bee1c913875528386fb33895d64f3f73" }, "downloads": -1, "filename": "endpoints-proto-datastore-0.9.0.tar.gz", "has_sig": false, "md5_digest": "63532d03094425265c15b417eab63b20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 29494, "upload_time": "2015-08-17T15:43:50", "url": "https://files.pythonhosted.org/packages/be/7d/625baedfebdaa68d57f4a148c5aebe7ca312bcd6043d3422cd173a269d22/endpoints-proto-datastore-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e1af6294ea7e5ed30eb59e7b14f16f19", "sha256": "e72358a41d8cec1f9157e2f8137bf9e90c539608cdd6255cb79c2891a23fbdfa" }, "downloads": -1, "filename": "endpoints_proto_datastore-0.10.0-py2-none-any.whl", "has_sig": false, "md5_digest": "e1af6294ea7e5ed30eb59e7b14f16f19", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 37401, "upload_time": "2016-11-01T04:41:37", "url": "https://files.pythonhosted.org/packages/9a/8e/3525275c8a04f41a9f858b478e6b0e70c16c25cf444868298ff33979e851/endpoints_proto_datastore-0.10.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7649188039f32a3ba4e42111494ccf52", "sha256": "37a6d40f45ec8e4377a442714d7932643621a032922f67e697a1c036adeffe07" }, "downloads": -1, "filename": "endpoints-proto-datastore-0.10.0.tar.gz", "has_sig": false, "md5_digest": "7649188039f32a3ba4e42111494ccf52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30543, "upload_time": "2016-11-01T04:41:41", "url": "https://files.pythonhosted.org/packages/a6/87/8d990329f0134cc7d99d88a4398ec5c8beea3d32adc1df804272ba48a4a7/endpoints-proto-datastore-0.10.0.tar.gz" } ] }