Skip to main content

Command line interface for the ZiCON Cloud API, built on the zicon-cloud SDK.

Project description

zicon-cli

A command line interface for the ZiCON Cloud API, built on top of the zicon-cloud Python SDK.

Install

pip install zicon-cli

This installs a zicon command on your PATH.

Authentication

Dataset, tool, and endpoint discovery commands work without any credentials. Project management commands require a ZiCON API key.

Set it as an environment variable:

export ZICON_API_KEY="your-api-key"

or pass it per-command with --api-key:

zicon projects list --api-key your-api-key

If a command needs an API key and neither the environment variable nor --api-key is provided, zicon prints an error explaining how to fix it and exits.

Usage

Datasets

List all available datasets:

zicon datasets list

Get full details for a single dataset:

zicon datasets get <dataset-id>

Get the download URL for a dataset's file:

zicon datasets download <dataset-id>

Tools

List tools available in the ZiCON ecosystem (name, language, install command):

zicon tools list

Endpoints

List the ZiCON Cloud API's HTTP endpoints (method, path, description):

zicon endpoints list

Projects (requires an API key)

List your projects:

zicon projects list

List the files belonging to a project:

zicon projects files <project-id>

Delete a project (prompts for confirmation before deleting):

zicon projects delete <project-id>

Errors

zicon catches the errors raised by the zicon-cloud SDK and prints a clean message instead of a Python traceback:

  • ZiconAuthError — missing or invalid credentials
  • ZiconPermissionError — credentials are valid but not permitted to perform the action
  • ZiconNotFoundError — the requested resource does not exist
  • ZiconServerError — the ZiCON Cloud API returned a server error

License

MIT

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

zicon_cli-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zicon_cli-0.2.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file zicon_cli-0.2.0.tar.gz.

File metadata

  • Download URL: zicon_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for zicon_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ff15d13fd52f39c8be77dde3f817896e9abeb03c8ac76396a5fdb1a7d0ec6ea3
MD5 4006b39decf5143053021530a63708fe
BLAKE2b-256 9d737313660d97f2c8e5aa649957d161868afa7756ccd58250c9218133682bad

See more details on using hashes here.

File details

Details for the file zicon_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: zicon_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for zicon_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15dec626ee14c1580f43efd5b4836450bd17ff251ea4c85078fe28a533ff6177
MD5 e6eb03bcec14339d4ffa5a3b39ba9d28
BLAKE2b-256 076dbc4f1f13216646f7cce019ae22abd6b63b03a22d897c3d720044e2056b6d

See more details on using hashes here.

Supported by

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