{"id":19400943,"url":"https://github.com/sahil-rajwar-2004/cpp.py","last_synced_at":"2025-04-24T06:33:02.168Z","repository":{"id":226813125,"uuid":"769676431","full_name":"0xhilSa/cpp.py","owner":"0xhilSa","description":"compile and run C++ files in python environment","archived":false,"fork":false,"pushed_at":"2024-03-12T18:11:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T07:39:23.947Z","etag":null,"topics":["cpp","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xhilSa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-03-09T18:36:59.000Z","updated_at":"2024-03-09T19:35:33.000Z","dependencies_parsed_at":"2024-12-15T15:19:39.451Z","dependency_job_id":"49559173-e8cd-4212-9015-2d50376f9353","html_url":"https://github.com/0xhilSa/cpp.py","commit_stats":null,"previous_names":["sahil-rajwar-2004/cpp.py","0xhilsa/cpp.py"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xhilSa%2Fcpp.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xhilSa%2Fcpp.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xhilSa%2Fcpp.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xhilSa%2Fcpp.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xhilSa","download_url":"https://codeload.github.com/0xhilSa/cpp.py/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250579033,"owners_count":21453404,"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":["cpp","python"],"created_at":"2024-11-10T11:16:21.867Z","updated_at":"2025-04-24T06:33:01.754Z","avatar_url":"https://github.com/0xhilSa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ***cpp.py***\n\n## compile and run C++ files in python environment :) \n\n## Essentials\n#### 1. `python` \u003e= 3.0\n#### 2. `C++` compiler should installed on your system\n\n## Installation\n\n```bash\ngit clone \"https://github.com/Sahil-Rajwar-2004/cpp.py.git\"\ncd cpp.py\npython setup.py sdist bdist_wheel\ncd dist\npip install \u003cwheel-file\u003e\n```\n\n### Implemetation\n\n```python3\nfrom cpp import CPP\n\nsrc_code = \"\"\"\n#include \u003ciostream\u003e\nusing namespace std;\n\nint main(){\n    cout\u003c\u003c\"Hello World\"\u003c\u003cendl;\n    return 0;\n}\n\"\"\"\n\nsrc = CPP(src_code)\nsrc.compile(\"hello_world.exe\")\nsrc.run(\"hello_world.exe\")\n```\n\n### Output \n\n```bash\ng++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0\nCopyright (C) 2021 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.  There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\ncompilation successful.\n\nHello World\n```\n\n## License\n\n### MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahil-rajwar-2004%2Fcpp.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsahil-rajwar-2004%2Fcpp.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsahil-rajwar-2004%2Fcpp.py/lists"}