Python Connector
Integrate and interact with data using the Python API.
Installation
The e6data Connector for Python provides an interface for writing Python applications that can connect to e6data and perform operations.
Install dependencies required for your environment using the command below:
# Amazon Linux / CentOS dependencies
yum install python3-devel gcc-c++ -y
# Ubuntu/Debian dependencies
apt install python3-dev g++ -y
# pip dependencies
pip install wheelTo install the Python package, use the command below:
pip install --no-cache-dir e6data-python-connectorPrerequisites
Ingress enabled in the cluster
Access Token generated in the e6data console.
The e6data-python-connector uses a C-based deserialization library for fast data processing. On Windows, this library works only when Visual C++ Build Tools are installed. If these tools are missing, users may encounter the following error during execution:
ImportError: cannot import name 'fastbinary' from 'thrift.protocol'How to Resolve
1. Install Visual C++ Build Tools
Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
During installation, select the workload:
✔ Desktop Development with C++
Complete the installation and launch the Build Tools once to ensure initialization.
2. Create and Activate a Virtual Environment
python -m venv <env_name>
<env_name>\Scripts\activate.bat3. Install the e6data Python Connector
pip install --no-cache-dir e6data-python-connector==2.3.11After completing these steps, Windows environments will work correctly without the fastbinary import error.
Last updated

