{"id":13499322,"url":"https://github.com/tryolabs/graphql-parser","last_synced_at":"2025-03-29T04:31:06.371Z","repository":{"id":34106374,"uuid":"37934489","full_name":"tryolabs/graphql-parser","owner":"tryolabs","description":"GraphQL parser for Python","archived":false,"fork":false,"pushed_at":"2015-06-23T19:02:08.000Z","size":111,"stargazers_count":48,"open_issues_count":0,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-31T17:39:25.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tryolabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-23T17:40:42.000Z","updated_at":"2022-02-17T00:26:16.000Z","dependencies_parsed_at":"2022-07-29T20:09:59.456Z","dependency_job_id":null,"html_url":"https://github.com/tryolabs/graphql-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fgraphql-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fgraphql-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fgraphql-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tryolabs%2Fgraphql-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tryolabs","download_url":"https://codeload.github.com/tryolabs/graphql-parser/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":[],"created_at":"2024-07-31T22:00:32.194Z","updated_at":"2025-03-29T04:31:06.120Z","avatar_url":"https://github.com/tryolabs.png","language":"Python","readme":"# graphql-parser\n\n[![Build Status](https://travis-ci.org/tryolabs/graphql-parser.svg?branch=master)](https://travis-ci.org/tryolabs/graphql-parser)\n\nThis is a Python parser for [React's][react] [GraphQL][graphql].\n\nLacking a specification, the parser was built to parse code along the lines of\nexamples and other implementations of GraphQL.\n\n# Usage\n\n```python\nfrom graphql_parser import parse\n\nQUERY = '''{\n  user(1) {\n    name,\n    email,\n    profile_pic.size(64) {\n      date_added\n    }\n  }\n}\n'''\n\nparse(QUERY)\n```\n\nProduces:\n\n```python\n{\n  'type': 'block',\n  'children': [\n    {\n      'type': 'call',\n      'chain': ['user'],\n      'arguments': ['1'],\n      'body': {\n        'type': 'block',\n        'children': [\n          'name',\n          'email',\n          {\n            'type': 'call',\n            'chain': ['profile_pic', 'size'],\n            'arguments': ['64'],\n            'body': {\n              'type': 'block',\n              'children': ['date_added']\n            },\n          }\n        ]\n      }\n    }\n  ]\n}\n```\n\n# License\n\nCopyright (c) 2015 [Tryolabs][tryo] SRL.\n\nReleased under the MIT license.\n\n[react]: http://facebook.github.io/react/\n[graphql]: https://facebook.github.io/react/blog/2015/05/01/graphql-introduction.html\n[tryo]: http://tryolabs.com/\n","funding_links":[],"categories":["Libraries","Implementations"],"sub_categories":["Python Libraries","Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryolabs%2Fgraphql-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftryolabs%2Fgraphql-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftryolabs%2Fgraphql-parser/lists"}