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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blissclient-1.1.0.tar.gz.
File metadata
- Download URL: blissclient-1.1.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d58b23c5b11963dfbb0df039c6605171f1307a550f231d545222ee457e047b0
|
|
| MD5 |
88ac9d43e28f39af8b9702d33c4a6ee8
|
|
| BLAKE2b-256 |
529c177ce032a2e67cc3efd88d790e67d94b691b68356eda77bf8cab990d62cf
|
File details
Details for the file blissclient-1.1.0-py3-none-any.whl.
File metadata
- Download URL: blissclient-1.1.0-py3-none-any.whl
- Upload date:
- Size: 30.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
266aeaed1da8b18baf479379d19dfdc853a29c3b62c3618f5d1d2af2946d727c
|
|
| MD5 |
cc556cc70ab94fc7a1bfe21b0785d30e
|
|
| BLAKE2b-256 |
7a13baaf21c71c2465f3c5a0b4fce170434bf222e778e07fb05e1eba56f14e1f
|