This release is a pre-release and may not be stable for production use.
DiceBear Core (Python)
Python implementation of the DiceBear avatar library. Generates deterministic SVG avatars from style definitions and a seed string.
DiceBear is available for multiple languages. All implementations share the same PRNG and rendering pipeline, producing identical SVG output for the same seed, style, and options, regardless of the language used.
Installation
pip install dicebear-core
Requires Python 3.10 or newer.
Usage
import json
from importlib.resources import files
from dicebear import Avatar, Style
# From a style definition (here from the dicebear-styles package)
definition = json.loads(
files("dicebear_styles").joinpath("lorelei.json").read_text("utf-8")
)
avatar = Avatar(Style(definition), {"seed": "John", "size": 128})
avatar.to_string() # SVG string
avatar.to_data_uri() # data:image/svg+xml;charset=utf-8,...
Reusing the Style instance
style = Style(definition)
# Create multiple avatars from the same style
avatar1 = Avatar(style, {"seed": "Alice"})
avatar2 = Avatar(style, {"seed": "Bob"})
Sponsors
Advertisement: Many thanks to our sponsors who provide us with free or discounted products.
Metadata
Release files for dicebear-core 11.0.0rc3
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 |
|---|---|---|---|---|
| dicebear_core-11.0.0rc3.tar.gz | 59.4 kB | With provenance | Details for dicebear_core-11.0.0rc3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dicebear_core-11.0.0rc3-py3-none-any.whl | Python 3 | none | any | Details for dicebear_core-11.0.0rc3-py3-none-any.whl |
Total release size: 109.9 kB
Release files / dicebear_core-11.0.0rc3.tar.gz
| Download URL | dicebear_core-11.0.0rc3.tar.gz |
|---|---|
| Size | 59.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9a7b4a56d29897dcdb184db79a03f0e68610bf3901cc44f46ee4d4a3ea02307
|
|
BLAKE2b-256 checksum How to use checksums |
cf2db9104345aaa6b91cec85ae1dab18114e44bd83f1edb5ea75356d181c3507
|
| 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 Nov 15, 2026.
Transparency logRelease files / dicebear_core-11.0.0rc3-py3-none-any.whl
| Download URL | dicebear_core-11.0.0rc3-py3-none-any.whl |
|---|---|
| Size | 50.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74889eb357355070b0734c9307c98cf5121153b6f561a13bf0a34fe98ef15e0c
|
|
BLAKE2b-256 checksum How to use checksums |
971ee62eda66b258d7be0550d3d30c3191454f6e6673200da9e0ea5911146f8c
|
| 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 Nov 15, 2026.
Transparency logSecurity for dicebear-core 11.0.0rc3
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
Both files in this release have been uploaded with provenance metadata.
Attestation for dicebear_core-11.0.0rc3.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 Nov 15, 2026.
Transparency logA 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.