repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/cloud_events.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.958447 | import base64
import os
from datetime import datetime, timezone
from pathlib import Path
import anyio
from bubus import BaseEvent
from pydantic import Field, field_validator
from uuid_extensions import uuid7str
MAX_STRING_LENGTH = 500000 # 100K chars ~ 25k tokens should be enough
MAX_URL_LENGTH = 100000
MAX_TASK_LEN... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/page.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.959628 | """Page class for page-level operations."""
from typing import TYPE_CHECKING, TypeVar
from pydantic import BaseModel
from browser_use import logger
from browser_use.actor.utils import get_key_info
from browser_use.dom.serializer.serializer import DOMTreeSerializer
from browser_use.dom.service import DomService
from ... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/element.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.961139 | """Element class for element operations."""
import asyncio
from typing import TYPE_CHECKING, Literal, Union
from cdp_use.client import logger
from typing_extensions import TypedDict
if TYPE_CHECKING:
from cdp_use.cdp.dom.commands import (
DescribeNodeParameters,
FocusParameters,
GetAttributesParameters,
Get... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/message_manager/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.719800 | from __future__ import annotations
import json
import logging
from pathlib import Path
from typing import Any
import anyio
from browser_use.llm.messages import BaseMessage
logger = logging.getLogger(__name__)
async def save_conversation(
input_messages: list[BaseMessage],
response: Any,
target: str | Path,
en... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/gif.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.749386 | from __future__ import annotations
import base64
import io
import logging
import os
import platform
from typing import TYPE_CHECKING
from browser_use.agent.views import AgentHistoryList
from browser_use.browser.views import PLACEHOLDER_4PX_SCREENSHOT
from browser_use.config import CONFIG
if TYPE_CHECKING:
from PIL ... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.755710 | from typing import TYPE_CHECKING
# Type stubs for lazy imports
if TYPE_CHECKING:
from .profile import BrowserProfile, ProxySettings
from .session import BrowserSession
# Lazy imports mapping for heavy browser components
_LAZY_IMPORTS = {
'ProxySettings': ('.profile', 'ProxySettings'),
'BrowserProfile': ('.profil... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/message_manager/views.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.761862 | from __future__ import annotations
from typing import TYPE_CHECKING, Any
from pydantic import BaseModel, ConfigDict, Field
from browser_use.llm.messages import (
BaseMessage,
)
if TYPE_CHECKING:
pass
class HistoryItem(BaseModel):
"""Represents a single agent history item with its data and string representation... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/prompts.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.763459 | import importlib.resources
from datetime import datetime
from typing import TYPE_CHECKING, Literal, Optional
from browser_use.dom.views import NodeType, SimplifiedNode
from browser_use.llm.messages import ContentPartImageParam, ContentPartTextParam, ImageURL, SystemMessage, UserMessage
from browser_use.observability i... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/message_manager/service.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.770435 | from __future__ import annotations
import logging
from typing import Literal
from browser_use.agent.message_manager.views import (
HistoryItem,
)
from browser_use.agent.prompts import AgentMessagePrompt
from browser_use.agent.views import (
ActionResult,
AgentOutput,
AgentStepInfo,
MessageCompactionSettings,
Me... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/variable_detector.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.773881 | """Detect variables in agent history for reuse"""
import re
from browser_use.agent.views import AgentHistoryList, DetectedVariable
from browser_use.dom.views import DOMInteractedElement
def detect_variables_in_history(history: AgentHistoryList) -> dict[str, DetectedVariable]:
"""
Analyze agent history and detect ... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/judge.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.775349 | """Judge system for evaluating browser-use agent execution traces."""
import base64
import logging
from datetime import datetime, timezone
from pathlib import Path
from typing import Literal
from browser_use.llm.messages import (
BaseMessage,
ContentPartImageParam,
ContentPartTextParam,
ImageURL,
SystemMessage,
... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/agent/views.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:20.806921 | from __future__ import annotations
import hashlib
import json
import logging
import re
import traceback
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Generic, Literal
from pydantic import BaseModel, ConfigDict, Field, ValidationError, create_model, model_validator
from typing_exte... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/_cdp_timeout.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:21.243850 | """Per-CDP-request timeout wrapper around cdp_use.CDPClient.
cdp_use's `send_raw()` awaits a future that only resolves when the browser
sends a matching response. If the server goes silent mid-session (observed
failure mode against remote cloud browsers: WebSocket stays "alive" at the
TCP/keepalive layer while the bro... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/cloud/cloud.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:21.311542 | """Cloud browser service integration for browser-use.
This module provides integration with the browser-use cloud browser service.
When cloud_browser=True, it automatically creates a cloud browser instance
and returns the CDP URL for connection.
"""
import logging
import os
import httpx
from browser_use.browser.clo... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/cloud/views.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.147174 | from typing import Literal
from uuid import UUID
from pydantic import BaseModel, ConfigDict, Field
ProxyCountryCode = (
Literal[
'us', # United States
'uk', # United Kingdom
'fr', # France
'it', # Italy
'jp', # Japan
'au', # Australia
'de', # Germany
'fi', # Finland
'ca', # Canada
'in', ... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/video_recorder.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.260124 | """Video Recording Service for Browser Use Sessions."""
import base64
import io
import logging
import math
from pathlib import Path
from typing import Optional
from browser_use.browser.profile import ViewportSize
try:
import imageio.v2 as iio # type: ignore[import-not-found]
import numpy as np # type: ignore[imp... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/views.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.264288 | from dataclasses import dataclass, field
from typing import Any
from bubus import BaseEvent
from cdp_use.cdp.target import TargetID
from pydantic import AliasChoices, BaseModel, ConfigDict, Field, field_serializer
from browser_use.dom.views import DOMInteractedElement, SerializedDOMState
# Known placeholder image da... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/python_highlights.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.373739 | """Python-based highlighting system for drawing bounding boxes on screenshots.
This module replaces JavaScript-based highlighting with fast Python image processing
to draw bounding boxes around interactive elements directly on screenshots.
"""
import asyncio
import base64
import io
import logging
import os
from PIL ... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/events.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.393883 | """Event definitions for browser communication."""
import inspect
import os
from typing import Any, Literal
from bubus import BaseEvent
from bubus.models import T_EventResultType
from cdp_use.cdp.target import TargetID
from pydantic import BaseModel, Field, field_validator
from browser_use.browser.views import Brows... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/session_manager.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.419416 | """Event-driven CDP session management.
Manages CDP sessions by listening to Target.attachedToTarget and Target.detachedFromTarget
events, ensuring the session pool always reflects the current browser state.
"""
import asyncio
from typing import TYPE_CHECKING
from cdp_use.cdp.target import AttachedToTargetEvent, Det... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/profile.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.628319 | import os
import sys
import tempfile
from collections.abc import Iterable
from enum import Enum
from functools import cache
from pathlib import Path
from typing import Annotated, Any, Literal, Self
from urllib.parse import urlparse
from pydantic import AfterValidator, AliasChoices, BaseModel, ConfigDict, Field, field_... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/demo_mode.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.629861 | """Demo mode helper for injecting and updating the in-browser log panel."""
from __future__ import annotations
import asyncio
import json
import logging
from datetime import datetime, timezone
from typing import Any
from browser_use.browser.session import BrowserSession
# Embedded JavaScript for demo panel (injecte... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/aboutblank_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.712601 | """About:blank watchdog for managing about:blank tabs with DVD screensaver."""
from typing import TYPE_CHECKING, ClassVar
from bubus import BaseEvent
from cdp_use.cdp.target import TargetID
from pydantic import PrivateAttr
from browser_use.browser.events import (
AboutBlankDVDScreensaverShownEvent,
BrowserStopEven... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/captcha_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.818182 | """Captcha solver watchdog — monitors captcha events from the browser proxy.
Listens for BrowserUse.captchaSolverStarted/Finished CDP events and exposes a
wait_if_captcha_solving() method that the agent step loop uses to block until
a captcha is resolved (with a configurable timeout).
NOTE: Only a single captcha solv... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/crash_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.824953 | """Browser watchdog for monitoring crashes and network timeouts using CDP."""
import asyncio
import time
from typing import TYPE_CHECKING, ClassVar
import psutil
from bubus import BaseEvent
from cdp_use.cdp.target import SessionID, TargetID
from cdp_use.cdp.target.events import TargetCrashedEvent
from pydantic import... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/dom_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.934026 | """DOM watchdog for browser DOM tree management using CDP."""
import asyncio
import time
from typing import TYPE_CHECKING
from browser_use.browser.events import (
BrowserErrorEvent,
BrowserStateRequestEvent,
ScreenshotEvent,
TabCreatedEvent,
)
from browser_use.browser.watchdog_base import BaseWatchdog
from browse... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/downloads_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:22.988483 | """Downloads watchdog for monitoring and handling file downloads."""
import asyncio
import json
import os
import tempfile
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar
from urllib.parse import urlparse
import anyio
from bubus import BaseEvent
from cdp_use.cdp.browser import DownloadProgress... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/har_recording_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.005168 | """HAR Recording Watchdog for Browser-Use sessions.
Captures HTTPS network activity via CDP Network domain and writes a HAR 1.2
file on browser shutdown. Respects `record_har_content` (omit/embed/attach)
and `record_har_mode` (full/minimal).
"""
from __future__ import annotations
import base64
import hashlib
import ... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/local_browser_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.198094 | """Local browser watchdog for managing browser subprocess lifecycle."""
from __future__ import annotations
import asyncio
import os
import shutil
import tempfile
from pathlib import Path
from typing import TYPE_CHECKING, Any, ClassVar
import psutil
from bubus import BaseEvent
from pydantic import PrivateAttr
from b... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/permissions_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.232092 | """Permissions watchdog for granting browser permissions on connection."""
from typing import TYPE_CHECKING, ClassVar
from bubus import BaseEvent
from browser_use.browser.events import BrowserConnectedEvent
from browser_use.browser.watchdog_base import BaseWatchdog
if TYPE_CHECKING:
pass
class PermissionsWatchdo... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/popups_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.310517 | """Watchdog for handling JavaScript dialogs (alert, confirm, prompt) automatically."""
import asyncio
from typing import ClassVar
from bubus import BaseEvent
from pydantic import PrivateAttr
from browser_use.browser.events import TabCreatedEvent
from browser_use.browser.watchdog_base import BaseWatchdog
class Popu... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/screenshot_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.395499 | """Screenshot watchdog for handling screenshot requests using CDP."""
from typing import TYPE_CHECKING, Any, ClassVar
from bubus import BaseEvent
from cdp_use.cdp.page import CaptureScreenshotParameters
from browser_use.browser.events import ScreenshotEvent
from browser_use.browser.views import BrowserError
from bro... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/recording_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.411348 | """Recording Watchdog for Browser Use Sessions."""
import asyncio
from pathlib import Path
from typing import Any, ClassVar
from bubus import BaseEvent
from cdp_use.cdp.page.events import ScreencastFrameEvent
from pydantic import PrivateAttr
from uuid_extensions import uuid7str
from browser_use.browser.events import... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/storage_state_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.554278 | """Storage state watchdog for managing browser cookies and storage persistence."""
import asyncio
import json
import os
from pathlib import Path
from typing import Any, ClassVar
from bubus import BaseEvent
from cdp_use.cdp.network import Cookie
from pydantic import Field, PrivateAttr
from browser_use.browser.events ... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdogs/security_watchdog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.555570 | """Security watchdog for enforcing URL access policies."""
from typing import TYPE_CHECKING, ClassVar
from bubus import BaseEvent
from browser_use.browser.events import (
BrowserErrorEvent,
NavigateToUrlEvent,
NavigationCompleteEvent,
TabCreatedEvent,
)
from browser_use.browser.watchdog_base import BaseWatchdog
... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.628616 | # pyright: reportMissingImports=false
# Check for MCP mode early to prevent logging initialization
import sys
if '--mcp' in sys.argv:
import logging
import os
os.environ['BROWSER_USE_LOGGING_LEVEL'] = 'critical'
os.environ['BROWSER_USE_SETUP_LOGGING'] = 'false'
logging.disable(logging.CRITICAL)
# Special case:... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.799856 | """Configuration system for browser-use with automatic migration support."""
import json
import logging
import os
from datetime import datetime
from functools import cache
from pathlib import Path
from typing import Any
from uuid import uuid4
import psutil
from pydantic import BaseModel, ConfigDict, Field
from pydant... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/dom/enhanced_snapshot.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.932225 | """
Enhanced snapshot processing for browser-use DOM tree extraction.
This module provides stateless functions for parsing Chrome DevTools Protocol (CDP) DOMSnapshot data
to extract visibility, clickability, cursor styles, and other layout information.
"""
from cdp_use.cdp.domsnapshot.commands import CaptureSnapshotR... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/dom/markdown_extractor.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:23.995932 | """
Shared markdown extraction utilities for browser content processing.
This module provides a unified interface for extracting clean markdown from browser content,
used by both the tools service and page actor.
"""
import re
from dataclasses import dataclass
from enum import Enum, auto
from typing import TYPE_CHECK... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/browser/watchdog_base.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:26.893039 | """Base watchdog class for browser monitoring components."""
import asyncio
import inspect
import time
from collections.abc import Iterable
from typing import Any, ClassVar
from bubus import BaseEvent, EventBus
from pydantic import BaseModel, ConfigDict, Field
from browser_use.browser.session import BrowserSession
... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | docs/example.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.842007 | from manimlib import *
class SquareToCircle(Scene):
def construct(self):
circle = Circle()
circle.set_fill(BLUE, opacity=0.5)
circle.set_stroke(BLUE_E, width=4)
square = Square()
self.play(ShowCreation(square))
self.wait()
self.play(ReplacementTransform(squa... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | docs/source/manim_example_ext.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.843139 | from docutils import nodes
from docutils.parsers.rst import directives, Directive
import jinja2
import os
class skip_manim_node(nodes.Admonition, nodes.Element):
pass
def visit(self, node, name=""):
self.visit_admonition(node, name)
def depart(self, node):
self.depart_admonition(node)
class ManimEx... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | logo/logo.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.863276 | from manimlib.imports import *
NEW_BLUE = "#68a8e1"
class Thumbnail(GraphScene):
CONFIG = {
"y_max": 8,
"y_axis_height": 5,
}
def construct(self):
self.show_function_graph()
def show_function_graph(self):
self.setup_axes(animate=False)
def func(x):
... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/animation.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.896504 | from __future__ import annotations
from copy import deepcopy
from manimlib.mobject.mobject import _AnimationBuilder
from manimlib.mobject.mobject import Mobject
from manimlib.utils.iterables import remove_list_redundancies
from manimlib.utils.rate_functions import smooth
from manimlib.utils.simple_functions import cl... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | docs/source/conf.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.897809 | import os
import sys
sys.path.insert(0, os.path.abspath("."))
sys.path.insert(0, os.path.abspath('../../'))
project = 'manim'
copyright = '- This document has been placed in the public domain.'
author = 'TonyCrane'
release = ''
extensions = [
'sphinx.ext.todo',
'sphinx.ext.githubpages',
'sphinx.ext.math... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | example_scenes.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.898886 | from manimlib import *
import numpy as np
# To watch one of these scenes, run the following:
# manimgl example_scenes.py OpeningManimExample
# Use -s to skip to the end and just save the final frame
# Use -w to write the animation to a file
# Use -o to write it to a file and open it once done
# Use -n <number> to skip... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/composition.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.927945 | from __future__ import annotations
from manimlib.animation.animation import Animation
from manimlib.animation.animation import prepare_animation
from manimlib.mobject.mobject import _AnimationBuilder
from manimlib.mobject.mobject import Group
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.m... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/__main__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.929727 | #!/usr/bin/env python
from addict import Dict
from manimlib import __version__
from manimlib.config import manim_config
from manimlib.config import parse_cli
import manimlib.extract_scene
from manimlib.utils.cache import clear_cache
from manimlib.window import Window
from IPython.terminal.embed import KillEmbedded
... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:29.980358 | try:
from importlib.metadata import version, PackageNotFoundError
except ImportError: # For Python <3.8 fallback
from importlib_metadata import version, PackageNotFoundError # type: ignore
try:
__version__ = version("manimgl")
except PackageNotFoundError:
__version__ = "unknown"
from typing import ... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/creation.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.413517 | from __future__ import annotations
from abc import ABC, abstractmethod
import numpy as np
from manimlib.animation.animation import Animation
from manimlib.mobject.svg.string_mobject import StringMobject
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.utils.bezier import integer_interpola... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/fading.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.478532 | from __future__ import annotations
import numpy as np
from manimlib.animation.animation import Animation
from manimlib.animation.transform import Transform
from manimlib.constants import ORIGIN
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.mobject.mobject import Group
from manimlib.util... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/numbers.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.482129 | from __future__ import annotations
from manimlib.animation.animation import Animation
from manimlib.mobject.numbers import DecimalNumber
from manimlib.utils.bezier import interpolate
from manimlib.utils.simple_functions import clip
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Callable
... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/indication.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.483281 | from __future__ import annotations
import numpy as np
from manimlib.animation.animation import Animation
from manimlib.animation.composition import AnimationGroup
from manimlib.animation.composition import Succession
from manimlib.animation.creation import ShowCreation
from manimlib.animation.creation import ShowPart... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/rotation.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.548147 | from __future__ import annotations
from manimlib.animation.animation import Animation
from manimlib.constants import ORIGIN, OUT
from manimlib.constants import PI, TAU
from manimlib.utils.rate_functions import linear
from manimlib.utils.rate_functions import smooth
from typing import TYPE_CHECKING
if TYPE_CHECKING:
... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/transform_matching_parts.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.591046 | from __future__ import annotations
import itertools as it
from difflib import SequenceMatcher
from manimlib.animation.composition import AnimationGroup
from manimlib.animation.fading import FadeInFromPoint
from manimlib.animation.fading import FadeOutToPoint
from manimlib.animation.transform import Transform
from man... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/growing.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.608733 | from __future__ import annotations
from manimlib.animation.transform import Transform
from typing import TYPE_CHECKING
if TYPE_CHECKING:
import numpy as np
from manimlib.mobject.geometry import Arrow
from manimlib.mobject.mobject import Mobject
from manimlib.typing import ManimColor
class GrowFrom... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/specialized.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.660356 | from __future__ import annotations
from manimlib.animation.composition import LaggedStart
from manimlib.animation.transform import Restore
from manimlib.constants import BLACK, WHITE
from manimlib.mobject.geometry import Circle
from manimlib.mobject.types.vectorized_mobject import VGroup
from typing import TYPE_CHECK... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/movement.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.679051 | from __future__ import annotations
from manimlib.animation.animation import Animation
from manimlib.utils.rate_functions import linear
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Callable, Sequence
import numpy as np
from manimlib.mobject.mobject import Mobject
from maniml... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/transform.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:30.721140 | from __future__ import annotations
import inspect
import numpy as np
from manimlib.animation.animation import Animation
from manimlib.constants import DEG
from manimlib.constants import OUT
from manimlib.mobject.mobject import Group
from manimlib.mobject.mobject import Mobject
from manimlib.utils.paths import path_a... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/animation/update.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.002998 | from __future__ import annotations
from manimlib.animation.animation import Animation
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Callable
from manimlib.mobject.mobject import Mobject
class UpdateFromFunc(Animation):
"""
update_function of the form func(mobject), presumab... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/camera/camera.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.079353 | from __future__ import annotations
import moderngl
import numpy as np
import OpenGL.GL as gl
from PIL import Image
from manimlib.camera.camera_frame import CameraFrame
from manimlib.constants import BLACK
from manimlib.constants import DEFAULT_RESOLUTION
from manimlib.constants import FRAME_HEIGHT
from manimlib.const... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/camera/camera_frame.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.090347 | from __future__ import annotations
import math
import warnings
import numpy as np
from scipy.spatial.transform import Rotation
from manimlib.constants import DEG, RADIANS
from manimlib.constants import FRAME_SHAPE
from manimlib.constants import DOWN, LEFT, ORIGIN, OUT, RIGHT, UP
from manimlib.constants import PI
fro... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.169249 | from __future__ import annotations
import argparse
import colour
import importlib
import inspect
import os
import sys
import yaml
from pathlib import Path
from ast import literal_eval
from addict import Dict
from manimlib.logger import log
from manimlib.utils.dict_ops import merge_dicts_recursively
from typing impor... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/constants.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.180028 | from __future__ import annotations
import numpy as np
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import List
from manimlib.typing import ManimColor, Vect3
# See manimlib/default_config.yml
from manimlib.config import manim_config
DEFAULT_RESOLUTION: tuple[int, int] = manim_config.camera.... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/event_handler/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.191356 | from manimlib.event_handler.event_dispatcher import EventDispatcher
# This is supposed to be a Singleton
# i.e., during runtime there should be only one object of Event Dispatcher
EVENT_DISPATCHER = EventDispatcher()
|
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/event_handler/event_dispatcher.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.191903 | from __future__ import annotations
import numpy as np
from manimlib.event_handler.event_listner import EventListener
from manimlib.event_handler.event_type import EventType
class EventDispatcher(object):
def __init__(self):
self.event_listners: dict[
EventType, list[EventListener]
] ... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/event_handler/event_listner.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.246067 | from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Callable
from manimlib.event_handler.event_type import EventType
from manimlib.mobject.mobject import Mobject
class EventListener(object):
def __init__(
self,
mobject: Mobject,
... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/event_handler/event_type.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.299673 | from enum import Enum
class EventType(Enum):
MouseMotionEvent = 'mouse_motion_event'
MousePressEvent = 'mouse_press_event'
MouseReleaseEvent = 'mouse_release_event'
MouseDragEvent = 'mouse_drag_event'
MouseScrollEvent = 'mouse_scroll_event'
KeyPressEvent = 'key_press_event'
KeyReleaseEvent... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/logger.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.618538 | import logging
from rich.logging import RichHandler
__all__ = ["log"]
FORMAT = "%(message)s"
logging.basicConfig(
level=logging.WARNING, format=FORMAT, datefmt="[%X]", handlers=[RichHandler()]
)
log = logging.getLogger("manimgl")
|
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/boolean_ops.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.691799 | from __future__ import annotations
import numpy as np
import pathops
from manimlib.mobject.types.vectorized_mobject import VMobject
# Boolean operations between 2D mobjects
# Borrowed from https://github.com/ManimCommunity/manim/
def _convert_vmobject_to_skia_path(vmobject: VMobject) -> pathops.Path:
... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/extract_scene.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.692330 | from __future__ import annotations
import copy
import inspect
import sys
from manimlib.module_loader import ModuleLoader
from manimlib.config import manim_config
from manimlib.logger import log
from manimlib.scene.interactive_scene import InteractiveScene
from manimlib.scene.scene import Scene
from typing import TY... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/changing.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.769258 | from __future__ import annotations
import numpy as np
from manimlib.constants import BLUE_B, BLUE_D, BLUE_E, GREY_BROWN, DEFAULT_MOBJECT_COLOR
from manimlib.mobject.mobject import Mobject
from manimlib.mobject.types.vectorized_mobject import VGroup
from manimlib.mobject.types.vectorized_mobject import VMobject
from m... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/frame.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.770424 | from __future__ import annotations
from manimlib.constants import BLACK, GREY_E
from manimlib.constants import FRAME_HEIGHT
from manimlib.mobject.geometry import Rectangle
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from manimlib.typing import ManimColor
class ScreenRectangle(Rectangle):
def __init__... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/functions.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.777760 | from __future__ import annotations
from isosurfaces import plot_isoline
import numpy as np
from manimlib.constants import FRAME_X_RADIUS, FRAME_Y_RADIUS
from manimlib.constants import YELLOW
from manimlib.mobject.types.vectorized_mobject import VMobject
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ty... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/coordinate_systems.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.882305 | from __future__ import annotations
from abc import ABC, abstractmethod
import numbers
import numpy as np
import itertools as it
from manimlib.constants import BLACK, BLUE, BLUE_D, BLUE_E, GREEN, GREY_A, RED, DEFAULT_MOBJECT_COLOR
from manimlib.constants import DEG, PI
from manimlib.constants import DL, UL, DOWN, DR,... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/interactive.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.890226 | from __future__ import annotations
import numpy as np
from pyglet.window import key as PygletWindowKeys
from manimlib.constants import FRAME_HEIGHT, FRAME_WIDTH
from manimlib.constants import DOWN, LEFT, ORIGIN, RIGHT, UP
from manimlib.constants import MED_LARGE_BUFF, MED_SMALL_BUFF, SMALL_BUFF
from manimlib.constant... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/geometry.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:31.995659 | from __future__ import annotations
import math
import numpy as np
from manimlib.constants import DL, DOWN, DR, LEFT, ORIGIN, OUT, RIGHT, UL, UP, UR
from manimlib.constants import RED, BLACK, DEFAULT_MOBJECT_COLOR, DEFAULT_LIGHT_COLOR
from manimlib.constants import MED_SMALL_BUFF, SMALL_BUFF
from manimlib.constants i... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/matrix.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.210601 | from __future__ import annotations
import numpy as np
from manimlib.constants import DOWN, LEFT, RIGHT, ORIGIN
from manimlib.constants import DEG
from manimlib.mobject.numbers import DecimalNumber
from manimlib.mobject.svg.tex_mobject import Tex
from manimlib.mobject.types.vectorized_mobject import VGroup
from maniml... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/mobject_update_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.284941 | from __future__ import annotations
import inspect
from manimlib.constants import DEG
from manimlib.constants import RIGHT
from manimlib.mobject.mobject import Mobject
from manimlib.utils.simple_functions import clip
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Callable
import numpy... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/mobject.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.299760 | from __future__ import annotations
import copy
from functools import wraps
import itertools as it
import os
import pickle
import random
import sys
import moderngl
import numbers
import numpy as np
from manimlib.constants import DEFAULT_MOBJECT_TO_EDGE_BUFF
from manimlib.constants import DEFAULT_MOBJECT_TO_MOBJECT_BU... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/probability.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.333113 | from __future__ import annotations
import numpy as np
from manimlib.constants import BLUE, BLUE_E, GREEN_E, GREY_B, GREY_D, MAROON_B, YELLOW
from manimlib.constants import DOWN, LEFT, RIGHT, UP
from manimlib.constants import MED_LARGE_BUFF, MED_SMALL_BUFF, SMALL_BUFF
from manimlib.mobject.geometry import Line
from ma... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/numbers.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.350935 | from __future__ import annotations
from functools import lru_cache
import numpy as np
from manimlib.constants import DOWN, LEFT, RIGHT, UP
from manimlib.constants import DEFAULT_MOBJECT_COLOR
from manimlib.mobject.svg.tex_mobject import Tex
from manimlib.mobject.svg.text_mobject import Text
from manimlib.mobject.type... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/number_line.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.390311 | from __future__ import annotations
import numpy as np
from manimlib.constants import DOWN, LEFT, RIGHT, UP
from manimlib.constants import DEFAULT_LIGHT_COLOR
from manimlib.constants import MED_SMALL_BUFF, SMALL_BUFF
from manimlib.constants import YELLOW, DEG
from manimlib.mobject.geometry import Line, ArrowTip
from m... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/shape_matchers.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.390979 | from __future__ import annotations
from colour import Color
from manimlib.config import manim_config
from manimlib.constants import BLACK, RED, YELLOW, DEFAULT_MOBJECT_COLOR
from manimlib.constants import DL, DOWN, DR, LEFT, RIGHT, UL, UR
from manimlib.constants import SMALL_BUFF
from manimlib.mobject.geometry import... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/svg/brace.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.740413 | from __future__ import annotations
import math
import copy
import numpy as np
from manimlib.constants import DEFAULT_MOBJECT_TO_MOBJECT_BUFF, SMALL_BUFF
from manimlib.constants import DOWN, LEFT, ORIGIN, RIGHT, DL, DR, UL, UP
from manimlib.constants import PI
from manimlib.animation.composition import AnimationGroup... |
3b1b/manim | https://github.com/3b1b/manim | null | null | null | null | 86,541 | null | null | mit | null | null | null | null | null | null | null | manimlib/mobject/svg/drawings.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:32.741163 | from __future__ import annotations
import numpy as np
import itertools as it
import random
import math
from manimlib.animation.composition import AnimationGroup
from manimlib.animation.rotation import Rotating
from manimlib.constants import BLACK
from manimlib.constants import BLUE_A
from manimlib.constants import BL... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | sherlock_project/result.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.271130 | """Sherlock Result Module
This module defines various objects for recording the results of queries.
"""
from enum import Enum
class QueryStatus(Enum):
"""Query Status Enumeration.
Describes status of query about a given username.
"""
CLAIMED = "Claimed" # Username Detected
AVAILABLE = "Avail... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | tests/conftest.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.373109 | import os
import json
import urllib
import pytest
from sherlock_project.sites import SitesInformation
def fetch_local_manifest(honor_exclusions: bool = True) -> dict[str, dict[str, str]]:
sites_obj = SitesInformation(data_file_path=os.path.join(os.path.dirname(__file__), "../sherlock_project/resources/data.json"),... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | sherlock_project/sherlock.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.421352 | #! /usr/bin/env python3
"""
Sherlock: Find Usernames Across Social Networks Module
This module contains the main logic to search for usernames at social
networks.
"""
import sys
try:
from sherlock_project.__init__ import import_error_test_var # noqa: F401
except ImportError:
print("Did you run Sherlock with... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | devel/site-list.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.674191 | #!/usr/bin/env python
# This module generates the listing of supported sites which can be found in
# sites.mdx. It also organizes all the sites in alphanumeric order
import json
import os
DATA_REL_URI: str = "sherlock_project/resources/data.json"
DEFAULT_ENCODING = "utf-8"
# Read the data.json file
with open(DATA_RE... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | sherlock_project/__main__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.677338 | #! /usr/bin/env python3
"""
Sherlock: Find Usernames Across Social Networks Module
This module contains the main logic to search for usernames at social
networks.
"""
import sys
if __name__ == "__main__":
# Check if the user is using the correct version of Python
python_version = sys.version.split()[0]
... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | tests/few_test_basic.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.686175 | import sherlock_project
#from sherlock.sites import SitesInformation
#local_manifest = data_file_path=os.path.join(os.path.dirname(__file__), "../sherlock/resources/data.json")
def test_username_via_message():
sherlock_project.__main__("--version")
|
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | sherlock_project/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.768901 | """ Sherlock Module
This module contains the main logic to search for usernames at social
networks.
"""
from importlib.metadata import version as pkg_version, PackageNotFoundError
import pathlib
import tomli
def get_version() -> str:
"""Fetch the version number of the installed package."""
try:
ret... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | sherlock_project/notify.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.769393 | """Sherlock Notify Module
This module defines the objects for notifying the caller about the
results of queries.
"""
from sherlock_project.result import QueryStatus
from colorama import Fore, Style
import webbrowser
# Global variable to count the number of results.
globvar = 0
class QueryNotify:
"""Query Notify... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | devel/summarize_site_validation.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.771202 | #!/usr/bin/env python
# This module summarizes the results of site validation tests queued by
# workflow validate_modified_targets for presentation in Issue comments.
from defusedxml import ElementTree as ET
import sys
from pathlib import Path
def summarize_junit_xml(xml_path: Path) -> str:
tree = ET.parse(xml_pa... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | sherlock_project/sites.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:42.989379 | """Sherlock Sites Information Module
This module supports storing information about websites.
This is the raw data that will be used to search for usernames.
"""
import json
import requests
import secrets
MANIFEST_URL = "https://data.sherlockproject.xyz"
EXCLUSIONS_URL = "https://raw.githubusercontent.com/sherlock-p... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | tests/sherlock_interactives.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:43.349422 | import os
import platform
import re
import subprocess
class Interactives:
def run_cli(args:str = "") -> str:
"""Pass arguments to Sherlock as a normal user on the command line"""
# Adapt for platform differences (Windows likes to be special)
if platform.system() == "Windows":
co... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | tests/test_manifest.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:43.379442 | import os
import json
import pytest
from jsonschema import validate
def test_validate_manifest_against_local_schema():
"""Ensures that the manifest matches the local schema, for situations where the schema is being changed."""
json_relative: str = '../sherlock_project/resources/data.json'
schema_relative: ... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | tests/test_probes.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:43.601746 | import pytest
import random
import string
import re
from sherlock_project.sherlock import sherlock
from sherlock_project.notify import QueryNotify
from sherlock_project.result import QueryStatus
#from sherlock_interactives import Interactives
def simple_query(sites_info: dict, site: str, username: str) -> QueryStatus... |
sherlock-project/sherlock | https://github.com/sherlock-project/sherlock | null | null | null | null | 82,860 | null | null | mit | null | null | null | null | null | null | null | tests/test_ux.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:43.605391 | import pytest
from sherlock_project import sherlock
from sherlock_interactives import Interactives
from sherlock_interactives import InteractivesSubprocessError
def test_remove_nsfw(sites_obj):
nsfw_target: str = 'Pornhub'
assert nsfw_target in {site.name: site.information for site in sites_obj}
sites_obj.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.