Download runners/__init__.py from dotlabs/smolscript: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/datasets/dotlabs/smolscript/resolve/main/runners/__init__.py
- Command line
-
hf download hf://datasets/dotlabs/smolscript/runners/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/dotlabs/smolscript/resolve/main/runners/__init__.py
286 Bytes
| from importlib import import_module | |
| LANGUAGES=('python','javascript','html','css','cpp','c','lua','csharp','rust') | |
| def get_runner(language): | |
| if language not in LANGUAGES:raise ValueError('Unknown language '+language) | |
| return import_module('runners.'+language+'_runner').Runner() | |