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 bisque_session
session = bisque_session(args=["--profile=science-user2"])
meta = session.service("meta")
user = meta.fetch("user")
print(user)
If used in script bisque_session will read from sys.argv
myscript.py:
from vqapi import bisque_session
session = bisque_session()
meta = session.service("meta")
user = meta.fetch("user")
print(user)
Pass args on command line:
$ python myscript.py --profile=science-user2