Skip to main content

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 file
  • LANGUAGE 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!

How to contribute

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

showcode_forge-0.2.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

showcode_forge-0.2-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page