Skip to main content

ViQi Python API

Project description

ViQi API

Low level interface to ViQi services

Install

pip install viqi-api

Configuration

For command line tools create ~/.config/viqi/profiles or `~/config/viqi/profiles`` (windows) with the following

[default]
host=https://science.viqiai.cloud
user=myuser
password=mysecret

[science-user2]
host=https://science.viqiai.cloud
user=myuser2
password=mysecret2

Documentation

Usage

Example ipython session:

ipython
from vqapi import viqi_session
session = viqi_session(args=["--profile=science-user2"])

meta = session.service("meta")
user = meta.fetch("user")
print(user)

If used in script viqi_session will read from sys.argv

myscript.py:

from vqapi import viqi_session
session = viqi_session()

meta = session.service("meta")
user = meta.fetch("user")
print(user)

Pass args on command line:

$ python myscript.py --profile=science-user2

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

viqi_api-0.6.16-py3-none-any.whl (94.2 kB view details)

Uploaded Python 3

File details

Details for the file viqi_api-0.6.16-py3-none-any.whl.

File metadata

  • Download URL: viqi_api-0.6.16-py3-none-any.whl
  • Upload date:
  • Size: 94.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for viqi_api-0.6.16-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0e4b71e7f08314aa67980d17dcaa2d0a2d1e911f13415af03153fde8ea5995
MD5 0801cabbec94f91f0a4065f6d3765a62
BLAKE2b-256 23efed2cc0c1a1f9ef785f0d0eccec2bee88628597304ddfaa3b577bba3ce930

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