{"id":33196624,"url":"https://github.com/pyos/dg","last_synced_at":"2025-11-21T02:01:13.091Z","repository":{"id":14677420,"uuid":"17396520","full_name":"pyos/dg","owner":"pyos","description":"A programming language for the CPython VM.","archived":false,"fork":false,"pushed_at":"2020-06-20T12:21:52.000Z","size":5727,"stargazers_count":576,"open_issues_count":16,"forks_count":20,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-07-22T01:33:34.967Z","etag":null,"topics":["language","programming-language","python"],"latest_commit_sha":null,"homepage":"http://pyos.github.io/dg/","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/pyos.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}},"created_at":"2014-03-04T09:19:37.000Z","updated_at":"2024-05-21T13:49:54.000Z","dependencies_parsed_at":"2022-07-10T22:48:38.410Z","dependency_job_id":null,"html_url":"https://github.com/pyos/dg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pyos/dg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyos%2Fdg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyos%2Fdg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyos%2Fdg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyos%2Fdg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyos","download_url":"https://codeload.github.com/pyos/dg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyos%2Fdg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285543732,"owners_count":27189594,"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-11-21T02:00:06.175Z","response_time":61,"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":["language","programming-language","python"],"created_at":"2025-11-16T08:00:27.637Z","updated_at":"2025-11-21T02:01:13.079Z","avatar_url":"https://github.com/pyos.png","language":"Python","readme":"## dg\n\nA (technically) simple language that compiles to CPython bytecode. **DISCLAIMER**: this project is just for fun, please don't use it for anything serious, thanks.\n\n### Requirements\n\nCPython 3.4 or any other Python VM with equivalent bytecode (like PyPy3).\n\n### Installation\n\n```sh\npip3 install git+https://github.com/pyos/dg\n```\n\n### Usage\n\n```sh\npython -m dg\npython -m dg file.dg argument1 argument2\npython -m dg \u003c\u003c\u003c 'print \"Hello, World!\"'\necho 'print \"Hello, World!\"' \u003e dg_module.dg; python -c 'import dg, dg_module'\n```\n\n### More complex stuff\n\n[http://pyos.github.io/dg/](http://pyos.github.io/dg/)\n\n### Text editor support\n\n * [Sublime Text and TextMate bundle](https://github.com/pyos/dg-textmate)\n * [GEdit/GtkSourceView syntax definition](https://github.com/pyos/dg-gedit)\n * [vim plugin](https://github.com/rubik/vim-dg) (courtesy of [Michele Lacchia](https://github.com/rubik))\n * [Atom syntax](https://atom.io/packages/language-dg) (by [Ale](https://github.com/iamale))\n\n### To-do\n\n * String interpolation: `i\"{expression #flags}\"` == `\"{:flags}\".format expression`\n * Tools for easy AST manipulation.\n * Compiler extension API.\n * Some of the more obscure Python features: exception causes, function annotations.\n","funding_links":[],"categories":["Awesome Functional Python"],"sub_categories":["Languages"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyos%2Fdg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyos%2Fdg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyos%2Fdg/lists"}