Quix

Quix

  • Docs
  • Blog
  • GitHub

›Supported datasources

Introduction

  • About
  • Architecture

Getting Started

  • Installation

Supported datasources

  • Athena
  • BigQuery
  • ClickHouse
  • Jdbc
  • MariaDB
  • MySQL
  • Oracle
  • PostgreSQL
  • Presto
  • Python
  • Redshift

Python

Features

  • 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

  1. 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.

  2. 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.

Setup

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

VariablesMeaningExample
MODULESlist of registered notesfoo,boo
MODULES_FOO_ENGINEnote typepython
MODULES_FOO_SYNTAXnote syntaxpython
MODULES_FOO_PIP_INDEXcustom pip index urlhttps://your-own-pypi-mirror.org/simple
MODULES_FOO_PIP_EXTRA_INDEXextra pip index urlhttps://pypi.python.org/simple
MODULES_FOO_PIP_PACKAGESlist of mandatory pip packagesujson,pyhive
MODULES_FOO_SCRIPTS_DIRdir that will be used to store each user temp files/tmp/quix-python
MODULES_FOO_ADDITIONAL_CODE_FILEadditional code that would be prepended to each python note/tmp/quix-python/init.py

Example :

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

Troubleshooting

← PrestoRedshift →
  • Features
  • Ideas for using python in Quix
  • Setup
    • 1. Pick a new name for your python note and update .env
  • Troubleshooting
Quix
Docs
Quick StartInstallation
Social
BlogQuix
Contact Us
By Email
© 2023 Wix.com, Inc