Command-line interface for Beacon Data Lake nodes
Project description
Beacon Data Lake CLI
Beacon Data Lake CLI is a thin, cmd2-powered shell that sits on top of
the Beacon Python SDK. It gives analysts and operators a quick way to
connect to a Beacon node, browse registered datasets, inspect logical
tables, and execute SQL or JSON-based queries without writing scripts.
Highlights
- Instant Beacon sessions:
beacon-datalake-cli --url https://...auto-connects and drops you into an interactive prompt with command completion, history, and colorized output courtesy of Rich. - Schema-aware exploration: list or inspect datasets and logical tables, including per-column data types and format metadata.
- Flexible querying: run ad-hoc SQL with preview/stream/export options or use the fluent query builder to add select, filter, sort, spatial, and distinct clauses via flags.
- Admin workflows: upload, download, or delete dataset files plus create or remove logical tables when you have the right credentials.
- Rich previews: tabular results show column data types, memory usage estimates, and query timing metrics; export to Parquet, Arrow, CSV, NetCDF, or GeoParquet when needed.
Requirements
- Python 3.10 or newer
- Access to a Beacon node plus any JWT token or basic auth credentials required by that deployment
beacon-apicompatible server version (the CLI ships with SDK as a dependency)
Installation
pip install beacon-datalake-cli
Prefer to keep tools isolated? Install via pipx install beacon-datalake-cli and you will get the same beacon-datalake-cli
entry point on your PATH.
Quick start
# Connect immediately using startup flags
beacon-datalake-cli --url https://beacon.example.com --jwt-token "$TOKEN"
# Or launch the shell first, then run connect inside the prompt
beacon-datalake-cli
beacon_cli> connect https://beacon.example.com --basic-auth user pass
Once connected:
- Run
dashboardfor a full-screen command palette. - Check your session with
statusto confirm version and admin access. - Explore data with commands such as:
list_datasets --pattern *.parquetdataset_schema /data/sst/sample.parquetlist_tablesandlist_table_schema climate_daily
- Query live data:
beacon_cli> sql "SELECT station_id, temp_c FROM climate_daily LIMIT 10" --rows 10
# JSON query builder example (select + filters + streaming preview)
beacon_cli> query_builder --table climate_daily \
--select station_id --select temp_c:temperature_c \
--range observation_date "2024-01-01" "2024-01-31" \
--stream --rows 20
Command reference
| Area | Command (args) | Purpose |
|---|---|---|
| Session | connect, status, dashboard, quit |
Manage CLI session and connection |
| Datasets | list_datasets, dataset_schema, upload_dataset, download_dataset, delete_dataset |
Discover and manage registered dataset files |
| Tables | list_tables, list_table_schema, create_table, delete_table |
Inspect logical tables or administer them |
| Querying | sql, query_builder |
Execute SQL or JSON builder queries with preview/export/stream options |
Use help <command> for detailed usage, supported flags, and examples.
Development notes
- The package exposes a single console script named
beacon-datalake-clidefined inpyproject.toml. - To test local changes, install in editable mode:
pip install -e .then runbeacon-datalake-clifrom your virtual environment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beacon_datalake_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: beacon_datalake_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca3adb339ae4c7b62a0fff5c82fb3a14ce1c73ff8e54041d30726244720dd38
|
|
| MD5 |
ac125735efb288ab251702a8d2fde2e9
|
|
| BLAKE2b-256 |
3739cb2097784f153959b5f87275ee0dbd6e66c3b565111c120469c1e7636fdf
|
Provenance
The following attestation bundles were made for beacon_datalake_cli-0.1.0-py3-none-any.whl:
Publisher:
release.yml on robinskil/beacon-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
beacon_datalake_cli-0.1.0-py3-none-any.whl -
Subject digest:
aca3adb339ae4c7b62a0fff5c82fb3a14ce1c73ff8e54041d30726244720dd38 - Sigstore transparency entry: 761133500
- Sigstore integration time:
-
Permalink:
robinskil/beacon-cli@0f62961cfc2d65f87c75cb0fed2b74698ce0b245 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/robinskil
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0f62961cfc2d65f87c75cb0fed2b74698ce0b245 -
Trigger Event:
push
-
Statement type: