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.1a7.tar.gz (996.3 kB view details)

Uploaded Source

Built Distribution

blueapi-0.6.1a7-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

Details for the file blueapi-0.6.1a7.tar.gz.

File metadata

  • Download URL: blueapi-0.6.1a7.tar.gz
  • Upload date:
  • Size: 996.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for blueapi-0.6.1a7.tar.gz
Algorithm Hash digest
SHA256 762b1a647ae59f17f620eb79870e2417b16aed5619e6b013c8c521646fa636ce
MD5 d8400b11f8e523adc2651502fea7a08d
BLAKE2b-256 2420926bf615e8f6d848e7871f66f85cedf0cb136ba9104aad3daa9832893910

See more details on using hashes here.

File details

Details for the file blueapi-0.6.1a7-py3-none-any.whl.

File metadata

  • Download URL: blueapi-0.6.1a7-py3-none-any.whl
  • Upload date:
  • Size: 58.8 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.1a7-py3-none-any.whl
Algorithm Hash digest
SHA256 125414ea536663e5fe6bbaf279d4e3c2224fa13634a73e5167017e20eedd1437
MD5 524312441e0d8aef9b4665c812f9aa7f
BLAKE2b-256 a133e6dc81d37af6dd131cc5eae98dad118aee7a10e7f56074f679822211e096

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