vast-data/vastdb_sdk
vast-data/vastdb_sdk has 40 GitHub stars and 8 forks. Star changes are not measured yet. Last checked 2026-11-14 02:10 UTC. Last push 2026-11-09.
What you can do
- The Basics - examples/quickstart.py - Connecting via environment variables, basic schemas/tables, simple inserts, and querying with predicates.
- Direct S3 Ingest - examples/import_parquet.py - Creating tables directly from existing Parquet files on VAST without client-side copying.
- Advanced Querying - examples/query_processing.py - Parallelizing queries via QueryConfig, VAST Catalog querying, and DuckDB post-processing.
- Performance Tuning - examples/table_types.py - Creating partitioned tables (for filter pruning) and sorted tables (for range scans).
측정된 스타 증가
- in 24h
- 기록 수집 중
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Python-based SDK designed for interacting with VAST Database & VAST Catalog, enabling schema and table management, efficient ingest, query and modification of columnar data.
데이터README.md
OriginalVAST DB Python SDK
A Python client for the VAST Database and VAST Catalog.
Supports:
- Schema and table management
- Efficient data ingest and querying
- Advanced filtering with predicate pushdown
- Direct integration with PyArrow and DuckDB
- File system querying through VAST Catalog
For technical details about VAST Database architecture, see the whitepaper.
Getting Started
Requirements
- Linux client with Python 3.10 - 3.13, and network access to the VAST Cluster
- VAST Cluster release
5.0.0-sp10or later- If your VAST Cluster is running an older release, please contact [email protected].
- Virtual IP pool configured with DNS service
- S3 access & secret keys on the VAST cluster
- Tabular identity policy with the proper permissions
Installation
pip install vastdb
See the Release Notes for the SDK.
Connect
import vastdb
session = vastdb.connect()
vastdb.connect(access: str | None, secret: str | None, endpoint: str | None)
If omitted, access, secret, and endpoint are taken from the environment:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_S3_ENDPOINT_URL
Schema, table, insert, select
Transactions group mutations. Keep the transaction open while you consume a
pyarrow.RecordBatchReader
returned by select().
import pyarrow as pa
import vastdb
with session.transaction() as tx:
bucket = tx.bucket("bucket-name")
schema = bucket.create_schema("qs_basic", fail_if_exists=False)
columns = pa.schema([
("c1", pa.int16()),
("c2", pa.float32()),
("c3", pa.utf8()),
])
table = schema.create_table("quickstart_table", columns, fail_if_exists=False)
sample = pa.table(schema=columns, data=[
[111, 222, 333],
[0.5, 1.5, 2.5],
["a", "bb", "ccc"],
])
table.insert(sample)
# SELECT * from mytable. reader must be fully consumed inside this transaction.
reader: RecordBatchReader = mytable.select()
result: RecordBatch = reader.read_all()
assert result == sample
# the transaction is automatically committed when exiting the context
Supported data types: docs/types.md. See docs/predicate.md for constructing predicates with Ibis.
runnable examples with more features:
| Feature / Workflow | Example File | What it Covers |
|---|---|---|
| The Basics | examples/quickstart.py |
Connecting via environment variables, basic schemas/tables, simple inserts, and querying with predicates. |
| Direct S3 Ingest | examples/import_parquet.py |
Creating tables directly from existing Parquet files on VAST without client-side copying. |
| Advanced Querying | examples/query_processing.py |
Parallelizing queries via QueryConfig, VAST Catalog querying, and DuckDB post-processing. |
| Performance Tuning | examples/table_types.py |
Creating partitioned tables (for filter pruning) and sorted tables (for range scans). |
| Architecture Features | examples/advanced_features.py |
Managing semi-sorted projections, reading from snapshots, and audit logging. |
| Blob Expansion | examples/blob_expansion.py |
Expand a blob column into a target table; create, add/drop columns, mandatory fields, and drop. |
| AI / Machine Learning | examples/vector_search.py |
Nearest-neighbor searches over a vector-indexed column (requires ADBC). |
More Information
See these blog posts for more examples:
- https://vastdata.com/blog/the-vast-catalog-in-action-part-1
- https://vastdata.com/blog/the-vast-catalog-in-action-part-2
See also the full Vast DB Python SDK documentation
관련 프로젝트 살펴보기
Asabeneh/30-Days-Of-Python
30 Days of Python 프로그래밍 챌린지는 Python 프로그래밍 언어를 30일 동안 배우기 위한 단계별 가이드입니다. 이 챌린지는 100일 이상 걸릴 수 있습니다. 자신의 속도에 맞춰 진행하세요. 다음 동영상도 도움이 될 수 있습니다: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,711 스타grafana/grafana
개방적이고 조합 가능한 옵저버빌리티 및 데이터 시각화 플랫폼입니다. Prometheus, Loki, Elasticsearch, InfluxDB, Postgres 등 여러 소스의 메트릭, 로그, 트레이스를 시각화합니다.
77,894 스타redis/redis
실시간 데이터 기반 애플리케이션을 구축하는 개발자에게 Redis는 가장 선호되고, 가장 빠르며, 기능이 가장 풍부한 캐시, 데이터 구조 서버이자 문서 및 벡터 쿼리 엔진입니다.
77,490 스타apache/superset
Apache Superset는 데이터 시각화 및 데이터 탐색 플랫폼입니다.
75,522 스타