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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_2D/rrt_connect.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.010482 | """
RRT_CONNECT_2D
@author: huiming zhou
"""
import os
import sys
import math
import copy
import numpy as np
import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Sampling_based_Planning/")
from Sampling_based_Planning.rrt_2D import env, plotting, utils
... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_2D/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.013071 | """
utils for collision check
@author: huiming zhou
"""
import math
import numpy as np
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Sampling_based_Planning/")
from Sampling_based_Planning.rrt_2D import env
from Sampling_based_Planning.rrt_2D.rrt import Nod... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_2D/rrt_star.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.014412 | """
RRT_star 2D
@author: huiming zhou
"""
import os
import sys
import math
import numpy as np
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Sampling_based_Planning/")
from Sampling_based_Planning.rrt_2D import env, plotting, utils, queue
class Node:
def __init__(self, n):... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/env3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.015285 | # this is the three dimensional configuration space for rrt
# !/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: yue qi
"""
import numpy as np
# from utils3D import OBB2AABB
def R_matrix(z_angle,y_angle,x_angle):
# s angle: row; y angle: pitch; z angle: yaw
# generate rotation matrix in SO3
... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/BIT_star3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.016299 | # This is Batched Informed Tree star 3D algorithm
# implementation
"""
This is ABIT* code for 3D
@author: yue qi
Algorithm 1
source: Gammell, Jonathan D., Siddhartha S. Srinivasa, and Timothy D. Barfoot. "Batch informed trees (BIT*):
Sampling-based optimal planning via the heuristically guided search of impl... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_2D/rrt_star_smart.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.017349 | """
RRT_STAR_SMART 2D
@author: huiming zhou
"""
import os
import sys
import math
import random
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from scipy.spatial.transform import Rotation as Rot
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../.... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/ABIT_star3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.018378 | # This is Advanced Batched Informed Tree star 3D algorithm
# implementation
"""
This is ABIT* code for 3D
@author: yue qi
source: M.P.Strub, J.D.Gammel. "Advanced BIT* (ABIT*):
Sampling-Based Planning with Advanced Graph-Search Techniques"
"""
import numpy as np
import matplotlib.pyplot as plt
import time
i... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/FMT_star3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.019627 | """
This is fast marching tree* code for 3D
@author: yue qi
source: Janson, Lucas, et al. "Fast marching tree: A fast marching sampling-based method
for optimal motion planning in many dimensions."
The International journal of robotics research 34.7 (2015): 883-921.
"""
import numpy as np
import matp... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/dynamic_rrt3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:48.020788 | """
This is dynamic rrt code for 3D
@author: yue qi
"""
import numpy as np
import time
import matplotlib.pyplot as plt
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../Sampling_based_Planning/")
from rrt_3D.env3D import env
from rrt_3D.utils3D import getDist, sampleFree, neare... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/rrt3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:50.817021 | """
This is rrt star code for 3D
@author: yue qi
"""
import numpy as np
from numpy.matlib import repmat
from collections import defaultdict
import time
import matplotlib.pyplot as plt
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../Sampling_based_Planning/")
from rrt_3D.env3... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/plot_util3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:50.818943 | # plotting
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import mpl_toolkits.mplot3d as plt3d
from mpl_toolkits.mplot3d import proj3d
import numpy as np
def CreateSphere(center, r):
u = np.linspace(0, 2 * np.pi, 30)
v... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/rrt_star3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:50.820137 | """
This is rrt star code for 3D
@author: yue qi
"""
import numpy as np
from numpy.matlib import repmat
from collections import defaultdict
import time
import matplotlib.pyplot as plt
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../Sampling_based_Planning/")
from rrt_3D.env3D... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/rrt_connect3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:50.821669 | # rrt connect algorithm
"""
This is rrt connect implementation for 3D
@author: yue qi
"""
import numpy as np
from numpy.matlib import repmat
from collections import defaultdict
import time
import matplotlib.pyplot as plt
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../Samplin... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/queue.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:50.822576 | # min heap used in the FMT*
import collections
import heapq
import itertools
class MinheapPQ:
"""
A priority queue based on min heap, which takes O(logn) on element removal
https://docs.python.org/3/library/heapq.html#priority-queue-implementation-notes
"""
def __init__(self):
self.pq = []... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/informed_rrt_star3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:50.823945 | # informed RRT star in 3D
"""
This is IRRT* code for 3D
@author: yue qi
source: J. D. Gammell, S. S. Srinivasa, and T. D. Barfoot, “Informed RRT*:
Optimal sampling-based path planning focused via direct sampling of
an admissible ellipsoidal heuristic,” in IROS, 2997–3004, 2014.
"""
import numpy as np
i... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/Astar.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.424143 | """
A_star 2D
@author: huiming zhou
"""
import os
import sys
import math
import heapq
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting, env
class AStar:
"""AStar set the cost + heuristics as the priority
"""
def... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/Anytime_D_star.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.425662 | """
Anytime_D_star 2D
@author: huiming zhou
"""
import os
import sys
import math
import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting
from Search_2D import env
class ADStar:
def __init__(self... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/Best_First.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.427148 | """
Best-First Searching
@author: huiming zhou
"""
import os
import sys
import math
import heapq
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting, env
from Search_2D.Astar import AStar
class BestFirst(AStar):
"""BestFir... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/D_star.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.450640 | """
D_star 2D
@author: huiming zhou
"""
import os
import sys
import math
import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting, env
class DStar:
def __init__(self, s_start, s_goal):
se... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/Bidirectional_a_star.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.452897 | """
Bidirectional_a_star 2D
@author: huiming zhou
"""
import os
import sys
import math
import heapq
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting, env
class BidirectionalAStar:
def __init__(self, s_start, s_goal, heu... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/D_star_Lite.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.479783 | """
D_star_Lite 2D
@author: huiming zhou
"""
import os
import sys
import math
import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting, env
class DStar:
def __init__(self, s_start, s_goal, heuris... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/ARAstar.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.564949 | """
ARA_star 2D (Anytime Repairing A*)
@author: huiming zhou
@description: local inconsistency: g-value decreased.
g(s) decreased introduces a local inconsistency between s and its successors.
"""
import os
import sys
import math
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../S... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/utils3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:51.974902 | import numpy as np
from numpy.matlib import repmat
import pyrr as pyrr
from collections import deque
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../../Sampling_based_Planning/")
from rrt_3D.plot_util3D import visualization
def getRay(x, y):
direc = [y[0] - x[... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/LPAstar.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:52.083722 | """
LPA_star 2D
@author: huiming zhou
"""
import os
import sys
import math
import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting, env
class LPAStar:
def __init__(self, s_start, s_goal, heurist... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/RTAAStar.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:52.087156 | """
RTAAstar 2D (Real-time Adaptive A*)
@author: huiming zhou
"""
import os
import sys
import copy
import math
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import queue, plotting, env
class RTAAStar:
def __init__(self, s_start, s_g... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/LRTAstar.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:52.088606 | """
LRTA_star 2D (Learning Real-time A*)
@author: huiming zhou
"""
import os
import sys
import copy
import math
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import queue, plotting, env
class LrtAStarN:
def __init__(self, s_start, s... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Search_based_Planning/Search_2D/Dijkstra.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:52.089249 | """
Dijkstra 2D
@author: huiming zhou
"""
import os
import sys
import math
import heapq
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Search_based_Planning/")
from Search_2D import plotting, env
from Search_2D.Astar import AStar
class Dijkstra(AStar):
"""Dijkstra set the... |
zhm-real/PathPlanning | https://github.com/zhm-real/PathPlanning | null | null | null | null | 9,268 | null | null | mit | null | null | null | null | null | null | null | Sampling_based_Planning/rrt_3D/extend_rrt3D.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:52.821724 | # Real-Time Randomized Path Planning for Robot Navigation∗
"""
This is rrt extend code for 3D
@author: yue qi
"""
import numpy as np
from numpy.matlib import repmat
from collections import defaultdict
import time
import matplotlib.pyplot as plt
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__fi... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/dummy_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.371538 | from autoagent.types import Agent
from autoagent.tools import tool_dummy
from typing import Union
from autoagent.registry import register_plugin_agent # import the register_agent function from the registry
@register_plugin_agent(name = "Dummy Agent", func_name="get_dummy_agent") # You must register the agent in the re... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/math/math_solver_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.408619 | from autoagent.types import Agent
from autoagent.registry import register_plugin_agent
@register_plugin_agent(name="Math Solver Agent", func_name="get_math_solver_agent")
def get_math_solver_agent(model: str):
'''
This agent solves mathematical problems using analytical and systematic approaches.
'''
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/math/vote_aggregator_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.409948 | from autoagent.types import Agent
from autoagent.registry import register_plugin_agent
@register_plugin_agent(name="Vote Aggregator Agent", func_name="get_vote_aggregator_agent")
def get_vote_aggregator_agent(model: str):
'''
This agent aggregates solutions from different solvers and determines the final answ... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.414783 | # from autoagent.agents.programming_agent import get_programming_agent
# from autoagent.agents.tool_retriver_agent import get_tool_retriver_agent
# from autoagent.agents.agent_check_agent import get_agent_check_agent
# from autoagent.agents.tool_check_agent import get_tool_check_agent
# from autoagent.agents.github_age... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/form_complie.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.419577 | from pydantic import BaseModel, Field, validator, field_validator, ValidationInfo
from typing import List, Dict, Optional, Literal
import xml.etree.ElementTree as ET
class KeyDescription(BaseModel):
key: str
description: str
class Tool(BaseModel):
name: str
description: str
class ToolSet(BaseModel):
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/agent_creator.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.420681 | from autoagent.registry import register_agent
from autoagent.tools.meta.edit_agents import list_agents, create_agent, delete_agent, run_agent, read_agent, create_orchestrator_agent
from autoagent.tools.meta.edit_tools import list_tools, create_tool, delete_tool, run_tool
from autoagent.tools.terminal_tools import execu... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/github_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.437921 | from autoagent.types import Agent
from autoagent.tools import (
push_changes, submit_pull_request
)
from autoagent.registry import register_agent
@register_agent(name = "Github Agent", func_name="get_github_agent")
def get_github_agent(model: str):
def instructions(context_variables):
return \
f"""You... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.445657 | from .core import MetaChain
from .types import Agent, Response
# from .workflow import Graph, meta_workflow, FlowEngine
from .flow import default_drive
import autoagent.workflows
import autoagent.tools
import autoagent.agents
__all__ = ["MetaChain", "Agent", "Response", "default_drive", ]
|
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/agent_former.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.446974 | from autoagent.registry import register_agent
from autoagent.tools.meta.edit_agents import list_agents, create_agent, delete_agent, run_agent, read_agent
from autoagent.tools.meta.edit_tools import list_tools, create_tool, delete_tool, run_tool
from autoagent.tools.terminal_tools import execute_command
from autoagent.t... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/agent_editor.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:55.448391 | from autoagent.registry import register_agent
from autoagent.tools.meta.edit_agents import list_agents, create_agent, delete_agent, run_agent
from autoagent.tools.terminal_tools import execute_command
from autoagent.types import Agent
from autoagent.io_utils import read_file
@register_agent(name = "Agent Editor Agent"... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/system_agent/system_triage_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:56.453785 | from .filesurfer_agent import get_filesurfer_agent
from .programming_agent import get_coding_agent
from .websurfer_agent import get_websurfer_agent
from autoagent.registry import register_agent
from autoagent.types import Agent, Result
from autoagent.tools.inner import case_resolved, case_not_resolved
@register_agent(... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/system_agent/filesurfer_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:56.454535 | from autoagent.types import Agent
from autoagent.registry import register_agent
from autoagent.tools import open_local_file, page_up_markdown, page_down_markdown, find_on_page_ctrl_f, find_next, visual_question_answering
from autoagent.tools.file_surfer_tool import with_env
from autoagent.environment.markdown_browser i... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/workflow_creator.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:56.455493 | from autoagent.registry import register_agent
from autoagent.tools.meta.edit_agents import list_agents, create_agent, delete_agent, run_agent, read_agent, create_orchestrator_agent
from autoagent.tools.meta.edit_workflow import list_workflows, create_workflow, run_workflow
from autoagent.tools.terminal_tools import exe... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/tool_editor.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:56.457888 | from autoagent.registry import register_agent
from autoagent.tools.meta.edit_tools import list_tools, create_tool, delete_tool, run_tool, get_metachain_path
from autoagent.tools.meta.tool_retriever import get_api_plugin_tools_doc
from autoagent.tools.meta.search_tools import search_trending_models_on_huggingface, get_h... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/worklow_form_complie.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:56.459143 | from pydantic import BaseModel, Field, field_validator, ValidationInfo, model_validator
from typing import List, Dict, Optional, Literal, Union
import xml.etree.ElementTree as ET
import re
# 基础模型
class WorkflowFormParseError(Exception):
"""Exception raised when WorkflowForm failed to parse.
"""
def __init... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/system_agent/programming_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:56.460020 | from autoagent.types import Agent
from autoagent.tools import (
gen_code_tree_structure, execute_command, read_file, create_file, write_file, list_files, create_directory, run_python, terminal_page_up, terminal_page_down, terminal_page_to
)
from autoagent.util import make_message, make_tool_message
from autoagent.r... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/meta_agent/workflow_former.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:56.481412 | from autoagent.registry import register_agent
from autoagent.tools.meta.edit_agents import list_agents, create_agent, delete_agent, run_agent, read_agent
from autoagent.tools.meta.edit_tools import list_tools, create_tool, delete_tool, run_tool
from autoagent.tools.meta.edit_workflow import list_workflows
from autoagen... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/tool_retriver_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:57.638259 | from autoagent.types import Agent
from autoagent.tools import (
get_api_plugin_tools_doc
)
from autoagent.util import make_message, make_tool_message
from autoagent.registry import register_agent
@register_agent(name = "Tool Retriver Agent", func_name="get_tool_retriver_agent")
def get_tool_retriver_agent(model: st... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:57.639611 | import click
import importlib
from autoagent import MetaChain
from autoagent.util import debug_print
import asyncio
from constant import DOCKER_WORKPLACE_NAME
from autoagent.io_utils import read_yaml_file, get_md5_hash_bytext, read_file
from autoagent.environment.utils import setup_metachain
from autoagent.types import... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/browser_env.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:57.697758 | import atexit
import base64
import io
import json
import multiprocessing
import time
import uuid
import browsergym.core # noqa F401 (we register the openended task as a gym environment)
import gymnasium as gym
import html2text
import numpy as np
import tenacity
from browsergym.utils.obs import flatten_dom_to_str
from... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/agents/system_agent/websurfer_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:57.763050 | from autoagent.types import Agent
from autoagent.registry import register_agent
from autoagent.tools import click, page_down, page_up, history_back, history_forward, web_search, input_text, sleep, visit_url, get_page_markdown
from autoagent.tools.web_tools import with_env
from autoagent.environment.browser_env import B... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/browser_cookies.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.127551 | import json
from pathlib import Path
import glob
wd = Path(__file__).parent.resolve()
def load_cookies_from_json(json_path):
with open(json_path, 'r') as f:
cookies = json.load(f)
return cookies
def convert_cookies_to_python():
all_cookies = []
# cookie_files = [
# "orcid.org.cookies.... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/cli_utils/metachain_meta_agent.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.229147 | from autoagent import MetaChain
from autoagent.util import UserCompleter
from prompt_toolkit import PromptSession
from prompt_toolkit.formatted_text import HTML
from prompt_toolkit.styles import Style
from autoagent.logger import LoggerManager, MetaChainLogger
from rich.console import Console
from rich.panel import Pa... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.230089 | from .docker_env import DockerEnv, DockerConfig
from .local_env import LocalEnv
from .browser_env import BrowserEnv, VIEWPORT
from .markdown_browser import RequestsMarkdownBrowser
from .utils import setup_metachain |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/docker_env.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.237918 | import os
import os.path as osp
import subprocess
from constant import BASE_IMAGES, AI_USER, GITHUB_AI_TOKEN
import time
import socket
import json
from pathlib import Path
import shutil
wd = Path(__file__).parent.resolve()
from dataclasses import dataclass, field
from typing import Optional, Union, Dict
from functools ... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/local_env.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.578933 | import subprocess
import json
import os
from pathlib import Path
import platform
import os.path as osp
from autoagent.environment.docker_env import DockerConfig
class LocalEnv:
def __init__(self, docker_config: DockerConfig = None):
if docker_config is None:
self.docker_workplace = os.getcwd()
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/cli_utils/file_select.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.580216 | import tkinter as tk
from tkinter import filedialog
import shutil
import os
from rich.console import Console
def select_and_copy_files(dest_dir, console: Console, docker_files_dir: str):
# 创建 tkinter 根窗口但隐藏它
root = tk.Tk()
root.withdraw()
# 打开文件选择对话框
files = filedialog.askopenfilenames(
ti... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/cli_utils/metachain_meta_workflow.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.581230 | from autoagent import MetaChain
from autoagent.util import ask_text, single_select_menu, print_markdown, debug_print, UserCompleter
from prompt_toolkit import PromptSession
from prompt_toolkit.formatted_text import HTML
from prompt_toolkit.styles import Style
from autoagent.logger import LoggerManager, MetaChainLogger ... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/markdown_browser/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.980742 | from .abstract_markdown_browser import AbstractMarkdownBrowser
from .markdown_search import AbstractMarkdownSearch, BingMarkdownSearch
# TODO: Fix mdconvert
from .mdconvert import ( # type: ignore
DocumentConverterResult,
FileConversionException,
MarkdownConverter,
UnsupportedFormatException,
)
from .... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/core.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:58.981795 | # Standard library imports
import copy
import json
from collections import defaultdict
from typing import List, Callable, Union
from datetime import datetime
# Local imports
import os
from .util import function_to_json, debug_print, merge_chunk, pretty_print_messages
from .types import (
Agent,
AgentFunction,
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/tcp_server.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:59.422936 | import socket
import subprocess
import json
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--workplace", type=str, default=None)
parser.add_argument("--conda_path", type=str, default=None)
parser.add_argument("--port", type=int, default=None)
args = parser.parse_args()
if __name__ == "__main_... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/mdconvert.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:59.453266 |
from browsergym.core.action.functions import goto, page
from autoagent.environment.markdown_browser import MarkdownConverter
def _get_page_markdown():
"""
Get the markdown content of the current page
Examples:
_get_page_markdown()
"""
# # type: ignore
import io
import base64
im... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/shutdown_listener.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:59.466190 | """
This module monitors the app for shutdown signals
"""
import asyncio
import signal
import threading
import time
from types import FrameType
from uvicorn.server import HANDLED_SIGNALS
_should_exit = None
def _register_signal_handler(sig: signal.Signals):
original_handler = None
def handler(sig_: int, f... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:59.566858 | from autoagent.util import run_command_in_container
from .docker_env import DockerEnv
from autoagent.io_utils import print_stream
def setup_metachain(workplace_name: str, env: DockerEnv):
cmd = "pip list | grep autoagent"
response = env.run_command(cmd, print_stream)
if response['status'] == 0:
prin... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/tenacity_stop.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:59.568438 | from tenacity import RetryCallState
from tenacity.stop import stop_base
from .shutdown_listener import should_exit
class stop_if_should_exit(stop_base):
"""Stop if the should_exit flag is set."""
def __call__(self, retry_state: 'RetryCallState') -> bool:
return should_exit()
|
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/flow/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:59.578723 | from .core import EventEngineCls
from .types import EventInput, ReturnBehavior
default_drive = EventEngineCls()
|
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/flow/broker.py | null | null | null | null | null | null | Python | 2026-05-04T02:05:59.996598 | from typing import Any
from .types import BaseEvent, EventInput, Task, GroupEventReturns
from .utils import generate_uuid
class BaseBroker:
async def append(self, event: BaseEvent, event_input: EventInput) -> Task:
raise NotImplementedError()
async def callback_after_run_done(self) -> tuple[BaseEvent... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/flow/core.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.046132 | import inspect
import asyncio
from typing import Callable, Optional, Union, Any, Tuple, Literal
from .types import (
BaseEvent,
EventFunction,
EventGroup,
EventInput,
_SpecialEventReturn,
ReturnBehavior,
InvokeInterCache,
)
from .broker import BaseBroker
from .utils import logger, string_to_... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/flow/dynamic.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.046733 | from typing import Any
from .types import (
BaseEvent,
_SpecialEventReturn,
ReturnBehavior,
)
def goto_events(
group_markers: list[BaseEvent], any_return: Any = None
) -> _SpecialEventReturn:
return _SpecialEventReturn(
behavior=ReturnBehavior.GOTO, returns=(group_markers, any_return)
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/flow/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.150171 | import uuid
import logging
import asyncio
import inspect
import hashlib
from typing import Callable
logger = logging.getLogger("drive-flow")
def generate_uuid() -> str:
return str(uuid.uuid4())
def function_or_method_to_repr(func_or_method: Callable) -> str:
is_method = inspect.ismethod(func_or_method)
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/flow/types.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.158520 | from copy import copy
from enum import Enum
from dataclasses import dataclass, field
from datetime import datetime
from typing import Any, Awaitable, Optional, Union, Callable, TypedDict, Literal
from .utils import (
string_to_md5_hash,
generate_uuid,
function_or_method_to_string,
function_or_method_to... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/fn_call_converter.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.198935 | """Convert function calling messages to non-function calling messages and vice versa.
This will inject prompts so that models that doesn't support function calling
can still be used with function calling agents.
We follow format from: https://docs.litellm.ai/docs/completion/function_call
"""
import copy
import json
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/io_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.561068 | import yaml
import hashlib
import zipfile
import os
import json
from rich.console import Console
def read_file(file_path):
with open(file_path, 'r', encoding='utf-8') as file:
content = file.read()
return content
def read_yaml_file(file_path):
with open(file_path, 'r', encoding='utf-8') as file:
... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/logger.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.616528 | from datetime import datetime
from rich.console import Console
from rich.markup import escape
import json
from typing import List
from constant import DEBUG, DEFAULT_LOG, LOG_PATH, MC_MODE
from pathlib import Path
BAR_LENGTH = 60
class MetaChainLogger:
def __init__(self, log_path: str):
self.log_path = log_... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:00.617436 | from autoagent import MetaChain, Agent, Response
from typing import List
from autoagent.logger import MetaChainLogger
from autoagent.environment.utils import setup_metachain
from autoagent.environment.docker_env import DockerConfig, DockerEnv
def case_resolved(result: str):
"""
Use this tool to indicate that t... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/markdown_browser/abstract_markdown_browser.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:03.983804 | from abc import ABC, abstractmethod
from typing import Union
class AbstractMarkdownBrowser(ABC):
"""
An abstract class for a Markdown web browser.
All MarkdownBrowers work by:
(1) fetching a web page by URL (via requests, Selenium, Playwright, etc.)
(2) converting the page's HTML or DOM ... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/markdown_browser/markdown_search.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:03.984473 | import logging
import os
import re
from abc import ABC, abstractmethod
from typing import Any, Dict, List, Optional, cast
from urllib.parse import quote, quote_plus, unquote, urlparse, urlunparse
import requests
# TODO: Fix these types
from .mdconvert import MarkdownConverter # type: ignore
logger = logging.getLogg... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/markdown_browser/requests_markdown_browser.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:03.985127 | # ruff: noqa: E722
import datetime
import html
import io
import mimetypes
import os
import pathlib
import re
import time
import traceback
import uuid
from typing import Any, Dict, List, Optional, Tuple, Union
from urllib.parse import unquote, urljoin, urlparse
import pathvalidate
import requests
from .abstract_markdo... |
HKUDS/AutoAgent | https://github.com/HKUDS/AutoAgent | null | null | null | null | 9,256 | null | null | mit | null | null | null | null | null | null | null | autoagent/environment/markdown_browser/mdconvert.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:03.985802 | # type: ignore
import base64
import binascii
import copy
import html
import json
import mimetypes
import os
import re
import shutil
import subprocess
import sys
import tempfile
from typing import Any, Dict, List, Optional, Union
from urllib.parse import parse_qs, quote, unquote, urlparse, urlunparse
import mammoth
imp... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.805745 | import argparse
import json
import os
from os import environ as env
from rich import print
from book_maker.loader import BOOK_LOADER_DICT
from book_maker.translator import MODEL_DICT
from book_maker.provider_loader import get_provider, get_translator_class
from book_maker.utils import LANGUAGES, TO_LANGUAGE_CODE
de... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.816293 | config = {
"translator": {
"chatgptapi": {
"context_paragraph_limit": 3,
"batch_context_update_interval": 50,
}
},
}
|
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/base_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.818843 | from abc import ABC, abstractmethod
class BaseBookLoader(ABC):
@staticmethod
def _is_special_text(text):
return text.isdigit() or text.isspace()
@abstractmethod
def _make_new_book(self, book):
pass
@abstractmethod
def make_bilingual_book(self):
pass
@abstractmeth... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/helper.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.820269 | import re
import backoff
import logging
from copy import copy
logging.basicConfig(level=logging.WARNING)
logger = logging.getLogger(__name__)
class EPUBBookLoaderHelper:
def __init__(
self, translate_model, accumulated_num, translation_style, context_flag
):
self.translate_model = translate_m... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.825216 | from book_maker.loader.epub_loader import EPUBBookLoader
from book_maker.loader.txt_loader import TXTBookLoader
from book_maker.loader.srt_loader import SRTBookLoader
from book_maker.loader.md_loader import MarkdownBookLoader
from book_maker.loader.pdf_loader import PDFBookLoader
BOOK_LOADER_DICT = {
"epub": EPUBB... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/epub_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.828013 | import os
import pickle
import string
import sys
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
from copy import copy
from pathlib import Path
import traceback
from threading import Lock
from bs4 import BeautifulSoup as bs
from bs4 import Tag
from bs4.element import NavigableString
from eb... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/pdf_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.852225 | import sys
from pathlib import Path
from book_maker.utils import prompt_config_to_kwargs
from .base_loader import BaseBookLoader
import fitz
from ebooklib import epub
class PDFBookLoader(BaseBookLoader):
def __init__(
self,
pdf_name,
model,
key,
resume,
language... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/md_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:06.852733 | import sys
from pathlib import Path
from book_maker.utils import prompt_config_to_kwargs
from .base_loader import BaseBookLoader
class MarkdownBookLoader(BaseBookLoader):
def __init__(
self,
md_name,
model,
key,
resume,
language,
model_api_base=None,
... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:08.478506 | from book_maker.translator.caiyun_translator import Caiyun
from book_maker.translator.chatgptapi_translator import ChatGPTAPI
from book_maker.translator.deepl_translator import DeepL
from book_maker.translator.deepl_free_translator import DeepLFree
from book_maker.translator.google_translator import Google
from book_ma... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/txt_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:08.532396 | import sys
from pathlib import Path
from book_maker.utils import prompt_config_to_kwargs
from .base_loader import BaseBookLoader
class TXTBookLoader(BaseBookLoader):
def __init__(
self,
txt_name,
model,
key,
resume,
language,
model_api_base=None,
i... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/loader/srt_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:08.564279 | """
inspired by: https://github.com/jesselau76/srt-gpt-translator, MIT License
"""
import re
import sys
from pathlib import Path
from book_maker.utils import prompt_config_to_kwargs
from .base_loader import BaseBookLoader
class SRTBookLoader(BaseBookLoader):
def __init__(
self,
srt_name,
... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/provider_loader.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:08.590651 | import json
import os
from pathlib import Path
from book_maker.translator.chatgptapi_translator import ChatGPTAPI
from book_maker.translator.claude_translator import Claude
from book_maker.translator.gemini_translator import Gemini
from book_maker.translator.qwen_translator import QwenTranslator
SUPPORTED_API_STYLES ... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/chatgptapi_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:08.644298 | import re
import time
import os
import shutil
from os import environ
from itertools import cycle
import json
from threading import Lock
from openai import AzureOpenAI, BadRequestError, NotFoundError, OpenAI, RateLimitError
from rich import print
from tenacity import (
retry,
stop_after_attempt,
wait_expone... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/caiyun_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:08.677079 | import json
import re
import time
import requests
from rich import print
from .base_translator import Base
class Caiyun(Base):
"""
caiyun translator
"""
def __init__(self, key, language, **kwargs) -> None:
super().__init__(key, language)
self.api_url = "https://api.interpreter.caiyu... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/obok.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:08.678373 | # The original code comes from:
# https://github.com/apprenticeharper/DeDRM_tools
# Version 4.1.2 March 2023
# Update library for crypto for current Windows
# Version 4.1.1 March 2023
# Make obok.py works as file selector
# Version 4.1.0 February 2021
# Add detection for Kobo directory location on Linux
# Version 4... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/deepl_free_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.079916 | import time
import random
import re
from book_maker.utils import LANGUAGES, TO_LANGUAGE_CODE
from .base_translator import Base
from rich import print
from PyDeepLX import PyDeepLX
class DeepLFree(Base):
"""
DeepL free translator
"""
def __init__(self, key, language, **kwargs) -> None:
super... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/deepl_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.110484 | import json
import time
import requests
import re
from book_maker.utils import LANGUAGES, TO_LANGUAGE_CODE
from .base_translator import Base
from rich import print
class DeepL(Base):
"""
DeepL translator
"""
def __init__(self, key, language, **kwargs) -> None:
super().__init__(key, languag... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/qwen_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.247340 | import re
import time
from rich import print
from openai import OpenAI
from .base_translator import Base
class QwenTranslator(Base):
"""
Qwen-MT translator using Alibaba Cloud's DashScope API
Specialized translation model supporting 92 languages with advanced features
Official documentation: https://... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/gemini_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.252701 | import json
import re
import time
import typing
from os import environ
from itertools import cycle
from google import genai
from google.genai import types, errors
from rich import print
from tenacity import (
retry,
stop_after_attempt,
wait_exponential,
retry_if_exception,
RetryCallState,
)
from .... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/google_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.299922 | import re
import requests
from rich import print
from book_maker.utils import TO_LANGUAGE_CODE
from .base_translator import Base
class Google(Base):
"""
google translate
"""
def __init__(self, key, language, **kwargs) -> None:
super().__init__(key, language)
# Convert language name ... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/litellm_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.311926 | from os import linesep
from litellm import completion
from book_maker.translator.chatgptapi_translator import ChatGPTAPI
PROMPT_ENV_MAP = {
"user": "BBM_CHATGPTAPI_USER_MSG_TEMPLATE",
"system": "BBM_CHATGPTAPI_SYS_MSG",
}
class liteLLM(ChatGPTAPI):
def create_chat_completion(self, text):
# cont... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/groq_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.317854 | from groq import Groq
from .chatgptapi_translator import ChatGPTAPI
from os import linesep
from itertools import cycle
GROQ_MODEL_LIST = [
"llama3-8b-8192",
"llama3-70b-8192",
"mixtral-8x7b-32768",
"gemma-7b-it",
]
class GroqClient(ChatGPTAPI):
def rotate_model(self):
if not self.model_li... |
yihong0618/bilingual_book_maker | https://github.com/yihong0618/bilingual_book_maker | null | null | null | null | 9,239 | null | null | mit | null | null | null | null | null | null | null | book_maker/translator/xai_translator.py | null | null | null | null | null | null | Python | 2026-05-04T02:06:09.657104 | from openai import OpenAI
from .chatgptapi_translator import ChatGPTAPI
XAI_MODEL_LIST = [
"grok-beta",
]
class XAIClient(ChatGPTAPI):
def __init__(self, key, language, api_base=None, **kwargs) -> None:
super().__init__(key, language)
self.model_list = XAI_MODEL_LIST
self.api_url = st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.