Skip to main content

The Views 3 CLI tool

Project description

viewser

This package contains many useful user operations that are used by the views 3 team. These operations include fetching and publishing data, finding documentation on both transforms and database structure, and more.

CLI

viewser functionality is exposed via a CLI on your system after installation. An overview of available commands can be seen by running viewser --help.

API

In addition to the CLI, viewser exposes many useful operations as functions that can be used in scripts.

Configuration

The tool is configured using the viewser config set KEY VALUE and viewser config load JSON commands. The settings shown without defaults here, or with defaults that don't make sense for the average user (REMOTE_URL) must be configured before use.

Setting Description Default
RETRY_FREQUENCY General request retry frequency in seconds 5
QUERYSET_MAX_RETRIES How many times a queryset is queried before failing 500
LOG_LEVEL Determines what logging messages are shown INFO
ERROR_DUMP_DIRECTORY Determines where error dumps are written to ~/.views/dumps
REMOTE_URL URL of a views 3 instance http://0.0.0.0:4000
MODEL_METADATA_DATABASE_HOSTNAME Hostname of database for storing model metadata hermes
MODEL_METADATA_DATABASE_NAME DBname of database for storing model metadata forecasts3
MODEL_METADATA_DATABASE_USER Username for database for storing model metadata Inferred from cert
MODEL_METADATA_DATABASE_SSLMODE SSLmode for database for storing model metadata required
MODEL_METADATA_DATABASE_PORT Port of database for storing model metadata 5432
MODEL_METADATA_DATABASE_SCHEMA Schema of database for storing model metadata forecasts
MODEL_METADATA_DATABASE_TABLE Table of database for storing model metadata model
AZURE_BLOB_STORAGE_ACCOUNT_NAME Name of Azure blob storage account
AZURE_BLOB_STORAGE_ACCOUNT_KEY Access key of Azure blob storage account

Funding

The contents of this repository is the outcome of projects that have received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 694640, ViEWS) and Horizon Europe (Grant agreement No. 101055176, ANTICIPATE; and No. 101069312, ViEWS (ERC-2022-POC1)), Riksbankens Jubileumsfond (Grant agreement No. M21-0002, Societies at Risk), Uppsala University, Peace Research Institute Oslo, the United Nations Economic and Social Commission for Western Asia (ViEWS-ESCWA), the United Kingdom Foreign, Commonwealth & Development Office (GSRA – Forecasting Fatalities in Armed Conflict), the Swedish Research Council (DEMSCORE), the Swedish Foundation for Strategic Environmental Research (MISTRA Geopolitics), the Norwegian MFA (Conflict Trends QZA-18/0227), and the United Nations High Commissioner for Refugees (the Sahel Predictive Analytics project).

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

viewser-6.0.0.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

viewser-6.0.0-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

Details for the file viewser-6.0.0.tar.gz.

File metadata

  • Download URL: viewser-6.0.0.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for viewser-6.0.0.tar.gz
Algorithm Hash digest
SHA256 df0b1bd1b377c1bff189834105fccb2446cc9761024a7bd0cba128c62cb4d514
MD5 cffeb4d930319e786e31e3eb5add740e
BLAKE2b-256 2a9512c5c014afea4c705e6a24bef5beb262c6b8800d876de7cd39c3d5ca446d

See more details on using hashes here.

File details

Details for the file viewser-6.0.0-py3-none-any.whl.

File metadata

  • Download URL: viewser-6.0.0-py3-none-any.whl
  • Upload date:
  • Size: 55.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for viewser-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2505807bcf3eb3f67cd3a9af5b786d5a800d9ceba203bf2560432ae3d2a17446
MD5 a9edac0a42462bdb385caba0641fa4bf
BLAKE2b-256 22e4ee94cbdb67c5a725f306ec09fa3bf7d8ba4fdb1402f3c8c931f00304f5c3

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