Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

DiceBear Core (Python)

stars license

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.

Playground | Documentation

Installation

pip install dicebear-core dicebear-styles

dicebear-styles holds the definitions of the avatar styles. Leave it out when you bring your own definitions.

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.

bunny.net

Metadata

Release files for dicebear-core 11.1.0rc2

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

Source distribution (sdist)

Source distribution for dicebear-core 11.1.0rc2
File Size Uploaded Provenance Actions
dicebear_core-11.1.0rc2.tar.gz 67.5 kB With provenance Details for dicebear_core-11.1.0rc2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dicebear-core 11.1.0rc2
File Interpreter ABI Platform Actions
dicebear_core-11.1.0rc2-py3-none-any.whl Python 3 none any Details for dicebear_core-11.1.0rc2-py3-none-any.whl

Total release size: 124.4 kB

Release files / dicebear_core-11.1.0rc2.tar.gz

Download URL dicebear_core-11.1.0rc2.tar.gz
Size 67.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad1bcdfc866504ea571b2dc7a2b1cd0169651496104597897bffa7dade2b11cd
BLAKE2b-256 checksum
How to use checksums
eb93c384b299c2e1e1b786b9dba886f8a607515610de4e27de3210ae93af9f8a
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 Dec 1, 2026.

Transparency log

Release files / dicebear_core-11.1.0rc2-py3-none-any.whl

Download URL dicebear_core-11.1.0rc2-py3-none-any.whl
Size 56.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40f3cad3b1ab9cec2bc403584e4564440819ae86fbd4e00abcc7513a7267d7c6
BLAKE2b-256 checksum
How to use checksums
3dd89c8c0e97ae8e83633e4e059ed22d679fdd098a05c1c6e3abcc36efcacacf
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 Dec 1, 2026.

Transparency log

Security for dicebear-core 11.1.0rc2

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.

Select from 2 files

Attestation for dicebear_core-11.1.0rc2.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 Dec 1, 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