A previous release had provenance metadata, but this release does not. View details.
DataSpring CLI
Query metrics and manage dashboards from the terminal.
Installation
Using uv (Recommended)
# Install from local build
uv tool install ./backend
# Or install from GitHub (once published)
uv tool install git+https://github.com/dataspring/dataspring#subdirectory=backend
Using pip
pip install ./backend
Quick Start
# Login with Google OAuth
dataspring login
# Check who you're logged in as
dataspring whoami
# List available metrics
dataspring metrics list
# Query metrics
dataspring query -m total_revenue -g month --limit 5
# Get visualization suggestions
dataspring query -m total_revenue -g month --suggest-viz
# Export to JSON
dataspring query -m total_revenue --format json > data.json
Commands
Authentication
dataspring auth login # Device flow: approve the code in a browser signed in to DataSpring
dataspring whoami --json # The person, the org, where the org came from (org_from), the role
dataspring auth logout # Revoke this machine's keys and forget them
dataspring org list # List your organizations
Every command names its organization: --org <org>, else DATASPRING_ORG
then FORSPRING_ORG, else .forspring.json ({"org": "<org>"}) in this
directory or a parent, else DATASPRING_API_KEY's own org, else the only
stored key; otherwise it is refused with org_required (exit 2).
Querying Metrics
# List available metrics
dataspring metrics list
dataspring metrics list --format json
# Get metric details
dataspring metrics show total_revenue
# Query data
dataspring query -m revenue -g month # Monthly revenue
dataspring query -m revenue -d region --limit 10 # By region
dataspring query -m revenue -m orders -g week # Multiple metrics
dataspring query -m revenue --start 2024-01-01 --end 2024-12-31
# With visualization suggestion
dataspring query -m revenue -g month --suggest-viz
# List dimensions
dataspring dimensions list
Dashboard Management
# List dashboards
dataspring dashboards list
# Show dashboard details
dataspring dashboards show DASHBOARD_ID
# Create a new dashboard
dataspring dashboards create "My Dashboard"
dataspring dashboards create "Team Metrics" -v org # Visible to team
# Delete a dashboard
dataspring dashboards delete DASHBOARD_ID
dataspring dashboards delete DASHBOARD_ID --yes # Skip confirmation
Manifest Management (Admin Only)
# View manifest status
dataspring manifest status
# Export manifest
dataspring manifest export -o manifest.yaml
# Import manifest
dataspring manifest upload manifest.yaml
dataspring manifest upload manifest.yaml --force # Overwrite conflicts
# Semantic models
dataspring models list
dataspring models show orders
dataspring models create model.yaml
dataspring models update orders updated.yaml
dataspring models delete orders
# Metrics
dataspring metrics create metric.yaml
dataspring metrics update total_revenue updated.yaml
dataspring metrics delete total_revenue
dataspring metrics preview metric.yaml # Test before saving
Output Formats
All commands support --format:
| Format | Description |
|---|---|
table |
Human-readable ASCII table (default) |
json |
JSON output for scripting |
yaml |
YAML output for config editing |
dataspring metrics list --format json | jq '.[0]'
dataspring dashboards show abc123 --format yaml > dashboard.yaml
Configuration
Credentials are stored in ~/.dataspring/:
~/.dataspring/
├── credentials.json # OAuth tokens (encrypted)
└── config.json # User preferences
Development
# Build the wheel
cd backend
uv build
# Install locally for testing
uv tool install dist/dataspring_cli-*.whl --force
# Run tests
uv run pytest tests/ -v
Environment Variables
| Variable | Description |
|---|---|
FIRESTORE_EMULATOR_HOST |
Use Firestore emulator |
FIREBASE_AUTH_EMULATOR_HOST |
Use Auth emulator |
ENV |
Environment: production, development, test |
Metadata
Release files for dataspring-cli 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dataspring_cli-0.5.0.tar.gz | 146.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dataspring_cli-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 300.8 kB
Release files / dataspring_cli-0.5.0.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | dataspring_cli-0.5.0.tar.gz |
|---|---|
| Size | 146.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e61e02a7c4e110e0d1e4504775d14373594d5e89b2991d3998f37681a501689
|
|
BLAKE2b-256 checksum How to use checksums |
24f35ce058d73651642696b3936312af9058a2e7bb1deac2185c43ef967d3256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dataspring_cli-0.5.0-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | dataspring_cli-0.5.0-py3-none-any.whl |
|---|---|
| Size | 153.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
579a64abf24a1101041d94bd748b4002f9e01e38cfaf74aed2704f3ce1db6bce
|
|
BLAKE2b-256 checksum How to use checksums |
a89535fa0d0cfe66063ea3a81a34acbb85ded5ee27b641384c0ff0e7dc66cb76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dataspring-cli 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.4.5 2 files With provenance
- Added 0.5.0 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.