Skip to main content

Lightweight bluesky-as-a-service wrapper application. Also usable as a library.

Project description

CI Coverage PyPI License

blueapi

Lightweight bluesky-as-a-service wrapper application. Also usable as a library.

Source https://github.com/DiamondLightSource/blueapi
PyPI pip install blueapi
Docker docker run ghcr.io/diamondlightsource/blueapi:latest
Documentation https://diamondlightsource.github.io/blueapi
Releases https://github.com/DiamondLightSource/blueapi/releases

This module wraps bluesky plans and devices inside a server and exposes endpoints to send commands/receive data. Useful for installation at labs where multiple people may control equipment, possibly from remote locations.

The main premise of blueapi is to minimize the boilerplate required to get plans and devices up and running by generating an API for your lab out of type-annotated plans. For example, take the following plan:

import bluesky.plans as bp
from blueapi.core import MsgGenerator

def my_plan(foo: str, bar: int) -> MsgGenerator:
    yield from bp.scan(...)

Blueapi's job is to detect this plan and automatically add it to the lab's API so it can be invoked easily with a few REST calls.

See https://diamondlightsource.github.io/blueapi for more detailed documentation.

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

blueapi-1.11.5.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

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

blueapi-1.11.5-py3-none-any.whl (78.7 kB view details)

Uploaded Python 3

File details

Details for the file blueapi-1.11.5.tar.gz.

File metadata

  • Download URL: blueapi-1.11.5.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blueapi-1.11.5.tar.gz
Algorithm Hash digest
SHA256 a5372be3979f1f14bfd9b37de2f6421652247644728f940e083891e7a2d0f7ae
MD5 468b7356a914597692275a1c5ae2ca51
BLAKE2b-256 028fb1f5b8bbbd04d6a0f518f7ab2b42e4ad3877efb95f9b7bbb9280186a7975

See more details on using hashes here.

File details

Details for the file blueapi-1.11.5-py3-none-any.whl.

File metadata

  • Download URL: blueapi-1.11.5-py3-none-any.whl
  • Upload date:
  • Size: 78.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for blueapi-1.11.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ce4c741f7d7c6a8d412d8d2bdb94639c26f13cdb66c1ab33d6467c4f3f49302e
MD5 e35a3facf1c8a02b7004ec6fa0d1002d
BLAKE2b-256 45932a51977443d837ffab8c574ac04fd02c223ead8c32da4c924db7e8e4d0b5

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