scverse-backends
⚠️ 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)
| File | Size | Uploaded | |
|---|---|---|---|
| scverse_backends-0.0.3.tar.gz | 44.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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