{"id":19079298,"url":"https://github.com/covesa/graphql_schema2cpp_codegen","last_synced_at":"2026-01-30T14:18:24.911Z","repository":{"id":105098988,"uuid":"450573400","full_name":"COVESA/graphql_schema2cpp_codegen","owner":"COVESA","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-25T16:32:10.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T16:49:19.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/COVESA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-21T17:03:42.000Z","updated_at":"2023-02-04T20:19:12.000Z","dependencies_parsed_at":"2024-01-08T03:01:32.469Z","dependency_job_id":null,"html_url":"https://github.com/COVESA/graphql_schema2cpp_codegen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/COVESA/graphql_schema2cpp_codegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/COVESA%2Fgraphql_schema2cpp_codegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/COVESA%2Fgraphql_schema2cpp_codegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/COVESA%2Fgraphql_schema2cpp_codegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/COVESA%2Fgraphql_schema2cpp_codegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/COVESA","download_url":"https://codeload.github.com/COVESA/graphql_schema2cpp_codegen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/COVESA%2Fgraphql_schema2cpp_codegen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260063635,"owners_count":22953566,"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-11-09T02:14:12.643Z","updated_at":"2026-01-30T14:18:24.875Z","avatar_url":"https://github.com/COVESA.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **GraphQL Schema To C++ Code Generator**\n\nGenerate resolver code for VSS GraphQL Schema and deploy map.\n\n## **Getting Started**\n\nFor this project you will need to have:\n- Python 3.8.5 or later\n- Pip\n- Pipenv\n\n\n### **Python Installation On Linux (or mac)**\n\nIf you don't have Python installed already I suggest you to use\n[pyenv](https://github.com/pyenv/pyenv#installation) to install Python by using\nthis following command:\n\n```bash\npyenv install \u003cdesired py version\u003e\n```\n\nThen in this repo's folder there should be a `.python-version` file that describes\nthe version of python to be used, in our repo there is this file with the version 3.8.5\nwritten. If you want to create this file by yourself and use a specific version you can run:\n```bash\npyenv local \u003cdesired py version\u003e\n```\n\n### **Pip Installation on Linux**\n\nMake sure you have pip installed too. To check you can run\n\n```bash\npython3 -m pip -V\n```\n\nand see the version of your pip. Make sure your pip is updated with\n\n```bash\npython3 -m pip install --upgrade pip\n```\n\nIf you don't have you can install with\n```bash\ncurl https://bootstrap.pypa.io/get-pip.py -o get-pip.py\npython3 get-pip.py --force-reinstall\n```\n\n### **Pipenv Installation on Linux**\n\nTo install Pipenv just run\n```bash\npython3 -m pip install --user pipenv\n```\nAnd pipenv will be installed as a python package under the `--user` flag and you\nwill be able to run `python3 -m pipenv --help`.\n\nIt is a good practice to set on your `.bashrc` (or other, see note 2), the\nvariable which configures `PIPENV` to always create the virtual environment\ninside a `.env` folder the project.\n\n```bash\necho \"export PIPENV_VENV_IN_PROJECT=1\" \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n```\n\n\u003e **Note 1:**\n\u003e When you install pipenv using pip with `--user` flag, you are installing\n\u003e pipenv under a folder `.local` under your home directory, so if your system\n\u003e does not recognize pipenv as a command, it's maybe because your `$PATH`\n\u003e variable does not see this `.local` folder. One alternative is to add this\n\u003e line to your `.bashrc` (or similar please see note 2) file as follows:\n\u003e ```bash\n\u003e echo \"export PATH=$PATH:$HOME/.local/bin\" \u003e\u003e ~/.bashrc\n\u003e source ~/.bashrc\n\u003e ```\n\u003e and you will be able to run pipenv directly. If you prefer you can always\n\u003e just use:\n\u003e ```bash\n\u003e python3 -m pipenv\n\u003e ```\n\u003e when you want to just run pipenv\n\n\u003e **Note 2:**\n\u003e Every time `.bashrc` is referred here in this file, we are talking about the\n\u003e file that runs when your terminal is open, this file may change depending on\n\u003e the system and what shell you are using, this may be `~/.bash_profile` or\n\u003e `./zsh`.\n\n## **Installation of GraphQL Schema To C++ Code Generator**\n\nTo install the project and dependencies you can run the following command:\n\n```bash\npipenv sync\n```\n\nThis command will install this package and its dependencies under your pipenv\nisolated environment (`.env` folder if you followed Note 1). Then you can run\ncommands of this environment with `pipenv run \u003ccommand in environment\u003e`.\n\n## **Execution of GraphQL Schema To C++ Code Generator**\n\nTo run the program please `cd` to root path of this project and run:\n\n```bash\npipenv run graphql_schema2cpp_codegen --help\n```\n\nand\n\n```bash\npipenv run vssdeploy2json --help\n```\n\n## **Contribution to the Development of GraphQL Schema To C++ Code Generator**\n\nTo install dev packages one may run:\n\n```bash\npipenv sync -d\n```\n\n### **Linting**\n\nOne may format with autopep8 with command-line:\n\n```bash\nautopep8 --in-place --aggressive --aggressive file.py\n```\n\nAnd to check linting you can run:\n\n```bash\npipenv run flake8 --config setup.cfg file.py\n```\n\n### **Check Typing**\n\nTo use mypy you can run:\n\n```bash\npipenv run mypy --config-file ./setup.cfg file.py\n```\n\n### **Tests**\n\nTo run nosetests you can run:\n\n```bash\npipenv run nosetests --with-doctest file.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcovesa%2Fgraphql_schema2cpp_codegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcovesa%2Fgraphql_schema2cpp_codegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcovesa%2Fgraphql_schema2cpp_codegen/lists"}