Tools for generating code from custom ShowCode Forge questions
Project description
Showcode Forge
Tools for generating code for ShowCode Forge. ShowCode Forge is a community dedicated to creating challenges on ShowCode.
Install
This tool requires Python 3.7+. You can download Python from here
Install the latest release of the package from PyPi.
pip install showcode_forge
Extract
Extracting is turning a challenge .json
(provided by the community) into a set of files, including question.html
and generated source and test files for your selected language.
How to run:
showcode_forge extract [--language LANGUAGE] [--framework FRAMEWORK] file
file
is a path to the.json
fileLANGUAGE
is the selected programming language. Currently supported:py
FRAMEWORK
is the selected unit testing framework. Currently supported:pytest
Example usage:
showcode_forge extract --language py --framework pytest challenge.json
Compile
Compiling is turning a source, test and question files into a .json
file.
This is currently work in progress.
Contribute
Contributions and support for more languages are welcome!
Running locally
Run this package locally to test it, in the root of the project:
python -m showcode_forge [arguments]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for showcode_forge-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b55f1bc43bc82c51d92d25f0b062ca3f2fc3c4e135d555db22095471b1c2398 |
|
MD5 | 3d47f122f9230a42c5a7e5c0393f6952 |
|
BLAKE2b-256 | 7750c1c59d247c3635587463bfc4251d092ff8566f5d054c709c13e51de67eeb |