
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Video animations with Manim to explain technical concepts related to computer science.
CS-Manim is a Python library that provides reusable objects and styles to create educational animations with Manim, specially designed to explain computer science and programming concepts.
pip install cs-manim
from manim import *
from cs_manim import Computer, Server, MobilePhone
from cs_manim import CLIENT_COLOR, SERVER_COLOR, FONT_NAME
class MyScene(Scene):
def construct(self):
# Create objects for your animations
computer = Computer("PC Client")
server = Server("API Server")
mobile = MobilePhone("Smartphone")
# Position and animate
computer.shift(LEFT * 3)
server.shift(RIGHT * 3)
self.play(Create(computer))
self.play(Create(server))
self.play(Create(api_call))
computer = PortableComputer(name="My PC", color=CLIENT_COLOR)
server = Server(name="My Server", color=SERVER_COLOR)
mobile = MobilePhone(name="My Phone", color=PURPLE)
android = AndroidLogo(color=GREEN)
apple = AppleLogo(color=WHITE)
database = Database(name="My Database", color=BLUE)
cloud = Cloud(name="My Cloud", color=GRAY)
monitor = Monitor(name="My Monitor", color=BLACK)
test_tube = TestTube(color=RED)
# Clone the repository
git clone https://github.com/PierreOlivierBrillant/cs-manim.git
cd cs-manim
# Create a virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/Mac
# or .venv\Scripts\activate # Windows
# Install in development mode
pip install -e .[dev]
# Run tests
pytest
# With coverage
pytest --cov=cs_manim
# Format the code
black cs_manim tests examples
# Check style
ruff cs_manim tests examples
# Check types
mypy cs_manim
# Build the package
python -m build
# Check the package
twine check dist/*
pyproject.toml
git tag v0.1.0
git push origin v0.1.0
Publishing to PyPI happens automatically via GitHub Actions when creating a release.
# Build the package
python -m build
# Publish to PyPI
twine upload dist/*
See the examples/
folder for usage examples.
See CONTRIBUTING.md for contribution instructions.
MIT License - see the LICENSE file for details.
Pierre-Olivier Brillant - pierreolivierbrillant@gmail.com
FAQs
Video animations with Manim to explain technical concepts related to computer science
We found that cs-manim demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.