SkillAgentSearch skills...

Dg

A programming language for the CPython VM.

Install / Use

/learn @pyos/Dg
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

dg

A (technically) simple language that compiles to CPython bytecode. DISCLAIMER: this project is just for fun, please don't use it for anything serious, thanks.

Requirements

CPython 3.4 or any other Python VM with equivalent bytecode (like PyPy3).

Installation

pip3 install git+https://github.com/pyos/dg

Usage

python -m dg
python -m dg file.dg argument1 argument2
python -m dg <<< 'print "Hello, World!"'
echo 'print "Hello, World!"' > dg_module.dg; python -c 'import dg, dg_module'

More complex stuff

http://pyos.github.io/dg/

Text editor support

To-do

  • String interpolation: i"{expression #flags}" == "{:flags}".format expression
  • Tools for easy AST manipulation.
  • Compiler extension API.
  • Some of the more obscure Python features: exception causes, function annotations.
View on GitHub
GitHub Stars579
CategoryDevelopment
Updated2d ago
Forks21

Languages

Python

Security Score

100/100

Audited on Apr 1, 2026

No findings