{"id":19295038,"url":"https://github.com/blejdfist/pycodegen","last_synced_at":"2025-08-21T07:15:08.708Z","repository":{"id":57455792,"uuid":"169157515","full_name":"blejdfist/pycodegen","owner":"blejdfist","description":"Simple code generation tool written in Python","archived":false,"fork":false,"pushed_at":"2019-05-23T20:36:09.000Z","size":52,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T13:07:43.440Z","etag":null,"topics":["code-generation","code-generator","libclang","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/blejdfist.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2019-02-04T22:08:18.000Z","updated_at":"2021-07-22T02:54:57.000Z","dependencies_parsed_at":"2022-09-05T20:00:27.080Z","dependency_job_id":null,"html_url":"https://github.com/blejdfist/pycodegen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blejdfist/pycodegen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blejdfist%2Fpycodegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blejdfist%2Fpycodegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blejdfist%2Fpycodegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blejdfist%2Fpycodegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blejdfist","download_url":"https://codeload.github.com/blejdfist/pycodegen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blejdfist%2Fpycodegen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270796230,"owners_count":24647324,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["code-generation","code-generator","libclang","python"],"created_at":"2024-11-09T22:41:08.791Z","updated_at":"2025-08-21T07:15:08.681Z","avatar_url":"https://github.com/blejdfist.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PyCodegen  |Build Status| |PyPi Version| |License|\n==================================================\n\nPycodegen is a tool to help you generate code in your project using\npowerful `Jinja2 \u003chttp://jinja.pocoo.org/\u003e`__ templates.\n\nTo get started:\n\n.. code:: bash\n\n    # Install\n    python3 -m pip install pycodegen\n  \n    # Run cli  \n    pycodegen\n\n    # Run cli using module\n    python3 -m pycodegen.cli\n\n========  ================================================\nFrontend  Description\n========  ================================================\ncpp       Parses C/C++ using libclang\njson      Passes a JSON file directly to the driver\n========  ================================================\n\n\nHow it works\n------------\n\n#. The requested frontend reads the input file and generates an intermediate representation.\n#. The representation is passed to the driver\n#. Driver does any processing required of the representation.\n#. Driver selects the output filename and template to be used and render the output file.\n\n\nExample usage\n-------------\n\n.. code:: bash\n\n    # Generate the simple JSON example\n    pycodegen json examples/simple/input_file.json --driver examples/simple/driver.py --debug\n\n    # Get intermediate representation of a C++ file (to aid in driver development)\n    pycodegen cpp \u003cname-of-file.cpp\u003e --dump-json\n\n\n.. |Build Status| image:: https://img.shields.io/circleci/project/github/blejdfist/pycodegen/master.svg?style=flat\n   :target: https://circleci.com/gh/blejdfist/pycodegen\n\n.. |PyPi Version| image:: https://img.shields.io/pypi/v/pycodegen.svg?style=flat\n   :target: https://pypi.org/project/pycodegen/\n   \n.. |License| image:: https://img.shields.io/github/license/blejdfist/pycodegen.svg?style=flat","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblejdfist%2Fpycodegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblejdfist%2Fpycodegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblejdfist%2Fpycodegen/lists"}