Skip to main content

This package contains the utilities needed to “bake” Open Badges metadata into PNG or SVG image files or extract (‘unbake’) metada from such images.

This Open Badges Bakery is produced by Concentric Sky. https://concentricsky.com

Installation

pip:

pip install openbadges_bakery

Command Line Interface

There is a command line interface for baking and unbaking assertion data.

To bake a badge, identify the existing BadgeClass image with the input_filename and desired baked Assertion image filename to be created as well as the data to be baked into the image.

bakery bake [input_filename] [output_filename] --data='{"data": "data"}'

To extract Open Badges data from an image, use the unbake command.

bakery unbake [input_filename]

Output_filename is optional if you want the baked data to be written to a file.

bakery unbake [input_filename] [output_filename]

Python Interface

The bake and unbake functions are available when installed as a python module

To bake a badge, pass in an open file as input_file and the string of the badge data you wish to bake into the image. Result is an open TemporaryFile that contains the data.

from openbadges_bakery import bake
output_file = bake(input_file, assertion_json_string)

To unbake a badge, pass in an open file as input_file:

from openbadges_bakery import unbake
output_file = unbake(input_file)

Metadata

Release files for openbadges-bakery 2.0.0

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

Source distribution (sdist)

Source distribution for openbadges-bakery 2.0.0
File Size Uploaded
openbadges_bakery-2.0.0.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openbadges-bakery 2.0.0
File Interpreter ABI Platform
openbadges_bakery-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / openbadges_bakery-2.0.0.tar.gz

Download URL openbadges_bakery-2.0.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
57c81d28659a23046025abea4977bb95912fb15c8c55f04dcd11cf1807b16df7
BLAKE2b-256 checksum
How to use checksums
205170b0023b8bc0e145ac7d29b8c5fa6e67b71bf865e82bb3fe455fad5f7847
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.7

Release files / openbadges_bakery-2.0.0-py3-none-any.whl

Download URL openbadges_bakery-2.0.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
733afe24c00887a7c0b8ea56cd0b40ccba2cf9f26a1707f1f32f1575e6408c54
BLAKE2b-256 checksum
How to use checksums
53b13667343e05ed226abf47c72039b7ec41598090292ea6eafcc7acfc3bbfb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

3 release files

1.2.2

2 release files

1.1.0

2 release files

1.0.1

2 release files

0.4

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.4

1 release file

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