{"id":13499351,"url":"https://github.com/graphql-python/graphene-gae","last_synced_at":"2025-03-29T04:31:08.354Z","repository":{"id":53535916,"uuid":"58579572","full_name":"graphql-python/graphene-gae","owner":"graphql-python","description":"GraphQL Support for Google AppEngine [DEPRECATED - Looking for maintainers]","archived":true,"fork":false,"pushed_at":"2022-09-06T11:33:23.000Z","size":183,"stargazers_count":117,"open_issues_count":11,"forks_count":14,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-17T11:01:19.692Z","etag":null,"topics":["google-appengine","graphene","graphql","python"],"latest_commit_sha":null,"homepage":"http://docs.graphene-python.org/projects/gae/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graphql-python.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-11T20:41:37.000Z","updated_at":"2024-06-27T20:19:49.000Z","dependencies_parsed_at":"2022-09-01T16:52:17.307Z","dependency_job_id":null,"html_url":"https://github.com/graphql-python/graphene-gae","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-python%2Fgraphene-gae","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-python%2Fgraphene-gae/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-python%2Fgraphene-gae/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-python%2Fgraphene-gae/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-python","download_url":"https://codeload.github.com/graphql-python/graphene-gae/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140565,"owners_count":20729797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-appengine","graphene","graphql","python"],"created_at":"2024-07-31T22:00:32.409Z","updated_at":"2025-03-29T04:31:08.050Z","avatar_url":"https://github.com/graphql-python.png","language":"Python","readme":"# Graphene GAE (deprecated!)\n\n\u003e :warning: This repository is deprecated due to lack of maintainers.\nIf you're interested in taking over let us know via [the Graphene\nSlack](https://join.slack.com/t/graphenetools/shared_invite/enQtOTE2MDQ1NTg4MDM1LTA4Nzk0MGU0NGEwNzUxZGNjNDQ4ZjAwNDJjMjY0OGE1ZDgxZTg4YjM2ZTc4MjE2ZTAzZjE2ZThhZTQzZTkyMmM)\n\nA Google AppEngine integration library for\n[Graphene](http://graphene-python.org)\n\n-   Free software: BSD license\n-   Documentation: \u003chttps://graphene_gae.readthedocs.org\u003e.\n\n## Upgrade Notes\n\nIf you're upgrading from an older version (pre 2.0 version) please check\nout the [Graphene Upgrade\nGuide](https://github.com/graphql-python/graphene/blob/master/UPGRADE-v2.0.md).\n\n## Installation\n\nTo install Graphene-GAE on your AppEngine project, go to your project\nfolder and runthis command in your shell:\n\n``` bash\npip install graphene-gae -t ./libs\n```\n\nThis will install the library and its dependencies to the \u003cspan\nclass=\"title-ref\"\u003elibs\u003c/span\u003e folder under your projects root - so the\ndependencies get uploaded withyour GAE project when you publish your\napp.\n\nMake sure the \u003cspan class=\"title-ref\"\u003elibs\u003c/span\u003e folder is in your\npython path by adding the following to your \\`appengine_config.py\\`:\n\n``` python\nimport sys\n\nfor path in ['libs']:\n    if path not in sys.path:\n        sys.path[0:0] = [path]\n```\n\n## Examples\n\nHere's a simple GAE model:\n\n``` python\nclass Article(ndb.Model):\n    headline = ndb.StringProperty()\n    summary = ndb.TextProperty()\n    text = ndb.TextProperty()\n\n    author_key = ndb.KeyProperty(kind='Author')\n\n    created_at = ndb.DateTimeProperty(auto_now_add=True)\n    updated_at = ndb.DateTimeProperty(auto_now=True)\n```\n\nTo create a GraphQL schema for it you simply have to write the\nfollowing:\n\n``` python\nimport graphene\nfrom graphene_gae import NdbObjectType\n\nclass ArticleType(NdbObjectType):\n    class Meta:\n        model = Article\n\nclass QueryRoot(graphene.ObjectType):\n    articles = graphene.List(ArticleType)\n\n    @graphene.resolve_only_args\n    def resolve_articles(self):\n        return Article.query()\n\nschema = graphene.Schema(query=QueryRoot)\n```\n\nThen you can simply query the schema:\n\n``` python\nquery = '''\n    query GetArticles {\n      articles {\n        headline,\n        summary,\n        created_at\n      }\n    }\n'''\nresult = schema.execute(query)\n```\n\nTo learn more check out the following [examples](examples/):\n\n-   [Starwars](examples/starwars)\n\n## Contributing\n\nAfter cloning this repo, ensure dependencies are installed by running:\n\n``` sh\nmake deps\nmake install\n```\n\nMake sure tests and lint are running:\n\n``` sh\nmake test\nmake lint\n```\n","funding_links":[],"categories":["Libraries","Python","Implementations"],"sub_categories":["Python Libraries","Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-python%2Fgraphene-gae","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-python%2Fgraphene-gae","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-python%2Fgraphene-gae/lists"}