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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: blueapi-0.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c27ba857cfd4a251d202833fca0aced00feeeee157eb066467f1a9c128875292
MD5 b83cadc3ecd94bfd996b7099f996beb0
BLAKE2b-256 6c3de1713d823350a74701b1bb5307ce82c84e026176dd2c7a225ceea05cb243

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blueapi-0.6.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0bc44bee6b49acb70f323e60b071a6aba65e133540ff589c498ab22460eec1a3
MD5 a12a41f7900daa10bd23b118091ee51e
BLAKE2b-256 a2c7d3e9ad67816f7b5c748eb5dfc3d30e183c2c2ef59d38fa14cbde3ef13b45

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