Skip to main content

Shortwing

PyPI version Python versions License: MIT

Himalayan Shortwing

Lightweight CLI wrapper for Dimensions DSL queries via dimcli.

Installation

pip install shortwing

Usage

# Query as argument
shortwing "search grants for \"malaria\" return researchers"

# Query from stdin (read only when no query argument is given;
# "-" requests stdin explicitly)
echo 'search grants for "malaria"' | shortwing
echo 'search grants for "malaria"' | shortwing -
# (on an interactive terminal, "shortwing -" waits for input until Ctrl-D)

# With subcommand
shortwing query "search grants return grants"

# Compact JSON output (options go before the query)
shortwing --compact "search grants"
echo 'search grants' | shortwing --compact -

# Use a specific instance from dsl.ini
shortwing --instance test "search grants"

Configuration

Credentials are loaded in the following order of priority:

  1. CLI flags (--key, --endpoint)
  2. Environment variables (DIMENSIONS_KEY, DIMENSIONS_ENDPOINT)
  3. dsl.ini file (default)

Shortwing uses the same dsl.ini configuration file as dimcli. Create the file at ~/.dimensions/dsl.ini:

[instance.live]
url=https://app.dimensions.ai
login=
password=
key=your-api-key

You can define multiple instances and select them with --instance:

[instance.live]
url=https://app.dimensions.ai
key=your-live-key

[instance.test]
url=https://test.dimensions.ai
key=your-test-key
shortwing --instance test "search grants"

Using Environment Variables

export DIMENSIONS_KEY=your-api-key
export DIMENSIONS_ENDPOINT=https://app.dimensions.ai  # optional

Using CLI Flags

shortwing --key your-api-key "search grants"
shortwing --key your-api-key --endpoint https://custom.endpoint.com "search grants"

Development

uv pip install .

Exit Codes

  • 0: Success
  • 1: Query/API error
  • 2: Configuration/authentication error

Metadata

Release files for shortwing 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shortwing 0.2.2
File Size Uploaded Provenance Actions
shortwing-0.2.2.tar.gz 257.5 kB With provenance Details for shortwing-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shortwing 0.2.2
File Interpreter ABI Platform Actions
shortwing-0.2.2-py3-none-any.whl Python 3 none any Details for shortwing-0.2.2-py3-none-any.whl

Total release size: 267.2 kB

Release files / shortwing-0.2.2.tar.gz

Download URL shortwing-0.2.2.tar.gz
Size 257.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4ff11539b189d0e07b8852e042451a4668f33dadef2abdffadf94a0ee0b8b551
BLAKE2b-256 checksum
How to use checksums
72a9ad9019550a6d79a61229ba673dcc9dd3aa39d480ca291fcf94660494dc89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / shortwing-0.2.2-py3-none-any.whl

Download URL shortwing-0.2.2-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
111de1e13b7c2436b0c436955cf432426153d96818bcefe7fe0807d339c7dde5
BLAKE2b-256 checksum
How to use checksums
c7fb5ee32c01d739ca48e83df90caec5905485efcde153118db25a900f7e1e2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for shortwing 0.2.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for shortwing-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page