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.

concept

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blueapi-0.6.2a1.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

blueapi-0.6.2a1-py3-none-any.whl (61.7 kB view details)

Uploaded Python 3

File details

Details for the file blueapi-0.6.2a1.tar.gz.

File metadata

  • Download URL: blueapi-0.6.2a1.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blueapi-0.6.2a1.tar.gz
Algorithm Hash digest
SHA256 0755a9fcb8de2b0fa1c398fc928cf59e97acc30f76856dcde88c70496c4180e6
MD5 7bdeb15f6123e5845db3f23037257b32
BLAKE2b-256 fe6384ae715569f3f236d2c987bb7cc27699d3b2e879b1aff20f8ea53e259bd0

See more details on using hashes here.

File details

Details for the file blueapi-0.6.2a1-py3-none-any.whl.

File metadata

  • Download URL: blueapi-0.6.2a1-py3-none-any.whl
  • Upload date:
  • Size: 61.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blueapi-0.6.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 baf5086fc9acf53f56d667b34f130eb3a323a8a75661d3215133ca89ba7c17f0
MD5 ec1b9dc30f21dbafb7c4b6106439492f
BLAKE2b-256 f9c7cf7fbea9ff50883989138e78c24c2246350270c2605f42761f20b25b261a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page