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.1.0.tar.gz (3.2 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.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zicon_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 8950a7656410f95d65d276853375049e63ed2ca5ea3d03eba1c91fe7dbe95c12
MD5 f2800e8f2ace25222b1c370137ed0a7d
BLAKE2b-256 6d92962921018f8cefd2300f55d27b0b457535f5346bbc886b65231ca88e34a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zicon_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0f29de96d81d3ce4dad24e19bf55d0cac86af27906ad33505512e5e82a396d9
MD5 2efd2b26f92760e7c81e8eda4b259396
BLAKE2b-256 d57e4c690f247b6e89a4e0c0a7d43ea077bdb742a1d46096d8fe262c677020df

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