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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
neka-nat/probreg | https://github.com/neka-nat/probreg | null | null | null | null | 974 | null | null | mit | null | null | null | null | null | null | null | tests/test_gauss_transform.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:24.356844 | import unittest
import numpy as np
from probreg import gauss_transform as gt
from probreg import _ifgt
class GaussTransformTest(unittest.TestCase):
def test_k_center_clustering(self):
k1 = np.array([0.0, 0.0])
k2 = np.array([10.0, 10.0])
n = 10
k1s = k1 + np.random.rand(n, 2)
... |
neka-nat/probreg | https://github.com/neka-nat/probreg | null | null | null | null | 974 | null | null | mit | null | null | null | null | null | null | null | tests/test_point_to_plane.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:24.420326 | import unittest
import numpy as np
import transforms3d as t3d
import open3d as o3
from probreg import _pt2pl as pt2pl
from probreg import se3_op as so
from probreg import transformation as tf
class Point2PlaneTest(unittest.TestCase):
def setUp(self):
# Generate plane
points = []
normals = ... |
neka-nat/probreg | https://github.com/neka-nat/probreg | null | null | null | null | 974 | null | null | mit | null | null | null | null | null | null | null | tests/test_svr.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:24.420946 | import unittest
import numpy as np
import transforms3d as t3d
import open3d as o3
from probreg import l2dist_regs
from probreg import transformation as tf
class SVRTest(unittest.TestCase):
def setUp(self):
pcd = o3.io.read_point_cloud('data/horse.ply')
pcd = pcd.voxel_down_sample(voxel_size=0.01)
... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/mnist/gendata.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:26.588686 | '''Module to generate the spherical mnist data set'''
import gzip
import pickle
import numpy as np
import argparse
import lie_learn.spaces.S2 as S2
from torchvision import datasets
NORTHPOLE_EPSILON = 1e-3
def rand_rotation_matrix(deflection=1.0, randnums=None):
"""
Creates a random rotation matrix.
d... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/mnist/run.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:26.590059 | # pylint: disable=E1101,R,C
import numpy as np
import torch.nn as nn
from s2cnn import SO3Convolution
from s2cnn import S2Convolution
from s2cnn import so3_integrate
from s2cnn import so3_near_identity_grid
from s2cnn import s2_near_identity_grid
import torch.nn.functional as F
import torch
import torch.utils.data as d... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/equivariance_plot/main.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:26.779963 | # pylint: disable=C,R,E1101,E1102
import numpy as np
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
from matplotlib.pyplot import imread
import torch
from s2cnn import S2Convolution, SO3Convolution, so3_rotation
from s2cnn import s2_near_identity_grid, so3_near_identity_grid
def s2_rotation(... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/molecules/s2cnn_model.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:26.798255 | # pylint: disable=E1101,R,C
import torch
import torch.nn as nn
import torch.nn.functional as F
from s2cnn.soft.so3_conv import SO3Convolution
from s2cnn.soft.s2_conv import S2Convolution
from s2cnn.soft.so3_integrate import so3_integrate
from s2cnn.so3_grid import so3_near_identity_grid
from s2cnn.s2_grid import s2_nea... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/molecules/run_experiment.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.049339 | # pylint: disable=E1101,R,C
import argparse
import torch
import torch.nn as nn
from torch.autograd import Variable
from s2cnn_model import S2CNNRegressor
from baseline_model import BaselineRegressor
from utils import load_data, IndexBatcher, to_one_hot, exp_lr_scheduler, \
count_params
import numpy as np
OPTI... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/molecules/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.343701 | # pylint: disable=E1101,R,C
import torch
import numpy as np
import joblib
class IndexBatcher:
def __init__(self, indices, n_batch, cuda=None):
self.indices = indices.astype(np.int64)
self.n_batch = n_batch
self.pos = 0
self.cuda = cuda
self.internal_indices = np.arange(len... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/shrec17/dataset.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.344893 | # pylint: disable=E1101,R,C
import csv
import glob
import os
import re
import numpy as np
import torch
import torch.utils.data
import trimesh
import logging
logging.getLogger('pyembree').disabled = True
def rotmat(a, b, c, hom_coord=False): # apply to mesh using mesh.apply_transform(rotmat(a,b,c, True))
"""
... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/equivariance_error/main.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.424311 | '''
Aim: see that L_R Phi(x) = Phi(L_R x)
Where Phi is a composition of a S^2 convolution and a SO(3) convolution
For simplicity, R is a rotation around the Z axis.
'''
#pylint: disable=C,R,E1101,W0621
import torch
from s2cnn import s2_equatorial_grid, S2Convolution
from s2cnn import so3_equatorial_grid, SO3Convolu... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/shrec17/model_original.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.514724 | # pylint: disable=E1101,R,C
import torch.nn as nn
import torch.nn.functional as F
from s2cnn import s2_equatorial_grid, S2Convolution, so3_equatorial_grid, SO3Convolution
class Model(nn.Module):
def __init__(self, nclasses):
super().__init__()
self.features = [6, 50, 70, 350, nclasses]
s... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/shrec17/model.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.541579 | # pylint: disable=E1101,R,C
import torch.nn as nn
import torch.nn.functional as F
from s2cnn import s2_equatorial_grid, S2Convolution, so3_equatorial_grid, SO3Convolution, so3_integrate
class Model(nn.Module):
def __init__(self, nclasses):
super().__init__()
self.features = [6, 100, 100, nclasse... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/fast_ft/main.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.673443 | # pylint: disable=C,R,E1101,E1102,W0621
'''
Compare so3_ft with so3_fft
'''
import torch
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
b_in, b_out = 6, 6 # bandwidth
# random input data to be Fourier Transform
x = torch.randn(2 * b_in, 2 * b_in, 2 * b_in, dtype=torch.float, device=device) ... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/molecules/datagen.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.718783 | import argparse
import numpy as np
import scipy.io as spio
from scipy.spatial import distance as spdist
import joblib
import lie_learn.spaces.S2 as S2
MAX_NUM_ATOMS_PER_MOLECULE = 23
NUM_ATOM_TYPES = 5
def get_raw_data(path):
""" load data from matlab file """
raw = spio.loadmat(path)
coordinates = raw[... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/molecules/baseline_model.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.806634 | # pylint: disable=E1101,R,C
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
CHARGES = [0., 1., 6., 7., 8., 16.]
class BaselineRegressor(nn.Module):
'''Very simple baseline model only utilizing the frequency and charge
of atoms in a molecule.'''
def __init__(sel... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/shrec17/test.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:27.831438 | # pylint: disable=E1101,R,C
import os
import numpy as np
import shutil
import requests
import zipfile
from dataset import Shrec17, CacheNPY, ToMesh, ProjectOnSphere
from subprocess import check_output
import torch
import torchvision
import types
import importlib.machinery
class KeepName:
def __init__(self, transf... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.020359 | # pylint: disable=R,C,E1101,W0401
from .s2_ft import s2_rft
from .so3_ft import so3_rft
from .s2_grid import s2_near_identity_grid, s2_equatorial_grid, s2_soft_grid
from .so3_grid import so3_near_identity_grid, so3_equatorial_grid, so3_soft_grid
from .s2_mm import s2_mm
from .so3_mm import so3_mm
from .soft import *
|
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/shrec17/train.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.025830 | # pylint: disable=E1101,R,C,W1202
import torch
import torch.nn.functional as F
import torchvision
import os
import shutil
import time
import logging
import copy
import types
import importlib.machinery
from dataset import Shrec17, CacheNPY, ToMesh, ProjectOnSphere
def main(log_dir, model_path, augmentation, dataset,... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/s2_ft.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.080192 | # pylint: disable=R,C,E1101
import torch
import numpy as np
from functools import lru_cache
from s2cnn.utils.decorator import cached_dirpklgz
def s2_rft(x, b, grid):
"""
Real Fourier Transform
:param x: [..., beta_alpha]
:param b: output bandwidth signal
:param grid: tuple of (beta, alpha) tuples
... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/s2_grid.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.089234 | # pylint: disable=R,C,E1101
import numpy as np
def s2_near_identity_grid(max_beta=np.pi / 8, n_alpha=8, n_beta=3):
'''
:return: rings around the north pole
size of the kernel = n_alpha * n_beta
'''
beta = np.arange(start=1, stop=n_beta + 1, dtype=np.float) * max_beta / n_beta
alpha = np.linspa... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/s2_mm.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.156585 | # pylint: disable=R,C,E1101
from functools import lru_cache
import torch
import torch.cuda
from string import Template
# TODO simplify the cuda code like it was done in SO3_mm using only one code for the kernel
def s2_mm(x, y):
'''
:param x: [l * m, batch, feature_in, complex]
:param y: [l * m,... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/so3_ft.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.255535 | # pylint: disable=R,C,E1101
import torch
import numpy as np
from functools import lru_cache
from s2cnn.utils.decorator import cached_dirpklgz
def so3_rft(x, b, grid):
"""
Real Fourier Transform
:param x: [..., beta_alpha_gamma]
:param b: output bandwidth signal
:param grid: tuple of (beta, alpha, ... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/so3_grid.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.299903 | # pylint: disable=R,C,E1101
import numpy as np
import warnings
def so3_near_identity_grid(max_beta=np.pi / 8, max_gamma=2*np.pi, n_alpha=8, n_beta=3, n_gamma=None):
'''
:return: rings of rotations around the identity, all points (rotations) in
a ring are at the same distance from the identity
size of ... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | examples/mnist/run_classic.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.323241 | # pylint: disable=E1101,R,C
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import torch
import torch.utils.data as data_utils
import gzip
import pickle
import numpy as np
from torch.autograd import Variable
MNIST_PATH = "s2_mnist.gz"
DEVICE = torch.device("cuda:0" if torch.cuda.is_available(... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/soft/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.398819 | # pylint: disable=R,C,E1101,W0401
from .s2_conv import S2Convolution
from .so3_conv import SO3Convolution
from .so3_integrate import so3_integrate
from .so3_rotation import so3_rotation
|
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/so3_mm.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.412747 | # pylint: disable=R,C,E1101
import math
from functools import lru_cache
import torch
import torch.cuda
def so3_mm(x, y):
'''
:param x: [l * m * n, batch, feature_in, complex]
:param y: [l * m * n, feature_in, feature_out, complex]
:return: [l * m * n, batch, feature_out, complex]
'''
... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/soft/s2_conv.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.626049 | # pylint: disable=C,R,E1101
import math
import torch
from torch.nn.parameter import Parameter
from torch.nn.modules import Module
from .s2_fft import S2_fft_real
from .so3_fft import SO3_ifft_real
from s2cnn import s2_mm
from s2cnn import s2_rft
class S2Convolution(Module):
def __init__(self, nfeature_in, nfeatu... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/soft/so3_conv.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.638915 | # pylint: disable=C,R,E1101
import math
import torch
from torch.nn.parameter import Parameter
from torch.nn.modules import Module
from .so3_fft import SO3_fft_real, SO3_ifft_real
from s2cnn import so3_mm
from s2cnn import so3_rft
class SO3Convolution(Module):
def __init__(self, nfeature_in, nfeature_out, b_in, b... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/soft/s2_fft.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.657071 | # pylint: disable=R,C,E1101,E1102
from functools import lru_cache
import torch
import torch.cuda
from string import Template
from s2cnn.utils.decorator import cached_dirpklgz
import torch.fft
# inspired by https://gist.github.com/szagoruyko/89f83b6f5f4833d3c8adf81ee49f22a8
def s2_fft(x, for_grad=False, b_out=None):... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/soft/so3_fft.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.692845 | # pylint: disable=R,C,E1101,E1102
import math
from functools import lru_cache
import torch
import torch.cuda
from s2cnn.utils.decorator import cached_dirpklgz
# inspired by https://gist.github.com/szagoruyko/89f83b6f5f4833d3c8adf81ee49f22a8
def so3_fft(x, for_grad=False, b_out=None):
'''
:param x: [..., bet... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/soft/so3_integrate.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.770025 | # pylint: disable=R,C,E1101
import torch
from functools import lru_cache
from s2cnn.utils.decorator import show_running
def so3_integrate(x):
"""
Integrate a signal on SO(3) using the Haar measure
:param x: [..., beta, alpha, gamma] (..., 2b, 2b, 2b)
:return y: [...] (...)
"""
assert x.si... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/soft/so3_rotation.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.854500 | # pylint: disable=C,R,E1101
import torch
import numpy as np
from .so3_fft import SO3_fft_real, SO3_ifft_real
from s2cnn.utils.complex import complex_mm
from functools import lru_cache
from s2cnn.utils.decorator import cached_dirpklgz
def so3_rotation(x, alpha, beta, gamma):
'''
:param x: [..., beta, alpha, g... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/utils/complex.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:28.919368 | # pylint: disable=C,R,E1101
import torch
def as_complex(x):
"""
In pytorch, a complex array is represented as a real array with an extra length-2 axis at the end.
This function takes a real-valued array x and adds complex axis where the real part is set to x and the imaginary part is set to 0.
"""
... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/utils/cuda.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:29.005366 | # pylint: disable=R,C,E1101
from collections import namedtuple
from cupy.cuda import function # pylint: disable=E0401
from pynvrtc.compiler import Program # pylint: disable=E0401
CUDA_NUM_THREADS = 1024
CUDA_MAX_GRID_DIM = 2**16 - 1
def get_blocks(n, num_threads):
n_per_instance = (n + num_threads * CUDA_MAX_... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | s2cnn/utils/decorator.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:29.032654 | # pylint: disable=R,C,E1101
import threading
import time
from functools import wraps
from functools import lru_cache
import pickle
import gzip
import os
import sys
class WaitPrint(threading.Thread):
def __init__(self, t, message):
super().__init__()
self.t = t
self.message = message
... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:29.212279 | #pylint: disable=C
import os
from setuptools import setup, find_packages
setup(
name='s2cnn',
version="1.0.0",
author="Mario Geiger, Taco Cohen, Jonas Koehler",
description=("SO(3) equivariant CNNs for PyTorch."),
license="MIT",
keywords="so3 equivariant cnn pytorch",
url="https://github.co... |
jonkhler/s2cnn | https://github.com/jonkhler/s2cnn | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | tests/so3_fft.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:29.293845 | # pylint: disable=C,R,E1101,E1102,W0621
'''
Compare so3_ft with so3_fft
'''
import torch
from functools import partial
def test_so3_rfft(b_in, b_out, device):
x = torch.randn(2 * b_in, 2 * b_in, 2 * b_in, dtype=torch.float, device=device) # [beta, alpha, gamma]
from s2cnn.soft.so3_fft import so3_rfft
y1 ... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | core/common.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.214522 |
from io import BytesIO
import gzip, zlib
from urllib.parse import splitvalue, splitquery, urlencode
import socket
from urllib.error import URLError
from ssl import SSLError
import time, re
import CommonVar as cv
def raw_decompress(data, headers_msg):
encoding = headers_msg.get('Content-Encoding')
if encoding ... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | GUIEventBinder.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.217374 | # -*- coding: utf-8 -*-
import wx
import gui
import threading
import handler
import CommonVar as cv
import flow
def init():
FrameDownloader.bindEvent()
FrameParser.bindEvent()
FrameMerger.bindEvent()
DialogCopyLink.bindEvent()
class FrameDownloader:
@staticmethod
def bindEvent():
gui.f... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | CommonVar.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.218847 |
# status
SHUTDOWN = False
ALLTASKDONE = False
# parse
SEL_RES = None
PARAER_DOMAIN_MAPPING = {
'iqiyi.py': ['iqiyi.com'],
'bilibili.py': ['bilibili.com'],
'tencent.py': ['v.qq'],
'youku.py': ['youku'],
}
PARSER_PATH = 'core'
# REPO = 'https://raw.githubusercontent.com/ZSAIm/iqiyi-parser/master/c... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | core/bilibili.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.220985 |
import os
from core.common import BasicParser, BasicRespond, BasicVideoInfo, BasicAudioInfo, \
CONTENT_TYPE_MAP, make_query, dict_get_key, format_byte
from bs4 import BeautifulSoup
import re
import json
import CommonVar as cv
BILIBILI = None
LASTRES = None
HEADERS = {
# 'Host': 'www.bilibili.com',
'Conne... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | PyJSCaller.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.244551 | ##############################################
#
# author: ZSAIm
#
# github: https://github.com/ZSAIm/PyJSCaller
#
##############################################
import subprocess
import traceback, os
HANDLER_NAME = '___'
NODEPATH = ''
class Sesson:
def __init__(self, _file):
self._methods = {
... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | core/tencent.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.245859 |
import os
from core.common import BasicParser, BasicRespond, BasicVideoInfo, BasicAudioInfo, BasicUserCookie, \
CONTENT_TYPE_MAP, make_query, dict_get_key, format_byte, BasicUrlGroup, raw_decompress
from bs4 import BeautifulSoup
import re
import json
import PyJSCaller
import time
from urllib.parse import splittype... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | core/iqiyi.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.256006 | # -*- coding: utf-8 -*-
import time, random
import re
import json, os
import CommonVar as cv
from bs4 import BeautifulSoup
from urllib.parse import unquote
import PyJSCaller
from core.common import BasicParser, BasicRespond, BasicVideoInfo, make_query
IQIYI = None
QUALITY = {
1: 100,
2: 200,
3: 300,
... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | flow.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.286569 | # -*- coding: UTF-8 -*-
"""
Flow:
[load config]
|
[check undone job]
/ \
/ \
(do... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/about.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.829658 |
import wx
import wx.adv
class DialogAbout(wx.Dialog):
def __init__(self, parent):
wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=u"About", pos=wx.DefaultPosition,
size=wx.Size(350, 400), style=wx.DEFAULT_DIALOG_STYLE)
self.SetSizeHints(wx.DefaultSize, wx.DefaultS... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.845892 |
import wx
from gui.frame_downloader import *
from gui.frame_parser import FrameParser
from gui.about import DialogAbout
from gui.frame_merger import FrameMerger
from gui.dialog_gettool import DialogGetTool
from gui.dialog_settings import DialogSettings
from gui.dialog_copylink import DialogCopyLink
from gui.dialog_dl... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/dialog_dllog.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.857748 | import wx
# import wx.xrc
from gui.listctrl import ListCtrl_DLLog
import threading, time
# import io
EVT_DLLOG_APPEND = wx.NewId()
class DialogDLLog(wx.Dialog):
def __init__(self, parent):
wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=u"控制台日志", pos=wx.DefaultPosition, size=wx.Size(500, 500),
... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/dialog_gettool.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.871714 |
import wx
class DialogGetTool(wx.Dialog):
def __init__(self, parent, title, total_byte, dlm):
wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=title, pos=wx.DefaultPosition, size=wx.DefaultSize,
style=wx.DEFAULT_DIALOG_STYLE)
self.SetSizeHints(wx.DefaultSize, wx.D... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/dialog_copylink.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.877974 | import wx
# import wx.xrc
from gui.listctrl import ListCtrl_CopyLink
class DialogCopyLink(wx.Dialog):
def __init__(self, parent):
wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=u"链接浏览窗口", pos=wx.DefaultPosition, size=wx.Size(500, 500),
style=wx.DEFAULT_DIALOG_STYLE)
... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/frame_downloader.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.890440 | # -*- coding: utf-8 -*-
import wx
from gui.item_sizer import ItemBoxSizer, format_byte
import time
import CommonVar as cv
COLOR_OK = 1
COLOR_NORMAL = 2
COLOR_ERROR = 3
COLOR_RUN = 4
class FrameMain(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, id=wx.ID_ANY, title='视频下载器', pos=w... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/frame_parser.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.891132 | # -*- coding: utf-8 -*-
import wx
from gui.listctrl import ListCtrl_Parser
ID_BUTTON_PARSE_EVENT = wx.NewId()
class FrameParser(wx.Frame):
def __init__(self, parent, *args):
wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=u'视频解析器', pos=wx.DefaultPosition,
size=wx.Size(420,... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/frame_merger.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.910339 | # -*- coding: utf-8 -*-
import wx, time
EVT_OUTPUT_APPEND = wx.NewId()
EVT_OUTPUT_UPDATE = wx.NewId()
class FrameMerger(wx.Frame):
def __init__(self, parent):
wx.Frame.__init__(self, parent, id=wx.ID_ANY, title=u'FFMPEG 输出窗口', pos=wx.DefaultPosition,
size=wx.Size(427, 450), sty... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/dialog_settings.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.916298 | # -*- coding: utf-8 -*-
import wx
import CommonVar as cv
from handler import settings
class DialogSettings(wx.Dialog):
def __init__(self, parent):
wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=u'设置', pos=wx.DefaultPosition,
size=wx.Size(390, 435), style=wx.DEFAULT_DIALOG... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/item_sizer.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:31.942374 |
import wx
def format_byte(bytes, format='%.2f%s'):
if bytes > 1024 * 1024 * 1024:
return format % (bytes / 1024.0 / 1024 / 1024, 'GB')
elif bytes > 1024 * 1024:
return format % (bytes / 1024.0 / 1024, 'MB')
elif bytes > 1024:
return format % (bytes / 1024.0, 'KB')
else:
... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | gui/listctrl.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.420905 | # -*- coding: utf-8 -*-
import wx
ODD_BGCOLOR = wx.Colour(240, 240, 240, 255)
EVEN_BGCOLOR = wx.Colour(255, 255, 255, 255)
class ListCtrl_Parser(wx.ListCtrl):
def __init__(self, *args):
wx.ListCtrl.__init__(self, *args)
self.initColumn()
self.menu = Menu_Parser()
self.Bind(wx.EV... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | handler/downloader.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.479535 |
import os, threading
import nbdler
import gui
import wx
import CommonVar as cv
from core.common import BasicUrlGroup
SHUTDOWN = False
HANDLER = None
class Handler:
def __init__(self):
self.dlm = nbdler.Manager()
self.filepath = ''
self.max_task = 5
self.max_conn = 3
... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | handler/logs.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.496596 |
import sys, time
from threading import Thread, Lock
import gui, wx, io
import CommonVar as cv
class STDRedirect:
def __init__(self, std):
self._buff = ''
self.__console__ = std
self.list_counter = 0
def write(self, data):
self.__console__.write(data)
if data and not c... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | handler/merger.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.497198 | # -*- coding: utf-8 -*-
import threading, io, os, time
import gui
import CommonVar as cv
import subprocess
import re
import wx
from gui.frame_merger import MergerOutputAppendEvent, MergerOutputUpdateEvent
import gc
SHUTDOWN = False
class CustomMethod:
def __init__(self, method, format_set):
self.metho... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | handler/settings.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.523225 |
import os, time
from configparser import ConfigParser, NoSectionError, NoOptionError
import CommonVar as cv
import gui
FILE_URL = {
'node': 'https://npm.taobao.org/mirrors/node/v0.12.18/node.exe',
'ffmpeg': 'https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-3.2-win64-static.zip'
}
def setUndoneJob(ur... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLAllotter.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.527880 |
from math import ceil
import threading
class Allotter(object):
def __init__(self, Handler, GlobalProgress):
self.globalprog = GlobalProgress
self.handler = Handler
# self.__allotter_lock__ = threading.Lock()
def makeBaseConn(self):
ranges = self.blockToRange(self.makeEvenBlo... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | main.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.529464 | # -*- coding: utf-8 -*-
"""
author: ZSAIm
github: https://github.com/ZSAIm/iqiyi-parser
"""
import gui
import wx, time, sys
import GUIEventBinder
import socket
import threading
import flow
import handler
from handler.logs import STDRedirect
import io
socket.setdefaulttimeout(3)
def main():
threading.Thread(... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | handler/parser.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.533224 | # -*- coding: utf-8 -*-
import time, random
import re
import json, os
from bs4 import BeautifulSoup
from urllib.parse import unquote
import PyJSCaller
from core.common import BasicParser, BasicRespond, BasicVideoInfo, \
make_query, BasicUserCookie, BasicUrlGroup, BasicAudioInfo, raw_decompress, extract_query
impo... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLCommon.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:32.534616 |
# thread name
ADDNODE = 'Nb-AddNode'
LAUNCHER = 'Nb-Launcher'
MANAGER = 'Nb-Manager'
PROCESSOR = 'Nb-Processor'
RELEASE_BUFF = 'Nb-ReleaseBuff'
INSPECTOR = 'Nb-Inspector'
ALLOTTER = 'Nb-Allotter'
THREADPOOL = 'Nb-ThreadPool' |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLError.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.074762 |
import threading
class DLUrlError(Exception):
def __init__(self, handler, res):
# self.thread = thread
self.handler = handler
self.respond = res
def __repr__(self):
return '<%s> - %s' % (self.handler.file.name, self.respond.__repr__())
class HTTPErrorCounter:
ERR_4X... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLHandler.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.086488 |
import logging
from .DLInfos import *
from .DLProgress import *
from .packer import Packer
import time, os
from .DLThreadPool import ThreadPool
# LOG_FORMAT = "%(asctime)s,%(msecs)03d - %(levelname)s - %(threadName)-12s - (%(progress)s)[%(urlid)s] - %(message)s"
#
# logging.basicConfig(format=LOG_FORMAT, datefmt="%m... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLManager.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.109299 |
from .packer import Packer
import time, threading
from .DLError import DLUrlError
from .DLThreadPool import ThreadPool
import queue
from . import DLCommon as cv
from .DLProgress import TimeStatus
class Manager(Packer, object):
def __init__(self, daemon=False, max_task=2):
self.threads = ThreadPool(daem... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLInfos.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.129807 | # -*- coding: UTF-8 -*-
from wsgiref.headers import Headers
import re, time
from .packer import Packer
import threading
import socket
import sys
from .DLError import DLUrlError
import traceback
from . import DLCommon as cv
if sys.version_info >= (3, 0):
from http.client import HTTPResponse
from http.cookiejar... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.138705 | #---------------------------------------------------------------------------
# Name: nbdler/__init__.py
# Author: ZSAIm
#
# Created: 20-Jan-2019
# License: Apache-2.0
#---------------------------------------------------------------------------
from .DLManager import Manager
from .DLProgress import... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLProcessor.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.139318 |
# from urllib import request
import socket, ssl
import threading
import time
from .DLInfos import Target
# import logging
import traceback
from .DLError import HTTPErrorCounter, DLUrlError
# import gc
# import io
from . import DLCommon as cv
import http.client
import sys
if sys.version_info <= (2, 7):
from urlli... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLInspector.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.153062 |
import time
from . import DLCommon as cv
import threading
# logger = logging.getLogger('nbdler')
class Inspector(object):
def __init__(self, Handler, GlobalProgress, Allotter):
self.globalprog = GlobalProgress
self.handler = Handler
self.allotter = Allotter
self._insp_thr = None
... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLThreadPool.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.162257 |
# import logging
import threading
import time
from . import DLCommon as cv
class ThreadPool:
def __init__(self, daemon):
self._daemon = daemon
self._threads = []
self._insp_thr_ = None
self._app_lock = threading.Lock()
def Thread(self, *args, **kwargs):
with self._app_... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/DLProgress.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.163833 |
import time, os
from . import DLProcessor
from .packer import Packer
import gc
import traceback
from . import DLCommon as cv
class TimeStatus(Packer, object):
def __init__(self):
self.go_startTime = None
self.go_endtime = None
self.go_lastTime = 0
self.go_end = False
se... |
ZSAIm/iqiyi-parser | https://github.com/ZSAIm/iqiyi-parser | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | nbdler/packer.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:33.187517 |
class Packer:
def pack(self):
def dig_pack(obj):
if isinstance(obj, list) or isinstance(obj, tuple):
tmplist = []
for m in obj:
if 'pack' in dir(m):
tmplist.append(m.pack())
else:
... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/agent/fastrtc_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:35.657494 | from typing import AsyncIterator, List, Optional, Tuple
import numpy as np
from fastrtc import ReplyOnPause, Stream
from realtime_phone_agents.agent.stream import VoiceAgentStream
from langchain.agents import create_agent
from langchain_groq import ChatGroq
from langgraph.checkpoint.memory import InMemorySaver
from lo... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:35.659457 | from loguru import logger
from realtime_phone_agents.observability.opik_utils import configure
from realtime_phone_agents.avatars.registry import register_all_avatars, version_all_avatars
configure()
logger.info("Registering all avatars")
register_all_avatars()
logger.info("Versioning all avatars")
version_all_avata... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | scripts/runpod/create_faster_whisper_pod.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:35.660576 | import time
import requests
import runpod
from realtime_phone_agents.config import settings
runpod.api_key = settings.runpod.api_key
print("Creating Faster Whisper pod...")
pod = runpod.create_pod(
name="Faster Whisper Server",
image_name="theneuralmaze/faster-whisper-server:latest",
gpu_type_id=setting... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | scripts/run_gradio_application.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:35.666360 | import logging
import os
import warnings
from uuid import uuid4
# Suppress all warnings before importing other modules
warnings.filterwarnings("ignore")
# Set environment variables to suppress model download logs
os.environ["HF_HUB_DISABLE_PROGRESS_BARS"] = "1"
os.environ["TRANSFORMERS_VERBOSITY"] = "error"
os.enviro... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | scripts/runpod/create_orpheus_pod.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:35.667837 | import time
import requests
import runpod
from realtime_phone_agents.config import settings
runpod.api_key = settings.runpod.api_key
print("Creating Orpheus pod...")
pod = runpod.create_pod(
name="Orpheus Server",
image_name="theneuralmaze/orpheus-llamacpp-server:latest",
gpu_type_id=settings.runpod.orp... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | scripts/make_outbound_call.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:36.693582 | """
Interactive application to make outbound calls using the Twilio integration.
This script provides a user-friendly interface to initiate calls through the API.
"""
import sys
import requests
from loguru import logger
def print_banner():
"""Print welcome banner."""
banner = """
╔═════════════════════════... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | scripts/runpod/create_call_center_pod.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:36.809832 | import runpod
from realtime_phone_agents.config import settings
runpod.api_key = settings.runpod.api_key
print("Creating Call Center pod...")
pod = runpod.create_pod(
name="Call Center",
image_name="theneuralmaze/agent-call-center:latest",
cloud_type="SECURE",
volume_in_gb=20,
volume_mount_path="/... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | scripts/ingest_properties.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:36.847670 | """
Script to ingest properties data into Qdrant Cloud using PropertySearchService.
This script loads property data from a CSV file and ingests it into Qdrant
using the Superlinked framework for semantic search capabilities.
"""
from pathlib import Path
from loguru import logger
from realtime_phone_agents.infrastru... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/api/routes/health.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:37.265916 | from fastapi import APIRouter
router = APIRouter(prefix="/health", tags=["health"])
@router.get("")
async def health_check():
"""Health check endpoint to monitor service readiness."""
try:
return {
"status": "healthy",
"message": "Service is ready",
}
except Except... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/api/routes/superlinked.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:37.435736 | from fastapi import APIRouter, HTTPException, Request
from realtime_phone_agents.api.models import IngestRequest, SearchRequest
router = APIRouter(prefix="/superlinked", tags=["superlinked"])
@router.post("/ingest")
async def ingest_properties(ingest_request: IngestRequest, request: Request):
"""
Ingest pro... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/api/routes/voice.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:37.459329 | from uuid import uuid4
from fastapi import APIRouter, FastAPI, HTTPException
from twilio.rest import Client
from realtime_phone_agents.agent.fastrtc_agent import FastRTCAgent
from realtime_phone_agents.api.models import CallRequest
from realtime_phone_agents.config import settings
router = APIRouter(prefix="/call", ... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/avatars/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:37.822129 | """Avatar system for real estate agent personas."""
from .base import Avatar
from .registry import (
get_avatar,
list_avatars,
get_all_avatars,
register_avatar,
register_all_avatars,
version_all_avatars,
AvatarRegistry,
)
__all__ = [
"Avatar",
"get_avatar",
"list_avatars",
... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/avatars/base.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:37.885559 | """Base Avatar class and system prompt template."""
from pathlib import Path
from pydantic import BaseModel, Field
import yaml
from realtime_phone_agents.observability.prompt_versioning import Prompt
DEFAULT_SYSTEM_PROMPT_TEMPLATE = """
{avatar_intro}
Your purpose is to provide short, clear, concrete, summarised in... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/avatars/registry.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:38.009518 | """Avatar registry and management functions."""
from pathlib import Path
from typing import Dict, List, Optional
from realtime_phone_agents.avatars.base import Avatar
class AvatarRegistry:
"""
Central registry for managing avatars.
Automatically discovers and loads avatar definitions from YAML files... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/background_effects/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:38.066883 | from realtime_phone_agents.background_effects.keyboard import KeyboardEffect
def get_sound_effect(effect_type: type | None = None):
"""
Create and return a sound effect instance.
Args:
effect_type: The type of effect to create. Defaults to KeyboardEffect.
Returns:
An instance of the ... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/background_effects/base.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:38.418872 | from abc import ABC, abstractmethod
from typing import AsyncIterator, Tuple
import numpy as np
AudioChunk = Tuple[int, np.ndarray] # (sample_rate, samples)
class BaseVoiceEffect(ABC):
"""
Base class for any audio effect that streams audio chunks.
Examples: keyboard clicks, hold music, notifications.
... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/background_effects/keyboard.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:38.501585 | import asyncio
from pathlib import Path
from typing import AsyncIterator, List
from realtime_phone_agents.background_effects.utils.audio_loader import (
load_audio_chunks,
)
from .base import AudioChunk, BaseVoiceEffect
# Get the directory where this file is located
_EFFECTS_DIR = Path(__file__).parent
_DEFAULT_... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/background_effects/utils/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:38.632797 | from typing import List, Tuple
import numpy as np
from pydub import AudioSegment
AudioChunk = Tuple[int, np.ndarray] # (sample_rate, samples)
def load_audio_chunks(
path: str, target_rate: int = 16000, chunk_ms: int = 100
) -> List[AudioChunk]:
"""
Load an audio file and split it into float32 [-1, 1] c... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/background_effects/utils/audio_loader.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:38.746685 | from typing import List, Tuple
import numpy as np
from pydub import AudioSegment
AudioChunk = Tuple[int, np.ndarray] # (sample_rate, samples)
def load_audio_chunks(
path: str, target_rate: int = 16000, chunk_ms: int = 100
) -> List[AudioChunk]:
"""
Load an audio file and split it into float32 [-1, 1] c... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/config.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:39.022775 | from typing import ClassVar
from pydantic import BaseModel, Field
from pydantic_settings import BaseSettings, SettingsConfigDict
# --- Groq Configuration ---
class GroqSettings(BaseModel):
api_key: str = Field(default="", description="Groq API Key")
base_url: str = Field(
default="https://api.groq.co... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/infrastructure/superlinked/constants.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:39.343624 | NEIGHBORHOODS = [
"Chueca-Justicia",
"Imperial",
"Malasaña-Universidad",
"Hortaleza",
"Centro",
"Chamartín",
"Ciudad Lineal",
"Barrio de Salamanca",
"Chamberí",
"Fuencarral",
"San Blas",
"Goya",
"Palacio",
"Lista",
"Ventas",
"Moncloa",
"Huertas-Cortes"... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/infrastructure/superlinked/index.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:39.654944 | from superlinked import framework as sl
from realtime_phone_agents.config import settings
class Property(sl.Schema):
"""Schema for real estate properties."""
id: sl.IdField
description: sl.String
baths: sl.Integer
rooms: sl.Integer
sqft: sl.Integer
location: sl.String
price: sl.Integ... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/infrastructure/superlinked/query.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:39.867176 | from superlinked import framework as sl
from realtime_phone_agents.config import settings
from realtime_phone_agents.infrastructure.superlinked.constants import NEIGHBORHOODS
from realtime_phone_agents.infrastructure.superlinked.index import (
description_space,
price_space,
property_index,
property_sc... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/infrastructure/superlinked/service.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:39.979637 | from typing import Any
import pandas as pd
from loguru import logger
from superlinked import framework as sl
from realtime_phone_agents.config import settings
from realtime_phone_agents.infrastructure.superlinked.index import (
property_index,
property_schema,
)
from realtime_phone_agents.infrastructure.super... |
neural-maze/realtime-phone-agents-course | https://github.com/neural-maze/realtime-phone-agents-course | null | null | null | null | 973 | null | null | mit | null | null | null | null | null | null | null | src/realtime_phone_agents/observability/opik_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:38:40.254051 | import os
import opik
from loguru import logger
from opik.configurator.configure import OpikConfigurator
from realtime_phone_agents.config import settings
def configure() -> None:
if settings.opik.api_key and settings.opik.project_name:
try:
client = OpikConfigurator(api_key=settings.opik.ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.