Skip to main content

XoLib

Overview

This is a simple helper Python 2 & 3 package to interface with the JSON-RPC over WebSockets API of XenOrchestra’s xo-server.

Usage

from xolib import xo, XoError, XoApiError, XoTimeoutError
from __future__ import print_function

xo_instance = xo('ws://localhost', timeout=30)
try:
  xo.session_signInWithPassword(email='lala', password='test')
except XoError:
  print('Wrong password?')

try:
  xo.call('somemethod', somemethod_arg1=arg1, somemethod_arg2=arg2)
except XoTimeoutError:
  print('xo-server did not respond within 30 seconds.')
except XoApiError:
  print('Fix your arguments.')

Metadata

Release files for xolib 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xolib 0.2.3
File Size Uploaded Provenance Actions
xolib-0.2.3.tar.gz 2.7 kB Without provenance Details for xolib-0.2.3.tar.gz

Release files / xolib-0.2.3.tar.gz

Download URL xolib-0.2.3.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
452860eb4e7154ca2374a2ec82d4e517981fb198763a63f5a20b25c20e6896e3
BLAKE2b-256 checksum
How to use checksums
52a6977d6d97e5c61dd3a6c3aeab0db10240c5b0e88ca9fceb9220562f6f5d75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for xolib 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page