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
Thank You to Our Contributors
Sang Han (jjangsangy)
Project details
Release history Release notifications | RSS feed
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.11.tar.gz
(4.4 kB
view hashes)
Built Distributions
Close
Hashes for blockspring-0.1.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f3b8acd707ef1fd0234c2a4d74ee0ef5c54eb0778d7e16273dbfd433a546cc8 |
|
MD5 | 81bb2408f2c1244820585f160637f1e0 |
|
BLAKE2b-256 | 9ef9221929bfdace45ddb723a223453dabfbab144082165112bf6bcbb7d828b8 |
Close
Hashes for blockspring-0.1.11-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e347b3bc035d9062e086cd02a383097bbc75144d5c12b74cad5813e862cb281a |
|
MD5 | 220f66d9e31e6c2df37a2c2d5b408f08 |
|
BLAKE2b-256 | 9add56397014fc2bdf80f66a61505bd52fcb950439dd2e50d66471d510998990 |