Embed interactive quizzes from sborniktestov.ru into any website. Generates embed HTML with 20+ customizable parameters.
Project description
sborniktestov-embed
Embed interactive quizzes from sborniktestov.ru into any website. 15,000+ quizzes: personality tests, knowledge checks, professional assessments, and more.
Python library + CLI tool. Generates the HTML that the embed loader expects.
Install
pip install sborniktestov-embed
Python API
from sborniktestov_embed import Embed
# Basic embed
e = Embed(12345)
print(e.render())
# Customized
e = Embed(12345,
comments="1",
header="0",
color_accent="4CAF50",
color_bg="f5f5f5",
radius="12",
font_question="18",
)
print(e.render())
Output
<div class="st-embed" data-quiz-id="12345" data-comments="1" data-color-accent="4CAF50">
<a href="https://sborniktestov.ru">Sbornik Testov</a>
</div>
<script async src="https://sborniktestov.ru/embed/loader.js"></script>
Methods
e.render() # Full HTML: div + script
e.div() # Container div only (when loader.js is already on page)
e.script() # Script tag only
e.iframe_url() # Direct iframe URL (bypassing loader.js)
CLI
# Full embed code
sborniktestov-embed 12345
# Just the iframe URL
sborniktestov-embed 12345 --url-only
# Customized
sborniktestov-embed 12345 --comments --no-header --color-accent 4CAF50 --radius 12
# Div only (when you have multiple quizzes and one script tag)
sborniktestov-embed 12345 --div-only
Available Options
Display: comments, related, header, desc, stats (all 0/1)
Layout: width, min_height, max_width
Colors (hex, no #): color_accent, color_bg, color_title, color_text, color_btn_text, color_selected_bg, color_progress_bg, color_progress_fill, color_border, color_border_selected, color_btn_prev, color_hover
Typography (px): font_title, font_desc, font_stats, font_question, font_answer, radius, padding
CMS Plugins
- WordPress —
[sborniktestov id="12345"] - Joomla —
{sborniktestov id=12345} - Moodle — auto-embed filter
- Drupal — module
Visual Configurator
Use the embed configurator to customize with a live preview.
License
MIT — sborniktestov.ru
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sborniktestov_embed-1.0.0.tar.gz.
File metadata
- Download URL: sborniktestov_embed-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdbe1b9c99613a6b953ec8a95d683b8a4a1647312ee04e410f4993eb238c0358
|
|
| MD5 |
6680d5205c787f0ba8135418c1355b68
|
|
| BLAKE2b-256 |
d7eff8117966e965d645b5b4d0eb881e67a91d7466f9df7db44f560948f5ce81
|
Provenance
The following attestation bundles were made for sborniktestov_embed-1.0.0.tar.gz:
Publisher:
publish.yml on kandebobr/sborniktestov-embed-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sborniktestov_embed-1.0.0.tar.gz -
Subject digest:
fdbe1b9c99613a6b953ec8a95d683b8a4a1647312ee04e410f4993eb238c0358 - Sigstore transparency entry: 1154356918
- Sigstore integration time:
-
Permalink:
kandebobr/sborniktestov-embed-python@3657511e06e269a6e0c00d86eef4fb80d9772806 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kandebobr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3657511e06e269a6e0c00d86eef4fb80d9772806 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sborniktestov_embed-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sborniktestov_embed-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6547290e966828d3a88edbde74d01654ec09e1a82937eaabcf42eedff57cf1c
|
|
| MD5 |
751e8a24259bbf74d53f74694b0b3660
|
|
| BLAKE2b-256 |
77bdb27d2bb17c7919391fcd256bcaa8172faaeaf6f4ff166047b852edbb4c96
|
Provenance
The following attestation bundles were made for sborniktestov_embed-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on kandebobr/sborniktestov-embed-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sborniktestov_embed-1.0.0-py3-none-any.whl -
Subject digest:
a6547290e966828d3a88edbde74d01654ec09e1a82937eaabcf42eedff57cf1c - Sigstore transparency entry: 1154356921
- Sigstore integration time:
-
Permalink:
kandebobr/sborniktestov-embed-python@3657511e06e269a6e0c00d86eef4fb80d9772806 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kandebobr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3657511e06e269a6e0c00d86eef4fb80d9772806 -
Trigger Event:
workflow_dispatch
-
Statement type: