Skip to main content

Bluesky Adaptive

Build Status PyPI Version License Badge

bluesky-adaptive 0.x is discontinued. Starting with 1.0, bluesky-adaptive adopts the blop codebase and continues its development under the bluesky-adaptive name at bluesky-adaptive. The 1.0+ API differs from 0.x: the Kafka/Tiled Agent base, adjudicators, server, and lockstep recommenders are not carried forward. Pin bluesky-adaptive<1 to keep this package.

0.4.0 is the final 0.x release.

Bluesky Adaptive is a component of the Bluesky ecosystem designed to introduce adaptivity and intelligent decision-making into experimental workflows.
It provides a flexible API that supports a wide range of adaptive algorithms, from simple rule-based adjustments to sophisticated artificial intelligence and machine learning models.
The package is designed to provide a framework and set of harnesses for "bring-your-own-agent" development.
It has no opinions on the algorithms that underpin your adaptivity, and it is designed to be agnostic to the specifics of the domain in which it is used.

Resource Link
PyPI pip install bluesky-adaptive
Source Code GitHub
Docs Documentation

Features

  • Adaptive harness for lockstep agents to interact with the RunEngine.
  • Base classes for developing distributed agents to interact with the RunEngine Manager through Queue Server.
  • Example agents using optional requirements (BoTorch, GPyTorch, Scikit Learn).
  • Server for running managed agents with a FAST API.
  • Adjudicators for acting as meta-agents that consume suggestions from many agents and gatekeep the Queue Server.

Getting Started

To get started with Bluesky-Adaptive, refer to the Getting Started Tutorial.
This tutorial will guide you through the installation process, setting up the Bluesky stack, and running your first adaptive experiment.

Usage

Bluesky Adaptive is designed to be integrated into your experimental workflows to provide adaptive capabilities.
It offers two primary approaches:

  • Lockstep Approach: For synchronous operations where each experimental step waits for the previous one to complete.
  • Asynchronous Approach: Allows for independent operation from the main execution thread, suitable for complex setups.

Detailed guides on how to extend your existing Python tools for use with Bluesky Adaptive and how to run your agent as a service can be found in the documentation.

Development Environment

To set up a development environment for Bluesky Adaptive, you can use the provided containerized setup with bluesky-pods. A minimal compose file is available in bluesky_adaptive/tests/podman/docker-compose.yaml to run the unit tests. For more complete integration testing, you can use the bluesky-pods repository, which provides a full stack including the RunEngine, Queue Server, and Tiled server.

podman pull ghcr.io/bluesky/bluesky-pods-bluesky:latest
podman tag ghcr.io/bluesky/bluesky-pods-bluesky:latest bluesky:latest
git clone (https://github.com/bluesky/bluesky-pods)
cd bluesky-pods/compose/acq-pod
podman-compose --in-pod true up -d

Contributing

We welcome contributions from the community, whether it's adding new features, improving documentation, or reporting bugs.
Please see our contribution guidelines for more information on how to get involved.

License

Bluesky-Adaptive is distributed under the BSD-3-Clause license.
See the LICENSE file for more details.


Metadata

Release files for bluesky-adaptive 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bluesky-adaptive 0.4.0
File Size Uploaded Provenance
bluesky_adaptive-0.4.0.tar.gz 376.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bluesky-adaptive 0.4.0
File Interpreter ABI Platform
bluesky_adaptive-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 463.0 kB

Release files / bluesky_adaptive-0.4.0.tar.gz

Download URL bluesky_adaptive-0.4.0.tar.gz
Size 376.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4b14580b408bd54510376332cf2f3bc34f00c3956aa4068fc3603b66ce9012cf
BLAKE2b-256 checksum
How to use checksums
1725451e5d4d3dd3dac78b26b5ac9bd003321c29928d7106e57e9ce962d8f21f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / bluesky_adaptive-0.4.0-py3-none-any.whl

Download URL bluesky_adaptive-0.4.0-py3-none-any.whl
Size 86.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8db5f0c9d08eb517f403d33ecff89f84a1f7dc6bc3cf8f0adf2ff5324a2f5511
BLAKE2b-256 checksum
How to use checksums
564fc323cf9dfebb939e6e179dfa225b1b15c7a369c96db81f6ae2e95ce1d459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for bluesky-adaptive 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bluesky_adaptive-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page