Skip to main content

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

Visual Configurator

Use the embed configurator to customize with a live preview.

License

MIT — sborniktestov.ru

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sborniktestov_embed-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sborniktestov_embed-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for sborniktestov_embed-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fdbe1b9c99613a6b953ec8a95d683b8a4a1647312ee04e410f4993eb238c0358
MD5 6680d5205c787f0ba8135418c1355b68
BLAKE2b-256 d7eff8117966e965d645b5b4d0eb881e67a91d7466f9df7db44f560948f5ce81

See more details on using hashes here.

Provenance

The following attestation bundles were made for sborniktestov_embed-1.0.0.tar.gz:

Publisher: publish.yml on kandebobr/sborniktestov-embed-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sborniktestov_embed-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sborniktestov_embed-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6547290e966828d3a88edbde74d01654ec09e1a82937eaabcf42eedff57cf1c
MD5 751e8a24259bbf74d53f74694b0b3660
BLAKE2b-256 77bdb27d2bb17c7919391fcd256bcaa8172faaeaf6f4ff166047b852edbb4c96

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page