Skip to main content

PyPI version License Documentation Status

Nerd Fonts Logo

About this Project

This project is a Python Module that provides a set of icons from the Nerd Fonts project for the usage with Manim. Manim can use any font in principle. Nerd Fonts and their icons can be used in Manim as well! This project allows you to create Nerd Font icons in Manim by referencing the icon name or unicode. This might be more convenient than copy pasting items as strings into your code. This package also takes care of providing a font, so you even don't need to have a nerd font installed on your system.

Installation

Install the package with pip:

   pip install manim-nerdfont-icons

Minimal Example

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_nerdfont_icons.icons import nerdfont_icon


class NerdfontIconUnicodeExample(m.Scene):

    def construct(self):
        # Set the background color
        self.camera.background_color = "#ece6e2"

        icon = nerdfont_icon("language-python", color=m.BLUE)

        self.add(icon)


if __name__ == '__main__':
    import os
    from pathlib import Path

    FLAGS = "-pqm"
    SCENE = "NerdfontIconUnicodeExample"

    file_path = Path(__file__).resolve()
    os.system(f"manim {Path(__file__).resolve()} {SCENE} {FLAGS}")

This should yield a Scene that looks like so:

Example Output Screenshot

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.

Metadata

Release files for manim-nerdfont-icons 1.0.2

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

Source distribution (sdist)

Source distribution for manim-nerdfont-icons 1.0.2
File Size Uploaded Provenance Actions
manim_nerdfont_icons-1.0.2.tar.gz 1.4 MB Without provenance Details for manim_nerdfont_icons-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for manim-nerdfont-icons 1.0.2
File Interpreter ABI Platform Actions
manim_nerdfont_icons-1.0.2-py3-none-any.whl Python 3 none any Details for manim_nerdfont_icons-1.0.2-py3-none-any.whl

Total release size: 2.9 MB

Release files / manim_nerdfont_icons-1.0.2.tar.gz

Download URL manim_nerdfont_icons-1.0.2.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
9706a9089942a59bf02818be732a3d4baf34fb98f1a45169415d7f32e7a26429
BLAKE2b-256 checksum
How to use checksums
8b663c755ee602e72070328885433b97688aabad9b15c194f0ad58642dfe2dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / manim_nerdfont_icons-1.0.2-py3-none-any.whl

Download URL manim_nerdfont_icons-1.0.2-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
070a02c0b5a75083a480026194e4607aaaebd1f0985c24e48f814f875bc35ca3
BLAKE2b-256 checksum
How to use checksums
f02686388004c8864b8de9705b64057ea2060caabb9055a87f3d688ae0ce2087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Security for manim-nerdfont-icons 1.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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