Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Python Embedded TileDB SQL Library

License

NotificationsYou must be signed in to change notification settings

TileDB-Inc/TileDB-SQL-Py

 
 

Repository files navigation

Build Status

This is a fork ofmysqlclient-python.

This project is designed to be used with TileDB-SQL which is a reduced build of MariaDB with support for usingtheMyTile storage engine for accessing TileDB Arrays.

This is not meant to be used a general purpose MariaDB Client, it is only meant to be used with linking againstthe embedded version of MariaDB. This has been tested only with MariaDB 10.4 and the MyTile storage engine.

Install

Docker

A docker image is available on dockerhub undertiledb/tiledb-sql-py.This docker image will drop you into a python shell and has tiledb, tiledb-sql-py, pandas and numpy preinstalled.

docker run -it --rm tiledb/tiledb-sql-py

Conda

Conda packages will be available on conda forge soon.

conda install -c conda-forge tiledb-sql

Pypi

A pypi package will be build from conda using conda-press

pip install tiledb-sql

Compiling From Source

Prerequisites

You may need to install the Python development headers and compile MariaDB from source

Python development headers

  • sudo apt-get install python-dev default-libmysqlclient-dev # Debian / Ubuntu
  • sudo yum install python-devel mysql-devel # Red Hat / CentOS
  • brew install mysql-connector-c # macOS (Homebrew) (Currently, it has bug. See below)

On Windows, there are binary wheels you can install without MySQLConnector/C or MSVC.

Compiling MyTile

Please follow theMyTile compilation instructions

Building TileDB-SQL-Py package

If you've installed mytile into$HOME/mytile_server simply build the python package with:

PATH="$HOME/mytile_server/bin:${PATH}" python setup.py build_ext --inplace

Now you can use it with

import tiledb.sqlimport pandasdb = tiledb.sql.connect(db="test")pd.read_sql(sql="select * from `s3://my_bucket/my_array`, con=db)

Documentation

Documentation is hosted onTileDB Developer Docs

Packages

No packages published

Languages

  • Python63.4%
  • C35.0%
  • Dockerfile1.5%
  • Makefile0.1%

[8]ページ先頭

©2009-2025 Movatter.jp