Skip to main content

Sparse command line utility.

Project description

![Status](https://img.shields.io/badge/status-alpha-red.svg) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE.md) [![CircleCI](https://circleci.com/gh/sparse-data/sparse-cli/tree/main.svg?style=shield&circle-token=67d43361b7c2aa039a0eef39d3617a9f481e54c5)](https://circleci.com/gh/sparse-data/sparse-cli/tree/main)

# Sparse CLI

The Sparse CLI is the command line utility for the [Sparse](https://sparsedata.net) geo-distributed database hosting service. It’s developed in Python and the code is published under the [MIT License](https://github.com/sparse-data/sparse-cli/blob/master/LICENSE) at [github.com/sparse-data/sparse-cli](https://github.com/sparse-data/sparse-cli).

## Develop

You can install the CLI for local development by installing the dependencies into a Python3 environment and developing the egg:

`sh pip install -r requirements.txt python setup.py develop `

This will install a sparse binary in your local Python environment’s bin folder. You can check that this is on your path with e.g.:

`sh which sparse `

## Build

If you want to build standalone binaries, you first need to install the extra development requirements:

`sh pip install -r dev-requirements.txt `

Then you can build a [Pex](https://pex.readthedocs.io) executable using:

`sh python setup.py bdist_pex --bdist-all `

This will create a ./dist/sparse binary which you can copy and run anywhere on your system.

Alternatively, you can build a standalone binary with an embedded Python interpretor using [PyOxidizer](https://pyoxidizer.readthedocs.io):

`sh pyoxidizer run `

This will create a binary at ./build/:target/debug/install/sparse that you can run on any machine with the same architecture and OS as your build machine.

## Usage

Run the sparse command without arguments or with the –help flag for usage information:

`sh sparse --help `

You can drill down into usage information for the resources / command groups and for individual commands, e.g.:

`sh sparse auth --help sparse auth login --help `

Further [documentation is available on the Sparse website](https://sparsedata.net/docs).

## Test

Running the tests requires nose and coverage, included in the dev-requirements.txt.

Then, run e.g.:

`sh nosetests --with-coverage --cover-package sparse `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sparse-cli-0.0.1.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file sparse-cli-0.0.1.tar.gz.

File metadata

  • Download URL: sparse-cli-0.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for sparse-cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b34ff1e0611c14d6fe489e593305d0063ebe07a9a516a55eba25e1bdb69a32fc
MD5 812e7ec14453655442fadc920122adc1
BLAKE2b-256 11e97a53a8df341e0077bd9e148f56adddc4986430863c4b8485e1865798428f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page