Python package for Envio's HyperSync client written in Rust
Recommeded to use a venv to install the package.
python -m venv .venvThen activate the venv before use.
source .venv/bin/activateThen install the packages with pip.
pip install -e .The examples/ folder contains a set of examples you can explore. Before running any example, install the required dependencies with:
pip install -e .[examples]Next, add your HyperSync token to the .env file. You can then run an example using:
python examples/<example>.pyIf you encounter build errors when installing hypersync, ensure Rust and system dependencies are installed.
Ubuntu/Debian:
# Install all required dependencies
sudo apt-get update
sudo apt-get install build-essential capnproto libcapnp-dev
# Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/envmacOS:
# Install Xcode command line tools
xcode-select --install
# Install Cap'n Proto via Homebrew
brew install capnp
# Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/envThen install hypersync:
pip install --no-cache-dir --use-pep517 "hypersync==0.8.5"Common errors:
- "cargo not found": Install Rust toolchain
- "capnp: No such file or directory": Install Cap'n Proto (
apt-get install capnproto libcapnp-devon Ubuntu,brew install capnpon macOS) - Build fails on Linux: Install build essentials:
apt-get install build-essential