A CLI and service wrapper for the Helium API
Project description
# Helium Commander
[![Build Status](https://travis-ci.org/helium/helium-commander.svg?branch=master)](https://travis-ci.org/helium/helium-commander)
[![Build status](https://ci.appveyor.com/api/projects/status/i5bocfry81whgaqx?svg=true)](https://ci.appveyor.com/project/madninja/helium-commander)
[![Coverage Status](https://coveralls.io/repos/github/helium/helium-commander/badge.svg?branch=master)](https://coveralls.io/github/helium/helium-commander?branch=master)
[![Code Climate](https://codeclimate.com/github/helium/helium-commander/badges/gpa.svg)](https://codeclimate.com/github/helium/helium-commander)
[Helium](https://helium.com) is an integrated platform of smart sensors, communication, edge and cloud compute that makes building IoT applications easy.
Helium Commander makes it easy to talk to the [Helium API](https://docs.helium.com). It offers:
* A command line interface to interact with the various Helium endpoints
* A service API that shows how to communicate with the Helium API and interpret the results.
## Docs, Usage, and Community
* In addition to this README, full usage documentation Helium Commander can be found on [dev.helium.com](https://docs.helium.com/guides/helium_commander.html).
* You can also watch an in-depth Helium Commander tutorial [here](https://www.youtube.com/watch?v=EGDzfMQD6EI)
## Installation
### Using Homebrew
If you use [Homebrew](http://brew.sh/) for package management, Helium Commander can be installed like this:
```
$ brew tap helium/tools
$ brew install helium-commander
```
### From PyPi
From [PyPi](https://pypi.python.org). Use this if you want to use the command line tool on its own.
```
$ pip install helium-commander
```
Note that on some systems you may have to use `sudo` to install the package system-wide.
```
$ sudo pip install helium-commander
```
To upgrade from a previous version:
```
$ pip install helium-commander --upgrade -I
```
**Note**: Ensure that you use `-I` to allow clean upgrades of packages
### From Source
Use this if you're actively developing or extending Commander:
```
$ virtualenv env
$ source env/bin/activate
$ pip install -e .
```
### Nix
`helium-commander` can also be installed using the [Nix](https://nixos.org/nix/) package manager. Clone the repository and run:
```
$ nix-env --install --file default.nix
```
To upgrade on version releases, run:
```
$ nix-env --upgrade --file default.nix
```
## Usage
To use the `helium` command, explore the `--help` options:
```
$ helium --help
Usage: helium [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--format [csv|json|tabular] The output format (default 'tabular')
--uuid Whether to display long identifiers
--host TEXT The Helium base API URL. Can also be specified
using the HELIUM_API_URL environment variable.
--api-key TEXT your Helium API key. Can also be specified using
the HELIUM_API_KEY environment variable
-h, --help Show this message and exit.
Commands:
configuration Operations on configurations.
element Operations on elements.
label Operations on labels of sensors.
organization Operations on the authorized organization
sensor Operations on physical or virtual sensors.
user Operations on the user.
```
[![Build Status](https://travis-ci.org/helium/helium-commander.svg?branch=master)](https://travis-ci.org/helium/helium-commander)
[![Build status](https://ci.appveyor.com/api/projects/status/i5bocfry81whgaqx?svg=true)](https://ci.appveyor.com/project/madninja/helium-commander)
[![Coverage Status](https://coveralls.io/repos/github/helium/helium-commander/badge.svg?branch=master)](https://coveralls.io/github/helium/helium-commander?branch=master)
[![Code Climate](https://codeclimate.com/github/helium/helium-commander/badges/gpa.svg)](https://codeclimate.com/github/helium/helium-commander)
[Helium](https://helium.com) is an integrated platform of smart sensors, communication, edge and cloud compute that makes building IoT applications easy.
Helium Commander makes it easy to talk to the [Helium API](https://docs.helium.com). It offers:
* A command line interface to interact with the various Helium endpoints
* A service API that shows how to communicate with the Helium API and interpret the results.
## Docs, Usage, and Community
* In addition to this README, full usage documentation Helium Commander can be found on [dev.helium.com](https://docs.helium.com/guides/helium_commander.html).
* You can also watch an in-depth Helium Commander tutorial [here](https://www.youtube.com/watch?v=EGDzfMQD6EI)
## Installation
### Using Homebrew
If you use [Homebrew](http://brew.sh/) for package management, Helium Commander can be installed like this:
```
$ brew tap helium/tools
$ brew install helium-commander
```
### From PyPi
From [PyPi](https://pypi.python.org). Use this if you want to use the command line tool on its own.
```
$ pip install helium-commander
```
Note that on some systems you may have to use `sudo` to install the package system-wide.
```
$ sudo pip install helium-commander
```
To upgrade from a previous version:
```
$ pip install helium-commander --upgrade -I
```
**Note**: Ensure that you use `-I` to allow clean upgrades of packages
### From Source
Use this if you're actively developing or extending Commander:
```
$ virtualenv env
$ source env/bin/activate
$ pip install -e .
```
### Nix
`helium-commander` can also be installed using the [Nix](https://nixos.org/nix/) package manager. Clone the repository and run:
```
$ nix-env --install --file default.nix
```
To upgrade on version releases, run:
```
$ nix-env --upgrade --file default.nix
```
## Usage
To use the `helium` command, explore the `--help` options:
```
$ helium --help
Usage: helium [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--format [csv|json|tabular] The output format (default 'tabular')
--uuid Whether to display long identifiers
--host TEXT The Helium base API URL. Can also be specified
using the HELIUM_API_URL environment variable.
--api-key TEXT your Helium API key. Can also be specified using
the HELIUM_API_KEY environment variable
-h, --help Show this message and exit.
Commands:
configuration Operations on configurations.
element Operations on elements.
label Operations on labels of sensors.
organization Operations on the authorized organization
sensor Operations on physical or virtual sensors.
user Operations on the user.
```
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 Distribution
helium-commander-0.15.7.tar.gz
(18.4 kB
view details)
File details
Details for the file helium-commander-0.15.7.tar.gz
.
File metadata
- Download URL: helium-commander-0.15.7.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e02ff85274057348752e03c4b89ab811b3e8471a23262f8128e9cccb34425b |
|
MD5 | c8fbcb5a9ffd813230a1842aa2636dd8 |
|
BLAKE2b-256 | c21e6e39f6f95f45a810c59ef124b3f2dd7175c9037133b77c818923e3203473 |