Skip to main content

A python client library for the bliss REST API

Project description

blissclient

A python client for the BLISS REST API, the high-level client is fully typed ready for auto-completion in any modern IDE.

Getting Started

Set the BLISSAPI_URL

export BLISSAPI_URL=http://localhost:5000

Then:

from blissclient import BlissClient

client = BlissClient()

omega = client.hardware.get("omega")
print(omega.position)

future = omega.move(100)
# Wait for the call to temrinate, blocking
future.get()

Execute calls in the session:

import time
from blissclient import BlissClient, get_object

client = BlissClient()

test_session = client.session
future = test_session.call("ascan", get_object("omega"), 0, 10, 10, 0.1, get_object("diode"))

# Ask for the current future state
print(future.state)

# Block until terminated
result = future.get()

# The redis scan key, can be used with `blissdata``
print(result["key"])

get_object("") are translated to the relevant beacon objects.

See the test suite for more examples.

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

blissclient-1.0.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

blissclient-1.0.0-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file blissclient-1.0.0.tar.gz.

File metadata

  • Download URL: blissclient-1.0.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for blissclient-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a9dfc594f0b0585fdbdbfdc62f87b47c9f0ef3af41e9c2b0f7f32e8b7f6e3cd1
MD5 8c0a74efc405d9ab5cc80cf24b857b62
BLAKE2b-256 a71b0665c34f820c51208508ccb0f882dcb8e37aa1402c381250ca3a195f0b5b

See more details on using hashes here.

File details

Details for the file blissclient-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: blissclient-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for blissclient-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56e808dc9453f23d24ca9634e6128dcbf3dcba903e2bf831e97c15dc44d66d5f
MD5 ad9c33646d24baadcafdf6a780d9de89
BLAKE2b-256 3665e3f70fbad04009c0113925709113d0c4e570c653382af64ef6d2f99c7f6a

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