Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 573 Bytes

python.rst

File metadata and controls

25 lines (15 loc) · 573 Bytes

Python API

Ergonomica, being a Python utility, is easy to interface with Python---both as a utility used in Python code as well as a lg

Interfacing with Python

Interfacing in Python

Assuming you have installed Ergonomica through pip, in Python simply import it

from ergonomica import ergo

Then, the ergo() function in Python will execute any strings passed into it. For example,

>>> from ergonomica import ergo
>>> ergo('print "hi there folks!"')
'hi there folks!'