- Execute lightweight Python scripts straight from Quix
- Manage pip packages on user-level
- Render and visualize results in Quix
Ideas for using python in Quix
Python notes can be used to orchestrate more complex processes that are hard to achieve in simple sql note, so it's a perfect tool for simple prototyping and ETLS.
You can query much more data sources in addition to out-of-the-box Quix notes. For example, PyMongo can be used to query MongoDB, hbase-python for HBase, boto3 for s3, python-firebase for firebase and many more.
1. Pick a new name for your python note and update .env
Add the following properties to the .env file to configure your new python note
|list of registered notes|
|custom pip index url|
|extra pip index url|
|list of mandatory pip packages|
|dir that will be used to store each user temp files|
|additional code that would be prepended to each python note|
MODULES=foo MODULES_FOO_ENGINE=python MODULES_FOO_SYNTAX=python MODULES_FOO_PIP_INDEX=https://pypi.your-domain.com/simple MODULES_FOO_PIP_EXTRA_INDEX=https://pypi.python.org/simple MODULES_FOO_PIP_PACKAGES=ujson,requests MODULES_FOO_SCRIPTS_DIR=/tmp/quix-python MODULES_FOO_ADDITIONAL_CODE_FILE=/tmp/quix-python/init.py