A Manim plugin for creating QR-codes.
Project description
About this Project
This poject contains a Python Module that provides allows theming of Manim projects with QR Codes.
Installation
Install the package with pip:
pip install manim-qr-codes
Minimal Example
NOTE: Please make sure you have manim installed and running on your machine
Below is a minimal example of how to use the Module.
import manim as m
from manim_qr_codes.qr import qr_code
class MyQrCodeScene(m.Scene):
def construct(self):
qr_code_without_icon = qr_code("https://fishshell.com")
qr_code_with_icon = qr_code(
payload="https://fishshell.com",
icon='terminal',
icon_size=6
)
qr_code_group = m.VGroup(
qr_code_without_icon,
qr_code_with_icon).arrange(m.RIGHT, buff=0.75)
label = m.Text("https://fishshell.com")
label.to_edge(m.UP, buff=0.75)
self.add(qr_code_group, label)
if __name__ == '__main__':
import os
from pathlib import Path
FLAGS = "-pqm -s"
SCENE = "MyQrCodeScene"
file_path = Path(__file__).resolve()
os.system(f"manim {Path(__file__).resolve()} {SCENE} {FLAGS}")
This should yield a Scene that looks like so:
Documentation
This project uses sphinx for generating the documentation.
It also uses a lot of sphinx extensions to make the documentation more readable and interactive.
For example the extension myst-parser is used to enable markdown support in the documentation (instead of the usual .rst-files).
It also uses the sphinx-autobuild extension to automatically rebuild the documentation when changes are made.
By running the following command, the documentation will be automatically built and served, when changes are made (make sure to run this command in the root directory of the project):
sphinx-autobuild ./docs/source/ ./docs/build/html/
If sphinx extensions were added the requirements_dev.txt file needs to be updated.
These are the requirements, that readthedocs uses to build the documentation.
The file can be updated using this command:
poetry export -f requirements.txt --output requirements.txt --with dev
This project features most of the extensions featured in this Tutorial: Document Your Scientific Project With Markdown, Sphinx, and Read the Docs | PyData Global 2021.
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 manim_qr_codes-0.1.0.tar.gz.
File metadata
- Download URL: manim_qr_codes-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50c90927d82b881f76c1c452d0b2f720837965a3c090f37b3459d7e2e7fb05fa
|
|
| MD5 |
6c752a1fb915fa1f0645529ee76923de
|
|
| BLAKE2b-256 |
3c65d31431d9de1338e6f7dcade1bc58aa6e552890f8a5ce4c4ac90e20627c6d
|
File details
Details for the file manim_qr_codes-0.1.0-py3-none-any.whl.
File metadata
- Download URL: manim_qr_codes-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d43370da18041a0d61008be6b59bdece2e088f82d8fb43265b50240addb27683
|
|
| MD5 |
c26e3fff3ddb20e9154e33ffe427d889
|
|
| BLAKE2b-256 |
8eb0abf5554d2acf48200e578c65358752358dce4a836ab61fa91ce899aea38a
|