plotting_backends
plotting dispatch backends
Installation
pip install plotting_backends
Examples
functools.singledispatch
This shows how to use plotting_backends with functools.singledispatch.
import plotting_backends
from functools import singledispatch
@singledispatch
def plotting_func(
backend: type[plotting_backends.AbstractPlottingBackend], x: Any, y: Any
) -> None: ...
@plotting_func.register
def matplotlib(
backend: type[plotting_backends.MatplotlibBackend], x: Any, y: Any
) -> None: ...
plum (multiple dispatch)
This example shows how to use plotting_backends in conjunction with plum, a
multiple dispatch library.
import plotting_backends
from plum import dispatch
@dispatch.abstract
def plotting_func(
backend: type[plotting_backends.AbstractPlottingBackend], x: Any, y: Any
) -> None: ...
@dispatch
def plotting_func(
backend: type[plotting_backends.MatplotlibBackend], x: Any, y: Any
) -> None: ...
Development
We welcome contributions!
Metadata
Release files for plotting-backends 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plotting_backends-0.1.0.tar.gz | 8.4 kB | Without provenance | Details for plotting_backends-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plotting_backends-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for plotting_backends-0.1.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / plotting_backends-0.1.0.tar.gz
| Download URL | plotting_backends-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5db1afcbc19e58bfa2ee5b42150bce656edffdcb520cee4b90f26d6b46070d52
|
|
BLAKE2b-256 checksum How to use checksums |
518195bbbd99928c92e8d52437a54e5d4c491dac07fe23dc78d958ab2b9b8dbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / plotting_backends-0.1.0-py3-none-any.whl
| Download URL | plotting_backends-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d9ffd7fe678ba6b10aa6e52e1d73280ef2f7b484485687c01a83e7c53686b9f
|
|
BLAKE2b-256 checksum How to use checksums |
5f0eeaedbcc4a14b38d9a530045a121013b80dc8b2f2eee8d9c490492cce1a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for plotting-backends 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.