Skip to content

painkillergodsewostyanow/python-sphere_engine-code_executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Wrapper for Sphere Engine Compiler API

This Python package provides a convenient wrapper for accessing the Sphere Engine API. Sphere Engine is a powerful cloud-based platform that offers a variety of programming assessment and execution tools. This wrapper simplifies the process of integrating Sphere Engine's functionality into your Python projects.

Example of use:

from code_executor import CodeExecutor

python_executor1 = CodeExecutor(
    '<token:str>',
    '<widget_id:str>',
    '<lang_id:int>(https://sphere-engine.com/supported-languages)'
)

source_code_example = "print(input(), input(), end='')"
input_data_example = "The best web pentest course is:\nhttps://punkration.ru/"

python_executor1.execute(source_code_example, input_data_example)

print(python_executor1.source_code)
print(python_executor1.output)
print(python_executor1.errors)
print(python_executor1.cmpinfo)
print(python_executor1.response)