Python library for using Sphere Engine API
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
Examples
build/lib
client-commons @ 810a9da
sphere_engine
test
.buildpath
.gitignore
.gitmodules
.pypirc.dist
.travis.yml
README.md
README.pypi.md
example.py
requirements.txt
setup.cfg
setup.py
test.sh

README.md

Requirements.

Python 2.7, 3.4 or 3.5 Build Status

Sphere Engine SDK

python setup.py install

Or you can install from Github via pip:

pip install git+https://github.com/sphere-engine/python-client.git

Or you can install from PyPI:

pip install sphere-engine

To use the bindings, import the package:

import sphere_engine

Unit tests

./test.sh

Examples

Usage:

from sphere_engine import CompilersClientV4
client = CompilersClientV4('<token>', '<endpoint>')
r = client.submissions.create('<source_code>', compilerId, '<input>')
print client.submissions.get(r['id'])

(...)

You will find many examples in the Examples folder.

Full list of compilers

A full list of programming languages is available at https://developer.sphere-engine.com/other/languages.