Skip to content

mojo-data/arrow.mojo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0a08823 Â· Aug 4, 2024

History

36 Commits
Aug 4, 2024
Aug 4, 2024
Aug 4, 2024
Jun 16, 2024
Jun 16, 2024
Jun 10, 2024
Sep 7, 2023
Jun 16, 2024
Jun 16, 2024
Jun 16, 2024
Jun 16, 2024

Repository files navigation

arrow.mojo

Apache Arrow in Mojo

This repo is very much a work in progress. The goal is to provide a way to use Apache Arrow in Mojo. This is a very early version and is not yet ready for use.

Dev Setup

If you have all the prerequisites, you should be able to just run

make setup

Prerequisites

  • Mojo
  • Python 3.11 (recommended via pyenv, but not required)
  • uv for python package management. Needed for make setup to work but optional. You can also use pip install -r requirements.txt instead.

If you would like to manually create your python virtual env, use this command

python3 -m venv .venv

The makefile contains some helpful commands:

  • make setup - Install python dependencies & setup .venv
  • make test - Run tests
  • make fmt - Run formatter
  • make build - Build the package
  • make clean - Clean up build artifacts

However, for make commands to work MODULAR_HOME and PATH must be configured in ~/.zprofile or ~/.bash_profile in addition to ~/.zshrc or ~/.bashrc.

export MODULAR_HOME="$HOME/.modular"

# Pick one of the following, don't use both
# Option A: Nightly Mojo
export PATH="$HOME/.modular/pkg/packages.modular.com_nightly_mojo/bin:$PATH"
# Option B: Stable Mojo
export PATH="$HOME/.modular/pkg/packages.modular.com_mojo/bin:$PATH"