Skip to content

blockspring/blockspring.py

Repository files navigation

blockspring.py

Python module to assist in creating blocks on Blockspring.

Installation

pip install blockspring

Example Usage

Save the following script to an example.py file:

import blockspring

def myFunction(request, response):
    mySum = request.params["num1"] + request.params["num2"]

    response.addOutput('sum', mySum)

    response.end()

blockspring.define(myFunction)

Then in your command line write:

python example.py --num1=20 --num2=50

or

echo '{"num1":20, "num2": 50}' | python example.py

License

MIT

Contact

Email us: founders@blockspring.com

Thank You to Our Contributors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages