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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/context-agent/scripts/session_summary.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:06.653709 | """
Gerador de resumos estruturados de sessão.
Analisa mensagens e gera session-NNN.md.
"""
import re
from datetime import datetime
from pathlib import Path
from config import (
SESSIONS_DIR,
DECISION_MARKERS,
PENDING_MARKERS,
)
from models import SessionSummary, PendingTask, SessionEntry
def get_next_s... |
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/docx-official/ooxml/scripts/validate.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:06.755131 | #!/usr/bin/env python3
"""
Command line tool to validate Office document XML files against XSD schemas and tracked changes.
Usage:
python validate.py <dir> --original <original_file>
"""
import argparse
import sys
from pathlib import Path
from validation import DOCXSchemaValidator, PPTXSchemaValidator, Redlining... |
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/docx-official/ooxml/scripts/validation/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:06.989692 | """
Validation modules for Word document processing.
"""
from .base import BaseSchemaValidator
from .docx import DOCXSchemaValidator
from .pptx import PPTXSchemaValidator
from .redlining import RedliningValidator
__all__ = [
"BaseSchemaValidator",
"DOCXSchemaValidator",
"PPTXSchemaValidator",
"Redlini... |
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/docx-official/ooxml/scripts/validation/docx.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:06.990543 | """
Validator for Word document XML files against XSD schemas.
"""
import re
import tempfile
import zipfile
import lxml.etree
from .base import BaseSchemaValidator
class DOCXSchemaValidator(BaseSchemaValidator):
"""Validator for Word document XML files against XSD schemas."""
# Word-specific namespace
... |
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/docx-official/ooxml/scripts/validation/base.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:07.556723 | """
Base validator with common validation logic for document files.
"""
import re
from pathlib import Path
import lxml.etree
class BaseSchemaValidator:
"""Base validator with common validation logic for document files."""
# Elements whose 'id' attributes must be unique within their file
# Format: eleme... |
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/context-guardian/scripts/context_snapshot.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:13.247214 | #!/usr/bin/env python3
"""
Context Guardian — Snapshot Manager.
Cria, lista e le snapshots de contexto para preservacao
pre-compactacao. Os snapshots sao arquivos .md estruturados
com todas as informacoes criticas de uma sessao.
Uso:
python context_snapshot.py save --project "nome" --phase "fase" --summary "resum... |
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/docx-official/ooxml/scripts/pack.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:13.247921 | #!/usr/bin/env python3
"""
Tool to pack a directory into a .docx, .pptx, or .xlsx file with XML formatting undone.
Example usage:
python pack.py <input_directory> <office_file> [--force]
"""
import argparse
import shutil
import subprocess
import sys
import tempfile
import defusedxml.minidom
import zipfile
from pa... |
sickn33/antigravity-awesome-skills | https://github.com/sickn33/antigravity-awesome-skills | null | null | null | null | 36,211 | null | null | mit | null | null | null | null | null | null | null | plugins/antigravity-awesome-skills-claude/skills/database-design/scripts/schema_validator.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:13.451136 | #!/usr/bin/env python3
"""
Schema Validator - Database schema validation
Validates Prisma schemas and checks for common issues.
Usage:
python schema_validator.py <project_path>
Checks:
- Prisma schema syntax
- Missing relations
- Index recommendations
- Naming conventions
"""
import sys
import js... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/question_title01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:15.986162 | from textual.app import App, ComposeResult
from textual.widgets import Button, Header, Label
class MyApp(App[str]):
CSS_PATH = "question02.tcss"
TITLE = "A Question App"
SUB_TITLE = "The most important question"
def compose(self) -> ComposeResult:
yield Header()
yield Label("Do you lo... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/blog/snippets/2022-12-07-responsive-app-background-task/blocking01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:15.987190 | import time
from random import randint
from textual.app import App, ComposeResult
from textual.color import Color
from textual.containers import Grid, VerticalScroll
from textual.widget import Widget
from textual.widgets import Footer, Label
class ColourChanger(Widget): # (1)!
def on_click(self) -> None:
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/event01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.033245 | from textual.app import App
from textual import events
class EventApp(App):
COLORS = [
"white",
"maroon",
"red",
"purple",
"fuchsia",
"olive",
"yellow",
"navy",
"teal",
"aqua",
]
def on_mount(self) -> None:
self.scre... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/question03.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.034725 | from textual.app import App, ComposeResult
from textual.widgets import Label, Button
class QuestionApp(App[str]):
CSS = """
Screen {
layout: grid;
grid-size: 2;
grid-gutter: 2;
padding: 2;
}
#question {
width: 100%;
height: 100%;
column-span: 2;
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/blog/snippets/2022-12-07-responsive-app-background-task/nonblocking01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.035600 | import asyncio
from random import randint
from textual.app import App, ComposeResult
from textual.color import Color
from textual.containers import Grid, VerticalScroll
from textual.widget import Widget
from textual.widgets import Footer, Label
class ColourChanger(Widget):
def on_click(self) -> None:
sel... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/question_title02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.036481 | from textual.app import App, ComposeResult
from textual.events import Key
from textual.widgets import Button, Header, Label
class MyApp(App[str]):
CSS_PATH = "question02.tcss"
TITLE = "A Question App"
SUB_TITLE = "The most important question"
def compose(self) -> ComposeResult:
yield Header()... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/blog/snippets/2022-12-07-responsive-app-background-task/blocking02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.072431 | import asyncio
import time
from random import randint
from textual.app import App, ComposeResult
from textual.color import Color
from textual.containers import Grid, VerticalScroll
from textual.widget import Widget
from textual.widgets import Footer, Label
class ColourChanger(Widget):
def on_click(self) -> None:... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/question02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.073972 | from textual.app import App, ComposeResult
from textual.widgets import Button, Label
class QuestionApp(App[str]):
CSS_PATH = "question02.tcss"
def compose(self) -> ComposeResult:
yield Label("Do you love Textual?", id="question")
yield Button("Yes", id="yes", variant="primary")
yield ... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/question01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.075107 | from textual.app import App, ComposeResult
from textual.widgets import Label, Button
class QuestionApp(App[str]):
def compose(self) -> ComposeResult:
yield Label("Do you love Textual?")
yield Button("Yes", id="yes", variant="primary")
yield Button("No", id="no", variant="error")
def o... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/blog/images/gen_inspect.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.076246 | from rich import inspect
from rich.console import Console
c = Console(record=True, width=110)
f = open("foo.txt", "w")
inspect(f, console=c)
c.save_svg("inspect1.svg")
inspect(f, console=c, methods=True)
c.save_svg("inspect2.svg")
inspect(f, console=c, methods=True, help=True)
c.save_svg("inspect3.svg")
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/suspend.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.627093 | from os import system
from textual import on
from textual.app import App, ComposeResult
from textual.widgets import Button
class SuspendingApp(App[None]):
def compose(self) -> ComposeResult:
yield Button("Open the editor", id="edit")
@on(Button.Pressed, "#edit")
def run_external_editor(self) ->... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/simple02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.628195 | from textual.app import App
class MyApp(App):
pass
if __name__ == "__main__":
app = MyApp()
app.run()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/events/custom01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.685022 | from textual.app import App, ComposeResult
from textual.color import Color
from textual.message import Message
from textual.widgets import Static
class ColorButton(Static):
"""A color button."""
class Selected(Message):
"""Color selected message."""
def __init__(self, color: Color) -> None:
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/events/dictionary.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.686033 | import asyncio
try:
import httpx
except ImportError:
raise ImportError("Please install httpx with 'pip install httpx' ")
from rich.json import JSON
from textual.app import App, ComposeResult
from textual.containers import VerticalScroll
from textual.widgets import Input, Static
class DictionaryApp(App):
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/suspend_process.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.720348 | from textual.app import App, ComposeResult
from textual.binding import Binding
from textual.widgets import Label
class SuspendKeysApp(App[None]):
BINDINGS = [Binding("ctrl+z", "suspend_process")]
def compose(self) -> ComposeResult:
yield Label("Press Ctrl+Z to suspend!")
if __name__ == "__main__":... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/widgets03.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.742596 | from textual.app import App
from textual.widgets import Button, Welcome
class WelcomeApp(App):
def on_key(self) -> None:
self.mount(Welcome())
self.query_one(Button).label = "YES!"
if __name__ == "__main__":
app = WelcomeApp()
app.run()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/widgets02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.743902 | from textual.app import App
from textual.widgets import Welcome
class WelcomeApp(App):
def on_key(self) -> None:
self.mount(Welcome())
def on_button_pressed(self) -> None:
self.exit()
if __name__ == "__main__":
app = WelcomeApp()
app.run()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/widgets04.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.745192 | from textual.app import App
from textual.widgets import Button, Welcome
class WelcomeApp(App):
async def on_key(self) -> None:
await self.mount(Welcome())
self.query_one(Button).label = "YES!"
if __name__ == "__main__":
app = WelcomeApp()
app.run()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/app/widgets01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:16.793698 | from textual.app import App, ComposeResult
from textual.widgets import Welcome
class WelcomeApp(App):
def compose(self) -> ComposeResult:
yield Welcome()
def on_button_pressed(self) -> None:
self.exit()
if __name__ == "__main__":
app = WelcomeApp()
app.run()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/events/on_decorator01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.168517 | from textual.app import App, ComposeResult
from textual.widgets import Button
class OnDecoratorApp(App):
CSS_PATH = "on_decorator.tcss"
def compose(self) -> ComposeResult:
"""Three buttons."""
yield Button("Bell", id="bell")
yield Button("Toggle dark", classes="toggle dark")
y... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/events/prevent.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.201733 | from textual.app import App, ComposeResult
from textual.widgets import Button, Input
class PreventApp(App):
"""Demonstrates `prevent` context manager."""
def compose(self) -> ComposeResult:
yield Input()
yield Button("Clear", id="clear")
def on_button_pressed(self) -> None:
"""Cl... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/events/on_decorator02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.240354 | from textual import on
from textual.app import App, ComposeResult
from textual.widgets import Button
class OnDecoratorApp(App):
CSS_PATH = "on_decorator.tcss"
def compose(self) -> ComposeResult:
"""Three buttons."""
yield Button("Bell", id="bell")
yield Button("Toggle dark", classes="... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/actions/actions06.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.688497 | from textual.app import App, ComposeResult
from textual.containers import HorizontalScroll
from textual.reactive import reactive
from textual.widgets import Footer, Placeholder
PAGES_COUNT = 5
class PagesApp(App):
BINDINGS = [
("n", "next", "Next"),
("p", "previous", "Previous"),
]
CSS_P... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/actions/actions04.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.690445 | from textual.app import App, ComposeResult
from textual.widgets import Static
TEXT = """
[b]Set your background[/b]
[@click=app.set_background('red')]Red[/]
[@click=app.set_background('green')]Green[/]
[@click=app.set_background('blue')]Blue[/]
"""
class ActionsApp(App):
BINDINGS = [
("r", "set_backgroun... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/actions/actions01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.691470 | from textual.app import App
from textual import events
class ActionsApp(App):
def action_set_background(self, color: str) -> None:
self.screen.styles.background = color
def on_key(self, event: events.Key) -> None:
if event.key == "r":
self.action_set_background("red")
if __name_... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/actions/actions03.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.693109 | from textual.app import App, ComposeResult
from textual.widgets import Static
TEXT = """
[b]Set your background[/b]
[@click=app.set_background('red')]Red[/]
[@click=app.set_background('green')]Green[/]
[@click=app.set_background('blue')]Blue[/]
"""
class ActionsApp(App):
def compose(self) -> ComposeResult:
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/actions/actions02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.694147 | from textual import events
from textual.app import App
class ActionsApp(App):
def action_set_background(self, color: str) -> None:
self.screen.styles.background = color
async def on_key(self, event: events.Key) -> None:
if event.key == "r":
await self.run_action("set_background('r... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/actions/actions05.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.695001 | from textual.app import App, ComposeResult
from textual.widgets import Static
TEXT = """
[b]Set your background[/b]
[@click=set_background('cyan')]Cyan[/]
[@click=set_background('magenta')]Magenta[/]
[@click=set_background('yellow')]Yellow[/]
"""
class ColorSwitcher(Static):
def action_set_background(self, color... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/getting_started/console.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:17.696427 | """
Simulates a screenshot of the Textual devtools
"""
from textual_dev.renderables import DevConsoleHeader
from textual.app import App
from textual.widgets import Static
class ConsoleApp(App):
def compose(self):
yield Static(DevConsoleHeader())
app = ConsoleApp()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/animator/animation01_static.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:18.664620 | from textual._easing import DEFAULT_EASING, EASING
from textual.app import App, ComposeResult
from textual.widgets import Static
ease = EASING[DEFAULT_EASING]
class AnimationApp(App):
def compose(self) -> ComposeResult:
self.box = Static("Hello, World!")
self.box.styles.background = "red"
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/command_palette/command02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:19.306409 | from __future__ import annotations
from functools import partial
from pathlib import Path
from textual.app import App, ComposeResult
from textual.command import Hit, Hits, Provider
from textual.containers import VerticalScroll
from textual.widgets import Static
class PythonFileCommands(Provider):
"""A command p... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/compound/compound01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:19.307167 | from textual.app import App, ComposeResult
from textual.widget import Widget
from textual.widgets import Input, Label
class InputWithLabel(Widget):
"""An input with a label."""
DEFAULT_CSS = """
InputWithLabel {
layout: horizontal;
height: auto;
}
InputWithLabel Label {
pa... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/content/content01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:19.309820 | from textual.app import App, ComposeResult
from textual.widgets import Static
TEXT1 = """\
Hello, [bold $text on $primary]World[/]!
[@click=app.notify('Hello, World!')]Click me[/]
"""
TEXT2 = """\
Markup will [bold]not[/bold] be displayed.
Tags will be left in the output.
"""
class ContentApp(App):
CSS = """... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/compound/byte03.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:19.310978 | from __future__ import annotations
from textual.app import App, ComposeResult
from textual.containers import Container
from textual.geometry import clamp
from textual.message import Message
from textual.reactive import reactive
from textual.widget import Widget
from textual.widgets import Input, Label, Switch
class ... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/compound/byte01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:19.312284 | from __future__ import annotations
from textual.app import App, ComposeResult
from textual.containers import Container
from textual.widget import Widget
from textual.widgets import Input, Label, Switch
class BitSwitch(Widget):
"""A Switch with a numeric label above it."""
DEFAULT_CSS = """
BitSwitch {
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/compound/byte02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:19.313172 | from __future__ import annotations
from textual.app import App, ComposeResult
from textual.containers import Container
from textual.message import Message
from textual.reactive import reactive
from textual.widget import Widget
from textual.widgets import Input, Label, Switch
class BitSwitch(Widget):
"""A Switch ... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/content/renderables.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:20.968230 | from rich.syntax import Syntax
from textual.app import App, ComposeResult, RenderResult
from textual.reactive import reactive
from textual.widget import Widget
class CodeView(Widget):
"""Widget to display Python code."""
DEFAULT_CSS = """
CodeView { height: auto; }
"""
code = reactive("")
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/css/nesting02.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.019891 | from textual.app import App, ComposeResult
from textual.containers import Horizontal
from textual.widgets import Static
class NestingDemo(App):
"""App with nested CSS."""
CSS_PATH = "nesting02.tcss"
def compose(self) -> ComposeResult:
with Horizontal(id="questions"):
yield Static("Ye... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/dom1.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.066183 | from textual.app import App
class ExampleApp(App):
pass
if __name__ == "__main__":
app = ExampleApp()
app.run()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/dom3.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.113053 | from textual.app import App, ComposeResult
from textual.containers import Container, Horizontal
from textual.widgets import Button, Footer, Header, Static
QUESTION = "Do you want to learn about Textual CSS?"
class ExampleApp(App):
def compose(self) -> ComposeResult:
yield Header()
yield Footer()
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/dom2.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.150879 | from textual.app import App, ComposeResult
from textual.widgets import Header, Footer
class ExampleApp(App):
def compose(self) -> ComposeResult:
yield Header()
yield Footer()
if __name__ == "__main__":
app = ExampleApp()
app.run()
|
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/css/nesting01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.151624 | from textual.app import App, ComposeResult
from textual.containers import Horizontal
from textual.widgets import Static
class NestingDemo(App):
"""App that doesn't have nested CSS."""
CSS_PATH = "nesting01.tcss"
def compose(self) -> ComposeResult:
with Horizontal(id="questions"):
yie... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/dom4.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.584297 | from textual.app import App, ComposeResult
from textual.containers import Container, Horizontal
from textual.widgets import Button, Footer, Header, Static
QUESTION = "Do you want to learn about Textual CSS?"
class ExampleApp(App):
CSS_PATH = "dom4.tcss"
def compose(self) -> ComposeResult:
yield Head... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/input/binding01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.697114 | from textual.app import App, ComposeResult
from textual.color import Color
from textual.widgets import Footer, Static
class Bar(Static):
pass
class BindingApp(App):
CSS_PATH = "binding01.tcss"
BINDINGS = [
("r", "add_bar('red')", "Add Red"),
("g", "add_bar('green')", "Add Green"),
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/input/key01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:21.697838 | from textual import events
from textual.app import App, ComposeResult
from textual.widgets import RichLog
class InputApp(App):
"""App to display key events."""
def compose(self) -> ComposeResult:
yield RichLog()
def on_key(self, event: events.Key) -> None:
self.query_one(RichLog).write(e... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/actions/actions07.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:22.892869 | from textual.app import App, ComposeResult
from textual.containers import HorizontalScroll
from textual.reactive import reactive
from textual.widgets import Footer, Placeholder
PAGES_COUNT = 5
class PagesApp(App):
BINDINGS = [
("n", "next", "Next"),
("p", "previous", "Previous"),
]
CSS_P... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/animator/animation01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:23.066200 | from textual.app import App, ComposeResult
from textual.widgets import Static
class AnimationApp(App):
def compose(self) -> ComposeResult:
self.box = Static("Hello, World!")
self.box.styles.background = "red"
self.box.styles.color = "black"
self.box.styles.padding = (1, 2)
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/command_palette/command01.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:23.701529 | from typing import Iterable
from textual.app import App, SystemCommand
from textual.screen import Screen
class BellCommandApp(App):
"""An app with a 'bell' command."""
def get_system_commands(self, screen: Screen) -> Iterable[SystemCommand]:
yield from super().get_system_commands(screen) # (1)!
... |
Textualize/textual | https://github.com/Textualize/textual | null | null | null | null | 35,701 | null | null | mit | null | null | null | null | null | null | null | docs/examples/guide/content/playground.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:25.114757 | from textual._markup_playground import MarkupPlayground
if __name__ == "__main__":
app = MarkupPlayground()
app.run()
|
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | api_240604.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.185599 | #api for 240604 release version by Xiaokai
import os
import sys
import json
import re
import time
import librosa
import torch
import numpy as np
import torch.nn.functional as F
import torchaudio.transforms as tat
import sounddevice as sd
from dotenv import load_dotenv
from fastapi import FastAPI, HTTPException
from pyd... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | configs/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.188027 | import argparse
import os
import sys
import json
import shutil
from multiprocessing import cpu_count
import torch
try:
import intel_extension_for_pytorch as ipex # pylint: disable=import-error, unused-import
if torch.xpu.is_available():
from infer.modules.ipex import ipex_init
ipex_init()
e... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/audio.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.193187 | import platform, os
import ffmpeg
import numpy as np
import av
from io import BytesIO
import traceback
import re
def wav2(i, o, format):
inp = av.open(i, "rb")
if format == "m4a":
format = "mp4"
out = av.open(o, "wb", format=format)
if format == "ogg":
format = "libvorbi... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | i18n/i18n.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.200200 | import json
import locale
import os
def load_language_list(language):
with open(f"./i18n/locale/{language}.json", "r", encoding="utf-8") as f:
language_list = json.load(f)
return language_list
class I18nAuto:
def __init__(self, language=None):
if language in ["Auto", None]:
l... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | gui_v1.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.214017 | import os
import sys
from dotenv import load_dotenv
import shutil
load_dotenv()
os.environ["OMP_NUM_THREADS"] = "4"
if sys.platform == "darwin":
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
now_dir = os.getcwd()
sys.path.append(now_dir)
import multiprocessing
flag_vc = False
def printt(st... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer-web.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.218521 | import os
import sys
from dotenv import load_dotenv
now_dir = os.getcwd()
sys.path.append(now_dir)
load_dotenv()
from infer.modules.vc.modules import VC
from infer.modules.uvr5.modules import uvr
from infer.lib.train.process_ckpt import (
change_info,
extract_small_model,
merge,
show_info,
)
from i18n.... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | i18n/scan_i18n.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.221304 | import ast
import glob
import json
from collections import OrderedDict
def extract_i18n_strings(node):
i18n_strings = []
if (
isinstance(node, ast.Call)
and isinstance(node.func, ast.Name)
and node.func.id == "i18n"
):
for arg in node.args:
if isinstance(arg, a... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | api_231006.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.228162 | #api for 231006 release version by Xiaokai
import os
import sys
import json
import re
import time
import librosa
import torch
import numpy as np
import torch.nn.functional as F
import torchaudio.transforms as tat
import sounddevice as sd
from dotenv import load_dotenv
from fastapi import FastAPI, HTTPException
from pyd... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/attentions.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.240381 | import copy
import math
from typing import Optional
import numpy as np
import torch
from torch import nn
from torch.nn import functional as F
from infer.lib.infer_pack import commons, modules
from infer.lib.infer_pack.modules import LayerNorm
class Encoder(nn.Module):
def __init__(
self,
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | i18n/locale_diff.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.285303 | import json
import os
from collections import OrderedDict
# Define the standard file name
standard_file = "locale/zh_CN.json"
# Find all JSON files in the directory
dir_path = "locale/"
languages = [
os.path.join(dir_path, f)
for f in os.listdir(dir_path)
if f.endswith(".json") and f != standard_file
]
#... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/commons.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.759664 | from typing import List, Optional
import math
import numpy as np
import torch
from torch import nn
from torch.nn import functional as F
def init_weights(m, mean=0.0, std=0.01):
classname = m.__class__.__name__
if classname.find("Conv") != -1:
m.weight.data.normal_(mean, std)
def get_... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/attentions_onnx.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.833370 | ############################## Warning! ##############################
# #
# Onnx Export Not Support All Of Non-Torch Types #
# Include Python Built-in Types!!!!!!!!!!!!!!!!! #
# If You Want ... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/modules/F0Predictor/F0Predictor.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.864176 | class F0Predictor(object):
def compute_f0(self, wav, p_len):
"""
input: wav:[signal_length]
p_len:int
output: f0:[signal_length//hop_length]
"""
pass
def compute_f0_uv(self, wav, p_len):
"""
input: wav:[signal_length]
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/models.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.865527 | import math
import logging
from typing import Optional
logger = logging.getLogger(__name__)
import numpy as np
import torch
from torch import nn
from torch.nn import AvgPool1d, Conv1d, Conv2d, ConvTranspose1d
from torch.nn import functional as F
from torch.nn.utils import remove_weight_norm, spectral_norm, weight_nor... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/modules/F0Predictor/DioF0Predictor.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.867842 | import numpy as np
import pyworld
from infer.lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
class DioF0Predictor(F0Predictor):
def __init__(self, hop_length=512, f0_min=50, f0_max=1100, sampling_rate=44100):
self.hop_length = hop_length
self.f0_min = f0_min
se... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.869332 | import numpy as np
import pyworld
from infer.lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
class HarvestF0Predictor(F0Predictor):
def __init__(self, hop_length=512, f0_min=50, f0_max=1100, sampling_rate=44100):
self.hop_length = hop_length
self.f0_min = f0_min
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/models_onnx.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.872040 | ############################## Warning! ##############################
# #
# Onnx Export Not Support All Of Non-Torch Types #
# Include Python Built-in Types!!!!!!!!!!!!!!!!! #
# If You Want TO C... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/modules/F0Predictor/PMF0Predictor.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.947460 | import numpy as np
import parselmouth
from infer.lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
class PMF0Predictor(F0Predictor):
def __init__(self, hop_length=512, f0_min=50, f0_max=1100, sampling_rate=44100):
self.hop_length = hop_length
self.f0_min = f0_min
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/modules.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:28.963075 | import copy
import math
from typing import Optional, Tuple
import numpy as np
import scipy
import torch
from torch import nn
from torch.nn import AvgPool1d, Conv1d, Conv2d, ConvTranspose1d
from torch.nn import functional as F
from torch.nn.utils import remove_weight_norm, weight_norm
from infer.lib.infer_... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/onnx_inference.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.518435 | import librosa
import numpy as np
import onnxruntime
import soundfile
import logging
logger = logging.getLogger(__name__)
class ContentVec:
def __init__(self, vec_path="pretrained/vec-768-layer-12.onnx", device=None):
logger.info("Load model(s) from {}".format(vec_path))
if device =... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/slicer2.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.700493 | import numpy as np
# This function is obtained from librosa.
def get_rms(
y,
frame_length=2048,
hop_length=512,
pad_mode="constant",
):
padding = (int(frame_length // 2), int(frame_length // 2))
y = np.pad(y, padding, mode=pad_mode)
axis = -1
# put our new within-frame a... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/jit/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.720618 | from io import BytesIO
import pickle
import time
import torch
from tqdm import tqdm
from collections import OrderedDict
def load_inputs(path, device, is_half=False):
parm = torch.load(path, map_location=torch.device("cpu"))
for key in parm.keys():
parm[key] = parm[key].to(device)
if is_half an... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/jit/get_hubert.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.725880 | import math
import random
from typing import Optional, Tuple
from fairseq.checkpoint_utils import load_model_ensemble_and_task
import numpy as np
import torch
import torch.nn.functional as F
# from fairseq.data.data_utils import compute_mask_indices
from fairseq.utils import index_put
# @torch.jit.script
def pad_to_... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/rmvpe.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.756412 | from io import BytesIO
import os
from typing import List, Optional, Tuple
import numpy as np
import torch
from infer.lib import jit
try:
# Fix "Torch not compiled with CUDA enabled"
import intel_extension_for_pytorch as ipex # pylint: disable=import-error, unused-import
if torch.xpu.is_avail... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/jit/get_rmvpe.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.811032 | import torch
def get_rmvpe(model_path="assets/rmvpe/rmvpe.pt", device=torch.device("cpu")):
from infer.lib.rmvpe import E2E
model = E2E(4, 1, (2, 2))
ckpt = torch.load(model_path, map_location=device)
model.load_state_dict(ckpt)
model.eval()
model = model.to(device)
return model
|
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/jit/get_synthesizer.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.811563 | import torch
def get_synthesizer(pth_path, device=torch.device("cpu")):
from infer.lib.infer_pack.models import (
SynthesizerTrnMs256NSFsid,
SynthesizerTrnMs256NSFsid_nono,
SynthesizerTrnMs768NSFsid,
SynthesizerTrnMs768NSFsid_nono,
)
cpt = torch.load(pth_path, map_location... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/infer_pack/transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.831240 | import numpy as np
import torch
from torch.nn import functional as F
DEFAULT_MIN_BIN_WIDTH = 1e-3
DEFAULT_MIN_BIN_HEIGHT = 1e-3
DEFAULT_MIN_DERIVATIVE = 1e-3
def piecewise_rational_quadratic_transform(
inputs,
unnormalized_widths,
unnormalized_heights,
unnormalized_derivatives,
inve... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/rtrvc.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:29.870056 | from io import BytesIO
import os
import sys
import traceback
from infer.lib import jit
from infer.lib.jit.get_synthesizer import get_synthesizer
from time import time as ttime
import fairseq
import faiss
import numpy as np
import parselmouth
import pyworld
import scipy.signal as signal
import torch
import... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/train/losses.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.120799 | import torch
def feature_loss(fmap_r, fmap_g):
loss = 0
for dr, dg in zip(fmap_r, fmap_g):
for rl, gl in zip(dr, dg):
rl = rl.float().detach()
gl = gl.float()
loss += torch.mean(torch.abs(rl - gl))
return loss * 2
def discriminator_loss(disc_rea... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/train/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.354231 | import argparse
import glob
import json
import logging
import os
import subprocess
import sys
import shutil
import numpy as np
import torch
from scipy.io.wavfile import read
MATPLOTLIB_FLAG = False
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logger = logging
def load_checkpoint_d... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.373390 | import os
import random
import numpy as np
import torch
import torch.utils.data
from tqdm import tqdm
from . import spec_utils
class VocalRemoverValidationSet(torch.utils.data.Dataset):
def __init__(self, patch_list):
self.patch_list = patch_list
def __len__(self):
return len(self.patch_lis... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/train/mel_processing.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.378521 | import torch
import torch.utils.data
from librosa.filters import mel as librosa_mel_fn
import logging
logger = logging.getLogger(__name__)
MAX_WAV_VALUE = 32768.0
def dynamic_range_compression_torch(x, C=1, clip_val=1e-5):
"""
PARAMS
------
C: compression factor
"""
return to... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/layers_123812KB .py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.383177 | import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/train/process_ckpt.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.384348 | import os
import sys
import traceback
from collections import OrderedDict
import torch
from i18n.i18n import I18nAuto
i18n = I18nAuto()
def savee(ckpt, sr, if_f0, name, epoch, version, hps):
try:
opt = OrderedDict()
opt["weight"] = {}
for key in ckpt.keys():
if "enc_q" in ke... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/layers_123821KB.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.439335 | import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/layers.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.440562 | import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/layers_33966KB.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.620839 | import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/layers_537227KB.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.742721 | import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/train/data_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.771894 | import os
import traceback
import logging
logger = logging.getLogger(__name__)
import numpy as np
import torch
import torch.utils.data
from infer.lib.train.mel_processing import spectrogram_torch
from infer.lib.train.utils import load_filepaths_and_text, load_wav_to_torch
class TextAudioLoaderMultiNS... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/layers_537238KB.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.951933 | import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/layers_new.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.953112 | import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class Conv2DBNActiv(nn.Module):
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
super(Conv2DBNActiv, self).__init__()
self.conv = nn.Sequential(
nn.Conv2d(
... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/nets.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:30.953560 | import layers
import torch
import torch.nn.functional as F
from torch import nn
from . import spec_utils
class BaseASPPNet(nn.Module):
def __init__(self, nin, ch, dilations=(4, 8, 16)):
super(BaseASPPNet, self).__init__()
self.enc1 = layers.Encoder(nin, ch, 3, 2, 1)
self.enc2 = layers.Enc... |
RVC-Project/Retrieval-based-Voice-Conversion-WebUI | https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI | null | null | null | null | 35,448 | null | null | mit | null | null | null | null | null | null | null | infer/lib/uvr5_pack/lib_v5/nets_123821KB.py | null | null | null | null | null | null | Python | 2026-05-04T02:22:31.070242 | import torch
import torch.nn.functional as F
from torch import nn
from . import layers_123821KB as layers
class BaseASPPNet(nn.Module):
def __init__(self, nin, ch, dilations=(4, 8, 16)):
super(BaseASPPNet, self).__init__()
self.enc1 = layers.Encoder(nin, ch, 3, 2, 1)
self.enc2 = layers.En... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.