Skip to main content

scverse-backends

pre-commit.ci status codecov Documentation Status

⚠️ Under active development. APIs may shift.

The default plugin and dispatch mechanism for scverse. Host libraries mark public functions with @backend_dispatch or replaceable classes with @backend_class. GPU, distributed, JAX, PyTorch, and other backends plug in through Python entry points and are discovered automatically.

Want to add a PyTorch backend, a JAX backend, your own custom one? You don't need a PR against the host. Ship a package that exposes a module or object with name, aliases, and host-named functions or classes, register it as an entry point, and users install it next to the host.

Install

pip install scverse-backends

At a glance

import example_host as eh

# One function call
eh.some_function(data, backend="accelerated")

# A complete backend-provided class
model = eh.SomeModel(data, backend="accelerated")

# A scoped default for functions and classes
with eh.settings.use_backend("accelerated"):
    eh.some_function(data)
    model = eh.SomeModel(data)

Status

  • Built from backend-dispatch prototypes in scverse host integrations.
  • Concrete backend aliases belong in host integrations, not in this infrastructure package.
  • Goal: host libraries depend on this package and stop re-rolling their own dispatch.

Docs

Full docs at scverse-backends.readthedocs.io.

Metadata

Release files for scverse-backends 0.0.3

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

Source distribution (sdist)

Source distribution for scverse-backends 0.0.3
File Size Uploaded
scverse_backends-0.0.3.tar.gz 44.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scverse-backends 0.0.3
File Interpreter ABI Platform
scverse_backends-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 67.5 kB

Release files / scverse_backends-0.0.3.tar.gz

Download URL scverse_backends-0.0.3.tar.gz
Size 44.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3ca44cd3e47dd981f54b17639352dba69282b3fe03ed22715d5186bd2c90bc7e
BLAKE2b-256 checksum
How to use checksums
211e21b242f5df000c760f5f88d5ac96166d5e675d6fe2ab6b765d6268c40417
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 23, 2026.

Transparency log

Release files / scverse_backends-0.0.3-py3-none-any.whl

Download URL scverse_backends-0.0.3-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8818f7168ef7b0de78be11c9fc69a278e31b643330cccdc92465aab693272230
BLAKE2b-256 checksum
How to use checksums
03a396f7679adbfad48f7a14dcc9be0e205e950f444d5fa00b04e49eb23c9ba1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

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