Skip to main content

Blockspring api wrapper

Project description

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

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

blockspring-0.1.10.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

blockspring-0.1.10-py2.py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 2 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