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
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
examples/sort_mock_urls.py
null
null
null
null
null
null
Python
2026-05-04T01:51:00.708779
import logging import os.path from typing import List, Optional, OrderedDict import pyarrow as arrow from smallpond.execution.driver import Driver from smallpond.execution.task import RuntimeContext from smallpond.logical.dataset import CsvDataSet from smallpond.logical.node import ( ArrowComputeNode, Context...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
benchmarks/urls_sort_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T01:51:00.724102
from typing import List, OrderedDict from smallpond.common import GB from smallpond.dataframe import Session from smallpond.execution.driver import Driver from smallpond.logical.dataset import CsvDataSet from smallpond.logical.node import ( Context, DataSetPartitionNode, DataSourceNode, HashPartitionNo...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
benchmarks/hash_partition_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T01:51:00.726260
from smallpond.common import GB from smallpond.contrib.log_dataset import LogDataSet from smallpond.execution.driver import Driver from smallpond.logical.dataset import ParquetDataSet from smallpond.logical.node import ( ConsolidateNode, Context, DataSourceNode, HashPartitionNode, LogicalPlan, S...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
examples/fstest.py
null
null
null
null
null
null
Python
2026-05-04T01:51:00.728700
# Test the correctness of file system read and write. # # This script runs multiple tasks to write and read data to/from the file system. # Each task writes to an individual file in the given directory. # Then it reads the data back and verifies the correctness. import argparse import glob import logging import os imp...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
benchmarks/gray_sort_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T01:51:00.729832
import functools import logging import os.path import shutil import subprocess import tempfile from pathlib import PurePath from typing import Iterable, List import duckdb import polars import psutil import pyarrow as arrow import pyarrow.compute as pc from smallpond.common import GB, MB, next_power_of_two, pytest_ru...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
docs/source/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:51:00.734577
# Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
examples/shuffle_mock_urls.py
null
null
null
null
null
null
Python
2026-05-04T01:51:00.743581
from smallpond.common import GB from smallpond.execution.driver import Driver from smallpond.logical.dataset import ParquetDataSet from smallpond.logical.node import ( Context, DataSetPartitionNode, DataSourceNode, HashPartitionNode, LogicalPlan, SqlEngineNode, ) def shuffle_mock_urls(input_pa...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.349840
from importlib.metadata import PackageNotFoundError, version from typing import Optional try: __version__ = version("smallpond") except PackageNotFoundError: # package is not installed __version__ = "unknown" def init( job_id: Optional[str] = None, job_time: Optional[float] = None, job_name: ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/common.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.351652
import itertools import math import sys from typing import Dict, List, TypeVar import numpy as np from smallpond.logical.udf import * KB = 1024 MB = 1024 * KB GB = 1024 * MB TB = 1024 * GB DEFAULT_MAX_RETRY_COUNT = 5 DEFAULT_MAX_FAIL_COUNT = 3 # duckdb default row group size https://duckdb.org/docs/data/parquet/tip...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
examples/sort_mock_urls_v2.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.352881
import argparse from typing import List import smallpond from smallpond.dataframe import Session def sort_mock_urls_v2(sp: Session, input_paths: List[str], output_path: str, npartitions: int): dataset = sp.read_csv(input_paths, schema={"urlstr": "varchar", "valstr": "varchar"}, delim=r"\t").repartition(npartitio...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/contrib/warc.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.363067
import string import sys import unicodedata from pathlib import PurePath from typing import Iterable, List, Tuple from urllib.parse import urlparse import pyarrow as arrow import zstandard as zstd from bs4 import BeautifulSoup from loguru import logger from warcio import ArchiveIterator from smallpond.common import M...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/execution/driver.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.380735
import argparse import os import socket import sys from multiprocessing import Process from typing import List, Optional from loguru import logger import smallpond from smallpond.common import DEFAULT_MAX_FAIL_COUNT, DEFAULT_MAX_RETRY_COUNT from smallpond.dataframe import DataFrame from smallpond.execution.task impor...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/contrib/log_dataset.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.390657
from typing import List, Tuple from smallpond.execution.task import PythonScriptTask, RuntimeContext from smallpond.logical.dataset import DataSet from smallpond.logical.node import Context, Node, PythonScriptNode class LogDataSetTask(PythonScriptTask): num_rows = 200 @property def exec_on_scheduler(se...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/contrib/copy_table.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.417408
from typing import Iterable, List import pyarrow as arrow from loguru import logger from smallpond.execution.task import RuntimeContext from smallpond.logical.node import ArrowComputeNode, ArrowStreamNode class CopyArrowTable(ArrowComputeNode): def process(self, runtime_ctx: RuntimeContext, input_tables: List[a...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/dataframe.py
null
null
null
null
null
null
Python
2026-05-04T01:51:01.430125
from __future__ import annotations import os import time from collections import OrderedDict from concurrent.futures import ThreadPoolExecutor from datetime import datetime from typing import Any, Callable, Dict, List, Optional, Tuple, Union import pandas as pd import pyarrow as arrow import ray import ray.exceptions...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/execution/workqueue.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.006221
import os import os.path import queue import random import sys import time import uuid from enum import Enum from typing import Dict, Iterable, List, Optional import numpy as np from GPUtil import GPU from loguru import logger from smallpond.common import MB, NonzeroExitCode, OutOfMemory from smallpond.io.filesystem ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/execution/manager.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.033190
import os import shutil import socket import sys from datetime import datetime from typing import Dict, List, Literal, Optional from loguru import logger import smallpond from smallpond.common import DEFAULT_MAX_FAIL_COUNT, DEFAULT_MAX_RETRY_COUNT, MB from smallpond.execution.scheduler import Scheduler from smallpond...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/execution/executor.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.041188
import multiprocessing as mp import os.path import socket import time from collections import OrderedDict from typing import Dict, List, Tuple from GPUtil import GPU from loguru import logger from smallpond.common import NonzeroExitCode, pytest_running from smallpond.execution.task import Probe, RuntimeContext from s...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/io/filesystem.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.050734
import io import os import shutil import tempfile import time from typing import Any import cloudpickle import zstandard as zstd from loguru import logger from smallpond.common import MB HF3FS_MOUNT_POINT_PREFIX = "/hf3fs" HF3FS_FSSPEC_PROTOCOL = "hf3fs://" def on_hf3fs(path: str): return path.startswith(HF3FS...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/execution/scheduler.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.052107
import copy import cProfile import itertools import multiprocessing as mp import os import queue import shutil import socket import sys import time from collections import OrderedDict from concurrent.futures import ThreadPoolExecutor from enum import Enum from functools import cached_property from typing import Any, Ca...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/logical/dataset.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.071826
import copy import functools import glob import os.path import random import re from collections import OrderedDict from concurrent.futures import ThreadPoolExecutor from typing import Callable, Dict, List, Optional, Union import duckdb import fsspec import pandas as pd import pyarrow as arrow import pyarrow.parquet a...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/io/arrow.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.073418
import copy import math import os.path import time from concurrent.futures import ThreadPoolExecutor from dataclasses import dataclass from typing import Iterable, List, Optional, Union import fsspec import pyarrow as arrow import pyarrow.parquet as parquet from loguru import logger from smallpond.common import ( ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/logical/node.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.115212
import copy import math import os import os.path import re import traceback import warnings from collections import defaultdict from typing import ( Callable, Dict, Generic, Iterable, List, Literal, Optional, Tuple, TypeVar, Union, ) import numpy as np import pandas as pd import...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/logical/optimizer.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.624604
from smallpond.execution.task import * from smallpond.logical.node import * class Optimizer(LogicalPlanVisitor[Node]): """ Optimize the logical plan. """ def __init__(self, exclude_nodes: Set[Node]): self.exclude_nodes = exclude_nodes """A set of nodes that will not be optimized.""" ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/platform/mpi.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.664588
import shutil import subprocess from typing import List from loguru import logger from smallpond.platform.base import Platform class MPI(Platform): """ MPI platform. """ @staticmethod def is_available() -> bool: return shutil.which("mpirun") is not None def start_job( self, ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/logical/planner.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.665795
from smallpond.execution.task import * from smallpond.logical.node import * TaskGroup = List[Task] class Planner(LogicalPlanVisitor[TaskGroup]): """ Create an execution plan (tasks) from a logical plan (nodes). """ def __init__(self, runtime_ctx: RuntimeContext) -> None: self.runtime_ctx = r...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/session.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.679997
""" This module defines the `Session` class, which is the entry point for smallpond interactive mode. """ from __future__ import annotations import json import os import shutil import socket import subprocess import sys import threading from dataclasses import dataclass from datetime import datetime from typing impor...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/logical/udf.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.680937
import importlib import os.path from dataclasses import dataclass from enum import Enum from typing import Callable, Dict, List, Optional, Union import duckdb import duckdb.typing class UDFType(Enum): """ A wrapper of duckdb.typing.DuckDBPyType See https://duckdb.org/docs/api/python/types.html """ ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/utility.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.682322
import cProfile import inspect import io import logging import pstats import queue import subprocess import sys import threading from typing import Any, Dict, Iterable from loguru import logger def overall_stats( ctx, inp, sql_per_part, sql_on_merged, output_name, output_dir=None, cpu_lim...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/platform/base.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.702792
import os import signal import subprocess import uuid from datetime import datetime from typing import List, Optional class Platform: """ Base class for all platforms. """ @staticmethod def is_available() -> bool: """ Whether the platform is available in the current environment. ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/worker.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.721404
# this file is the entry point for smallpond workers import argparse import os import socket import subprocess import psutil if __name__ == "__main__": parser = argparse.ArgumentParser(description="smallpond worker") parser.add_argument( "--ray_address", required=True, help="The addre...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
smallpond/platform/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:51:02.721930
from typing import Optional from smallpond.platform.base import Platform from smallpond.platform.mpi import MPI _platforms = { "mpi": MPI, } def get_platform(name: Optional[str] = None) -> Platform: """ Get a platform by name. If name is not specified, try to get an available platform. """ i...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_dataset.py
null
null
null
null
null
null
Python
2026-05-04T01:51:03.723399
import glob import os.path import unittest from pathlib import PurePath import duckdb import pandas import pyarrow as arrow import pytest from loguru import logger from smallpond.common import DEFAULT_ROW_GROUP_SIZE, MB from smallpond.logical.dataset import ParquetDataSet from smallpond.utility import ConcurrentIter ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_execution.py
null
null
null
null
null
null
Python
2026-05-04T01:51:04.435642
import functools import os.path import socket import tempfile import time import unittest from datetime import datetime from typing import Iterable, List, Tuple import pandas import pyarrow as arrow from loguru import logger from pandas.core.api import DataFrame as DataFrame from smallpond.common import GB, MB, split...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/conftest.py
null
null
null
null
null
null
Python
2026-05-04T01:51:08.370445
import os import pytest import ray import smallpond @pytest.fixture(scope="session") def ray_address(): """A global Ray instance for all tests""" ray_address = ray.init( address="local", # disable dashboard in unit tests include_dashboard=False, ).address_info["gcs_address"] ...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_common.py
null
null
null
null
null
null
Python
2026-05-04T01:51:08.373739
import itertools import unittest import numpy as np from hypothesis import given from hypothesis import strategies as st from smallpond.common import get_nth_partition, split_into_cols, split_into_rows from tests.test_fabric import TestFabric class TestCommon(TestFabric, unittest.TestCase): def test_get_nth_par...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/datagen.py
null
null
null
null
null
null
Python
2026-05-04T01:51:08.374594
import base64 import glob import os import random import string from concurrent.futures import ProcessPoolExecutor from datetime import datetime, timedelta, timezone from typing import Tuple import pandas as pd import pyarrow as pa import pyarrow.parquet as pq from filelock import FileLock def generate_url_and_domai...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_dataframe.py
null
null
null
null
null
null
Python
2026-05-04T01:51:08.449741
from typing import List import pandas as pd import pyarrow as pa import pytest from smallpond.dataframe import Session def test_pandas(sp: Session): pandas_df = pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]}) df = sp.from_pandas(pandas_df) assert df.to_pandas().equals(pandas_df) def test_arrow(sp: Sess...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_arrow.py
null
null
null
null
null
null
Python
2026-05-04T01:51:08.450637
import glob import os.path import tempfile import unittest import pyarrow.parquet as parquet from loguru import logger from smallpond.io.arrow import ( RowRange, build_batch_reader_from_files, cast_columns_to_large_string, dump_to_parquet_files, load_from_parquet_files, ) from smallpond.utility im...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_bench.py
null
null
null
null
null
null
Python
2026-05-04T01:51:08.564956
import shutil import unittest from benchmarks.file_io_benchmark import file_io_benchmark from benchmarks.gray_sort_benchmark import generate_random_records, gray_sort_benchmark from benchmarks.hash_partition_benchmark import hash_partition_benchmark from benchmarks.urls_sort_benchmark import urls_sort_benchmark from s...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_deltalake.py
null
null
null
null
null
null
Python
2026-05-04T01:51:09.217957
import glob import importlib import tempfile import unittest from smallpond.io.arrow import cast_columns_to_large_string from tests.test_fabric import TestFabric @unittest.skipUnless(importlib.util.find_spec("deltalake") is not None, "cannot find deltalake") class TestDeltaLake(TestFabric, unittest.TestCase): de...
deepseek-ai/smallpond
https://github.com/deepseek-ai/smallpond
null
null
null
null
4,950
null
null
mit
null
null
null
null
null
null
null
tests/test_driver.py
null
null
null
null
null
null
Python
2026-05-04T01:51:09.331312
import os.path import unittest import uuid from loguru import logger from benchmarks.gray_sort_benchmark import gray_sort_benchmark from examples.sort_mock_urls import sort_mock_urls from smallpond.common import GB, MB from smallpond.execution.driver import Driver from tests.test_fabric import TestFabric @unittest....
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.246623
# pylint: disable=R,C #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/colorized/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.257412
#!/usr/bin/python ''' Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in ...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/colorized/colors.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.258658
# pylint: disable=R,C,W,E #!/usr/bin/python """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (th...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/compat.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.259907
# pylint: disable=R,C,W,E #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and assoc...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/auth.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.261739
# pylint: disable=R,C #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/ffmpeg.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.268054
#!/usr/bin/python3 # pylint: disable=R,C,W,E """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/getpass.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.269013
#!/usr/bin/python3 # pylint: disable=R,C,W,E """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/colorized/banner.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.270704
#!/usr/bin/python ''' Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in ...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy-dl.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.271881
#!/usr/bin/python3 # -*- coding: utf-8 -*- # pylint: disable=R,C0330,C0301,C0303 """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software a...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/extract.py
null
null
null
null
null
null
Python
2026-05-04T01:51:15.273284
# pylint: disable=R,C,W #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/vtt2srt.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.305587
# pylint: disable=R,C #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/progress.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.306674
# pylint: disable=R,C,W #!/usr/bin/env python3 """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/session.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.307338
# pylint: disable=R,C,W #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/logger.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.308113
# pylint: disable=R,C,W #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, Fore.REDee of charge, to any person obtaining a copy of this software and as...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/sanitize.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.308799
# pylint: disable=R,C,W,E #!/usr/bin/env python3 # -*- coding: utf-8 from __future__ import unicode_literals import re import six import unicodedata from unidecode import unidecode def smart_text(s, encoding="utf-8", errors="strict"): if isinstance(s, six.text_type): return s if not isinstance(s, s...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/internal.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.309260
# pylint: disable=R,C,W #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.309788
#!/usr/bin/python3 # -*- coding: utf-8 -*- # pylint: disable=R,C,E,W """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/shared.py
null
null
null
null
null
null
Python
2026-05-04T01:51:16.310371
# pylint: disable=R,C #!/usr/bin/env python3 """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
r0oth3x49/udemy-dl
https://github.com/r0oth3x49/udemy-dl
null
null
null
null
4,946
null
null
mit
null
null
null
null
null
null
null
udemy/udemy.py
null
null
null
null
null
null
Python
2026-05-04T01:51:17.121137
# pylint: disable=R,C #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Author : Nasir Khan (r0ot h3x49) Github : https://github.com/r0oth3x49 License : MIT Copyright (c) 2018-2025 Nasir Khan (r0ot h3x49) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/_legacy_keywords.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.731890
import re from referencing.jsonschema import lookup_recursive_ref from jsonschema import _utils from jsonschema.exceptions import ValidationError def ignore_ref_siblings(schema): """ Ignore siblings of ``$ref`` if it is present. Otherwise, return all keywords. Suitable for use with `create`'s ``ap...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/_typing.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.732750
""" Some (initially private) typing helpers for jsonschema's types. """ from collections.abc import Callable, Iterable from typing import Any, Protocol import referencing.jsonschema from jsonschema.protocols import Validator class SchemaKeywordValidator(Protocol): def __call__( self, validator: ...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/__main__.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.733859
""" The jsonschema CLI is now deprecated in favor of check-jsonschema. """ from jsonschema.cli import main main()
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/_types.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.736636
from __future__ import annotations from typing import TYPE_CHECKING import numbers from attrs import evolve, field, frozen from rpds import HashTrieMap from jsonschema.exceptions import UndefinedTypeCheck if TYPE_CHECKING: from collections.abc import Callable, Mapping from typing import Any # unfortunatel...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.737836
from pathlib import Path import importlib.metadata import re ROOT = Path(__file__).parent.parent PACKAGE_SRC = ROOT / "jsonschema" project = "jsonschema" author = "Julian Berman" copyright = "2013, " + author release = importlib.metadata.version("jsonschema") version = release.partition("-")[0] language = "en" defa...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.738812
""" An implementation of JSON Schema for Python. The main functionality is provided by the validator classes for each of the supported JSON Schema versions. Most commonly, `jsonschema.validators.validate` is the quickest way to simply validate a given instance under a schema, and will create a validator for you. """ ...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/_format.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.739757
from __future__ import annotations from contextlib import suppress from datetime import date, datetime from uuid import UUID import ipaddress import re import typing import warnings from jsonschema.exceptions import FormatError _FormatCheckCallable = typing.Callable[[object], bool] #: A format checker callable. _F =...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/_keywords.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.740720
from fractions import Fraction import re from jsonschema._utils import ( ensure_list, equal, extras_msg, find_additional_properties, find_evaluated_item_indexes_by_schema, find_evaluated_property_keys_by_schema, uniq, ) from jsonschema.exceptions import FormatError, ValidationError def pa...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/_utils.py
null
null
null
null
null
null
Python
2026-05-04T01:51:19.741879
from collections.abc import Mapping, MutableMapping, Sequence from urllib.parse import urlsplit import itertools import re class URIDict(MutableMapping): """ Dictionary which uses normalized URIs as keys. """ def normalize(self, uri): return urlsplit(uri).geturl() def __init__(self, *arg...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/const_vs_enum.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.390873
""" A benchmark for comparing equivalent validation of `const` and `enum`. """ from pyperf import Runner from jsonschema import Draft202012Validator value = [37] * 100 const_schema = {"const": list(value)} enum_schema = {"enum": [list(value)]} valid = list(value) invalid = [*valid, 73] const = Draft202012Validator...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/json_schema_test_suite.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.391390
""" A performance benchmark using the official test suite. This benchmarks jsonschema using every valid example in the JSON-Schema-Test-Suite. It will take some time to complete. """ from pyperf import Runner from jsonschema.tests._suite import Suite if __name__ == "__main__": Suite().benchmark(runner=Runner())
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/issue232.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.392567
""" A performance benchmark using the example from issue #232. See https://github.com/python-jsonschema/jsonschema/pull/232. """ from pathlib import Path from pyperf import Runner from referencing import Registry from jsonschema.tests._suite import Version import jsonschema issue232 = Version( path=Path(__file_...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/import_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.404582
""" A benchmark which measures the import time of jsonschema """ import subprocess import sys def import_time(loops): total_us = 0 for _ in range(loops): p = subprocess.run( [sys.executable, "-X", "importtime", "-c", "import jsonschema"], stderr=subprocess.PIPE, st...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/contains.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.405747
""" A benchmark for validation of the `contains` keyword. """ from pyperf import Runner from jsonschema import Draft202012Validator schema = { "type": "array", "contains": {"const": 37}, } validator = Draft202012Validator(schema) size = 1000 beginning = [37] + [0] * (size - 1) middle = [0] * (size // 2) + [...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/subcomponents.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.407131
""" A benchmark which tries to compare the possible slow subparts of validation. """ from referencing import Registry from referencing.jsonschema import DRAFT202012 from rpds import HashTrieMap, HashTrieSet from jsonschema import Draft202012Validator schema = { "type": "array", "minLength": 1, "maxLength"...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/nested_schemas.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.408267
""" Validating highly nested schemas shouldn't cause exponential time blowups. See https://github.com/python-jsonschema/jsonschema/issues/1097. """ from itertools import cycle from jsonschema.validators import validator_for metaschemaish = { "$id": "https://example.com/draft/2020-12/schema/strict", "$schema"...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/useless_keywords.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.437854
""" A benchmark for validation of schemas containing lots of useless keywords. Checks we filter them out once, ahead of time. """ from pyperf import Runner from jsonschema import Draft202012Validator NUM_USELESS = 100000 schema = dict( [ ("not", {"const": 42}), *((str(i), i) for i in range(NUM_U...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/useless_applicator_schemas.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.471606
""" A benchmark for validation of applicators containing lots of useless schemas. Signals a small possible optimization to remove all such schemas ahead of time. """ from pyperf import Runner from jsonschema import Draft202012Validator as Validator NUM_USELESS = 100000 subschema = {"const": 37} valid = 37 invali...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/unused_registry.py
null
null
null
null
null
null
Python
2026-05-04T01:51:20.472901
""" An unused schema registry should not cause slower validation. "Unused" here means one where no reference resolution is occurring anyhow. See https://github.com/python-jsonschema/jsonschema/issues/1088. """ from pyperf import Runner from referencing import Registry from referencing.jsonschema import DRAFT201909 f...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/cli.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.294096
""" The ``jsonschema`` command line. """ from importlib import metadata from json import JSONDecodeError from pkgutil import resolve_name from textwrap import dedent import argparse import json import sys import traceback import warnings from attrs import define, field from jsonschema.exceptions import SchemaError f...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/benchmarks/validator_creation.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.295973
from pyperf import Runner from jsonschema import Draft202012Validator schema = { "type": "array", "minLength": 1, "maxLength": 1, "items": {"type": "integer"}, } if __name__ == "__main__": Runner().bench_func("validator creation", Draft202012Validator, schema)
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/_suite.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.297944
""" Python representations of the JSON Schema Test Suite tests. """ from __future__ import annotations from contextlib import suppress from functools import partial from pathlib import Path from typing import TYPE_CHECKING, Any import json import os import re import sys import unittest from attrs import field, frozen...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.298972
""" Validation errors, and some surrounding helpers. """ from __future__ import annotations from collections import defaultdict, deque from pprint import pformat from textwrap import dedent, indent from typing import TYPE_CHECKING, Any, ClassVar import heapq import re import warnings from attrs import define from ref...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/fuzz_validate.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.299925
""" Fuzzing setup for OSS-Fuzz. See https://github.com/google/oss-fuzz/tree/master/projects/jsonschema for the other half of the setup here. """ import sys from hypothesis import given, strategies import jsonschema PRIM = strategies.one_of( strategies.booleans(), strategies.integers(), strategies.floats...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_cli.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.301098
from contextlib import redirect_stderr, redirect_stdout from importlib import metadata from io import StringIO from json import JSONDecodeError from pathlib import Path from textwrap import dedent from unittest import TestCase import json import os import subprocess import sys import tempfile import warnings from json...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_deprecations.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.892983
from contextlib import contextmanager from io import BytesIO from unittest import TestCase, mock import importlib.metadata import json import subprocess import sys import urllib.request import referencing.exceptions from jsonschema import FormatChecker, exceptions, protocols, validators class TestDeprecations(TestC...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_exceptions.py
null
null
null
null
null
null
Python
2026-05-04T01:51:21.894241
from unittest import TestCase import textwrap import jsonpath_ng from jsonschema import exceptions from jsonschema.validators import _LATEST_VERSION class TestBestMatch(TestCase): def best_match_of(self, instance, schema): errors = list(_LATEST_VERSION(schema).iter_errors(instance)) msg = f"No ...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/protocols.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.107346
""" typing.Protocol classes for jsonschema interfaces. """ # for reference material on Protocols, see # https://www.python.org/dev/peps/pep-0544/ from __future__ import annotations from typing import TYPE_CHECKING, Any, ClassVar, Protocol, runtime_checkable # in order for Sphinx to resolve references accurately f...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_format.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.374925
""" Tests for the parts of jsonschema related to the :kw:`format` keyword. """ from unittest import TestCase from jsonschema import FormatChecker, ValidationError from jsonschema.exceptions import FormatError from jsonschema.validators import Draft4Validator BOOM = ValueError("Boom!") BANG = ZeroDivisionError("Bang!...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_utils.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.395330
from math import nan from unittest import TestCase from jsonschema._utils import equal class TestEqual(TestCase): def test_none(self): self.assertTrue(equal(None, None)) def test_nan(self): self.assertTrue(equal(nan, nan)) class TestDictEqual(TestCase): def test_equal_dictionaries(self...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_jsonschema_test_suite.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.411172
""" Test runner for the JSON Schema official test suite Tests comprehensive correctness of each draft's validator. See https://github.com/json-schema-org/JSON-Schema-Test-Suite for details. """ from jsonschema.tests._suite import Suite import jsonschema SUITE = Suite() DRAFT3 = SUITE.version(name="draft3") DRAFT4 ...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_validators.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.412051
from __future__ import annotations from collections import deque, namedtuple from contextlib import contextmanager from decimal import Decimal from io import BytesIO from typing import Any from unittest import TestCase, mock from urllib.request import pathname2url import json import os import sys import tempfile impor...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/test_types.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.444463
""" Tests for the `TypeChecker`-based type interface. The actual correctness of the type checking is handled in `test_jsonschema_test_suite`; these tests check that TypeChecker functions correctly at a more granular level. """ from collections import namedtuple from unittest import TestCase from jsonschema import Val...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/tests/typing/test_all_concrete_validators_match_protocol.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.503885
""" This module acts as a test that type checkers will allow each validator class to be assigned to a variable of type `type[Validator]` The assignation is only valid if type checkers recognize each Validator implementation as a valid implementer of the protocol. """ from jsonschema.protocols import Validator from jso...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
jsonschema/validators.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.523992
""" Creation and extension of validators, with implementations for existing drafts. """ from __future__ import annotations from collections import deque from collections.abc import Iterable, Mapping, Sequence from functools import lru_cache from operator import methodcaller from typing import TYPE_CHECKING from urllib...
python-jsonschema/jsonschema
https://github.com/python-jsonschema/jsonschema
null
null
null
null
4,944
null
null
mit
null
null
null
null
null
null
null
noxfile.py
null
null
null
null
null
null
Python
2026-05-04T01:51:22.754982
from pathlib import Path from tempfile import TemporaryDirectory import os import nox ROOT = Path(__file__).parent PACKAGE = ROOT / "jsonschema" TYPING_TESTS= ROOT / "jsonschema" / "tests" / "typing" BENCHMARKS = PACKAGE / "benchmarks" PYPROJECT = ROOT / "pyproject.toml" CHANGELOG = ROOT / "CHANGELOG.rst" DOCS = ROOT...
apurvsinghgautam/robin
https://github.com/apurvsinghgautam/robin
null
null
null
null
4,940
null
null
mit
null
null
null
null
null
null
null
health.py
null
null
null
null
null
null
Python
2026-05-04T01:51:24.803097
import time import socket import random import requests from concurrent.futures import ThreadPoolExecutor, as_completed from search import SEARCH_ENGINES, get_tor_session, USER_AGENTS from llm import get_llm from llm_utils import resolve_model_config def check_tor_proxy(): """Test that the Tor SOCKS5 proxy on 12...
apurvsinghgautam/robin
https://github.com/apurvsinghgautam/robin
null
null
null
null
4,940
null
null
mit
null
null
null
null
null
null
null
config.py
null
null
null
null
null
null
Python
2026-05-04T01:51:24.820227
import os from dotenv import load_dotenv load_dotenv() def _clean_env(name, default=None): value = os.getenv(name, default) if value is None: return None value = str(value).strip() # Support accidentally quoted values copied into .env if len(value) >= 2 and ( (value[0] == value[-1] == '"') or (...
apurvsinghgautam/robin
https://github.com/apurvsinghgautam/robin
null
null
null
null
4,940
null
null
mit
null
null
null
null
null
null
null
llm.py
null
null
null
null
null
null
Python
2026-05-04T01:51:24.836323
import re import openai from langchain_core.prompts import ChatPromptTemplate from langchain_core.output_parsers import StrOutputParser from llm_utils import _common_llm_params, resolve_model_config, get_model_choices from config import ( OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, OPENR...