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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/ak_test_one_moving_one_stationary_intr_at_start.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:51.694554 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'ak'
func_name = 'test_one_moving_one_stationary_intr_at_start'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code))
create_moving_polygon(fig, ax, renderer, ((0, 1), (1, 1), (1, ... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/ar_test_one_moving_one_stationary_distlimit_intr_after_limit.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:51.740532 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'ar'
func_name = 'test_one_moving_one_stationary_distlimit_intr_after_limit'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), ylim=(-1, 7))
create_moving_polygon(fig, ax, rend... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/as_test_one_moving_one_stationary_along_path_no_intr.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.228729 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'as'
func_name = 'test_one_moving_one_stationary_along_path_no_intr'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), ylim=(-1, 7))
create_moving_polygon(fig, ax, renderer, ((... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/av_test_one_moving_one_stationary_along_path_intr_later.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.268998 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'av'
func_name = 'test_one_moving_one_stationary_along_path_intr_later'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-10, 15), ylim=(-1, 18))
create_moving_polygon(fi... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/au_test_one_moving_one_stationary_along_path_intr_at_start.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.277945 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'au'
func_name = 'test_one_moving_one_stationary_along_path_intr_at_start'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-4, 15), ylim=(-2, 10))
create_moving_polygon(... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/ay_test_one_moving_many_stationary_no_intr.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.278468 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'ay'
func_name = 'test_one_moving_many_stationary_no_intr'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-1, 12), ylim=(-1, 12))
create_moving_polygon(fig, ax, rendere... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/ax_test_one_moving_one_stationary_along_path_intr_after_end.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.294191 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'ax'
func_name = 'test_one_moving_one_stationary_along_path_intr_after_end'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-12, 7), ylim=(-1, 6))
create_moving_polygon(... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/aw_test_one_moving_one_stationary_along_path_touch_at_end.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.295206 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'aw'
func_name = 'test_one_moving_one_stationary_along_path_touch_at_end'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-5, 10), ylim=(-2, 5))
create_moving_polygon(fi... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/at_test_one_moving_one_stationary_along_path_touching.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.332122 | from utils import create_newfig, create_moving_polygon, create_still_polygon, run_or_export
func_code = 'at'
func_name = 'test_one_moving_one_stationary_along_path_touching'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code), xlim=(-1, 16), ylim=(-1, 11))
create_moving_polygon(fig, ... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/rand_moving_stationary_generator.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.341505 | """
This library displays sample problems that you can tweak and
outputs them to console
"""
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as patches
from utils import create_newfig, create_moving_polygon, create_still_polygon
import random
import math
import time
def test_collinear(... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | imgs/test_geometry/test_extrapolated_intersection/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.346180 | """
Collection of functions that make making graphs easier.
"""
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as patches
import sys
def prepare_figure(fig, ax, title, xlim, ylim):
"""
xlim and ylim must start at a negative number and end
at a positive number. they must both ... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:52.359485 | """
Pygorithm
A Python module to learn all the major algorithms on the go!
Purely for educational purposes
If you have found my software to be of any use to you,
do consider helping me pay my internet bills.
This would encourage me to create many such softwares :)
PayPal -> https://paypal.me/omkarpathak27
INR - > ht... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/backtracking/n_queens.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.057734 | """
Author: ADWAITA JADHAV
Created On: 4th October 2025
N-Queens Problem using Backtracking
Time Complexity: O(N!)
Space Complexity: O(N)
The N-Queens problem is to place N chess queens on an N×N chessboard
so that no two queens attack each other.
"""
import inspect
def solve_n_queens(n):
"""
Solve the N-Q... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/backtracking/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.111743 | """
Collection of backtracking algorithms
"""
from . import n_queens
from . import sudoku_solver
from . import maze_solver
from . import permutations
__all__ = [
'n_queens',
'sudoku_solver',
'maze_solver',
'permutations'
] |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/backtracking/maze_solver.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.204340 | """
Author: ADWAITA JADHAV
Created On: 4th October 2025
Maze Solver using Backtracking
Time Complexity: O(4^(n*m)) where n and m are dimensions of the maze
Space Complexity: O(n*m)
A maze solver that finds a path from start to end using backtracking.
The maze is represented as a 2D grid where 0 represents a path and ... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/binary/ascii.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.205404 | """
ASCII
Conversions from ASCII to:
- base2
- base16
Author: Ian Doarn
"""
from pygorithm.binary.binary_utils import pad
from pygorithm.binary.base10 import to_base2 as b10_to_b2
from pygorithm.binary.base2 import to_base16 as b2_to_b16, \
to_ascii as b2_to_ascii
def to_base16(string, visualize=False):
... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/binary/base2.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.287149 | """
Binary: Base2
Conversions from base2 to:
- base10
- base16
- ASCII
Author: Ian Doarn
"""
BINARY_HEX_VALUES = {"0000": "0", "0001": "1", "0010": "2",
"0011": "3", "0100": "4", "0101": "5",
"0110": "6", "0111": "7", "1000": "8",
"1001": "9", "1010... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/binary/base10.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.357840 | """
Binary: Base10
Conversions from base10 to:
- base2
- base16
Author: Ian Doarn
"""
HEX_VALUES = {
0: '0', 1: '1', 2: '2',
3: '3', 4: '4', 5: '5',
6: '6', 7: '7', 8: '8',
9: '9', 10: 'A', 11: 'B',
12: 'C', 13: 'D', 14: 'E',
15: 'F'
}
def to_base2(n, visualize=False):
"""
Divide... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/backtracking/sudoku_solver.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.508058 | """
Author: ADWAITA JADHAV
Created On: 4th October 2025
Sudoku Solver using Backtracking
Time Complexity: O(9^(n*n)) where n is the size of the grid
Space Complexity: O(n*n)
Sudoku is a logic-based number-placement puzzle. The objective is to fill
a 9×9 grid with digits so that each column, each row, and each of the... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/binary/binary_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.640847 | """
Helper methods for binary package
Author: Ian Doarn
"""
def pad(value, return_type=str):
'''
Pad binary value with zeros
:param value: string
:param return_type: string
'''
if type(value) is not str:
raise TypeError("pad only accepts str, not {}".format(str(type(value))... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.738059 | """
Collection of data structure examples
"""
from . import graph
from . import heap
from . import linked_list
from . import queue
from . import stack
from . import tree
from . import trie
__all__ = [
'graph',
'heap',
'linked_list',
'queue',
'stack',
'tree',
'trie'
]
|
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/heap.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.778771 | """
Author: ALLSTON MICKEY
Contributed: OMKAR PATHAK
Created On: 11th August 2017
"""
from __future__ import division
from pygorithm.data_structures import queue
import inspect
class Heap(queue.Queue):
"""
min-heap implementation as queue
"""
@staticmethod
def parent_idx(idx):
"""
... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/graph.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.787017 | """
Author: OMKAR PATHAK
Created On: 12th August 2017
"""
from collections import defaultdict
import inspect
import math
class Graph(object):
"""Graph object
Creates the graph
"""
def __init__(self):
self.graph = defaultdict(list)
self.count = 0
def print_graph(self):
... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/binary/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.838109 | """
Collection or binary conversions and algorithms
"""
from . import ascii
from . import base2
from . import base10
from . import base16
__all__ = [
'ascii',
'base2',
'base10',
'base16'
]
|
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/linked_list.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.853108 | """
Author: OMKAR PATHAK
Created On: 5th August 2017
Linked l_list and Node can be accommodated
in separate classes for convenience
"""
import inspect
class Node(object):
"""
Node class for creating a node
for linked list.
Each node has its data and a pointer that
points to next node in the Linke... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/backtracking/permutations.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.864115 | """
Author: ADWAITA JADHAV
Created On: 4th October 2025
Permutations Generator using Backtracking
Time Complexity: O(n! * n) where n is the length of the input
Space Complexity: O(n! * n)
Generate all possible permutations of a given list using backtracking.
"""
import inspect
def generate_permutations(arr):
""... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/quadtree.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.933598 | """
Author: Timothy Moore
Created On: 31th August 2017
Defines a two-dimensional quadtree of arbitrary
depth and bucket size.
"""
import inspect
import math
from collections import deque
from pygorithm.geometry import (vector2, polygon2, rect2)
class QuadTreeEntity(object):
"""
This is the minimum informatio... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/binary/base16.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:53.996446 | """
Binary: Base16
Conversions from base16 to:
- base2
- base10
- ASCII
Author: Ian Doarn
"""
from pygorithm.binary.base2 import to_ascii as b2_to_ascii
from pygorithm.binary.binary_utils import pad
from math import pow
HEX_BINARY_VALUES = {
'0': '0000', '1': '0001', '2': '0010', '3': '0011',
'4': '010... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/queue.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:54.075745 | """
Author: OMKAR PATHAK
Created On: 3rd August 2017
"""
import inspect
class Queue(object):
"""Queue
Queue implementation
"""
def __init__(self, limit=10):
"""
:param limit: Queue limit size, default @ 10
"""
self.queue = []
self.front = None
self.rear ... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/stack.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:54.913172 | """
Author: OMKAR PATHAK
Created On: 3rd August 2017
"""
from string import ascii_letters
import inspect
class Stack(object):
"""
Stack object
"""
def __init__(self, limit=10):
"""
:param limit: the stack size
"""
self.stack = []
self.limit = limit
def __st... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/trie.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:54.994052 | """
Author: MrDupin
"""
class Node:
def __init__(self, v, p=None, w=False):
self.word = w #If the node represents the end of a word or not
self.parent = p
self.value = v
self.children = {}
class Trie:
def __init__(self):
self.root = Node('') #The root of the trie is al... |
OmkarPathak/pygorithm | https://github.com/OmkarPathak/pygorithm | null | null | null | null | 4,392 | null | null | mit | null | null | null | null | null | null | null | pygorithm/data_structures/tree.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:55.106240 | """
Author: OMKAR PATHAK
Created On: 9th August 2017
Node class to create a node
for binary tree
"""
import inspect
class Node(object):
"""
Node class for creating a node for tree.
Each node has its data and a pointer
that points to next node in the Linked List
"""
def __init__(self, data=No... |
wzhe06/Ad-papers | https://github.com/wzhe06/Ad-papers | null | null | null | null | 4,388 | null | null | mit | null | null | null | null | null | null | null | generateReadme.py | null | null | null | null | null | null | Python | 2026-05-04T02:01:57.602686 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import urllib
""" generate readme.md """
__author__ = 'Wang Zhe'
paper_class_map = {}
paper_map = {}
file_object = open('./README.md')
all_lines = file_object.readlines()
file_object.close()
out_file = open('./README.md', 'w')
paper_class_flag = 0
paper_class... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/ingredients/admin.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:00.082934 | from django.contrib import admin
from cookbook.ingredients.models import Category, Ingredient
@admin.register(Ingredient)
class IngredientAdmin(admin.ModelAdmin):
list_display = ("id", "name", "category")
list_editable = ("name", "category")
admin.site.register(Category)
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | docs/schema.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:00.085176 | import graphene
from graphene_django.types import DjangoObjectType
from cookbook.ingredients.models import Category, Ingredient
class CategoryType(DjangoObjectType):
class Meta:
model = Category
fields = "__all__"
class IngredientType(DjangoObjectType):
class Meta:
model = Ingredie... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/ingredients/apps.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:00.096836 | from django.apps import AppConfig
class IngredientsConfig(AppConfig):
name = "cookbook.ingredients"
label = "ingredients"
verbose_name = "Ingredients"
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/ingredients/schema.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:01.028820 | import graphene
from graphene_django.types import DjangoObjectType
from .models import Category, Ingredient
class CategoryType(DjangoObjectType):
class Meta:
model = Category
fields = "__all__"
class IngredientType(DjangoObjectType):
class Meta:
model = Ingredient
fields = "... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/recipes/apps.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:01.030931 | from django.apps import AppConfig
class RecipesConfig(AppConfig):
name = "cookbook.recipes"
label = "recipes"
verbose_name = "Recipes"
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/ingredients/models.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:01.035996 | from django.db import models
class Category(models.Model):
class Meta:
verbose_name_plural = "Categories"
name = models.CharField(max_length=100)
def __str__(self):
return self.name
class Ingredient(models.Model):
name = models.CharField(max_length=100)
notes = models.TextField... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/recipes/admin.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:01.040045 | from django.contrib import admin
from cookbook.recipes.models import Recipe, RecipeIngredient
class RecipeIngredientInline(admin.TabularInline):
model = RecipeIngredient
@admin.register(Recipe)
class RecipeAdmin(admin.ModelAdmin):
inlines = [RecipeIngredientInline]
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/urls.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:03.694456 | from django.contrib import admin
from django.urls import path
from graphene_django.views import GraphQLView
urlpatterns = [
path("admin/", admin.site.urls),
path("graphql/", GraphQLView.as_view(graphiql=True)),
]
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/recipes/models.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:04.006585 | from django.db import models
from ..ingredients.models import Ingredient
class Recipe(models.Model):
title = models.CharField(max_length=100)
instructions = models.TextField()
def __str__(self):
return self.title
class RecipeIngredient(models.Model):
recipe = models.ForeignKey(Recipe, rela... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/recipes/schema.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:04.250103 | import graphene
from graphene_django.types import DjangoObjectType
from .models import Recipe, RecipeIngredient
class RecipeType(DjangoObjectType):
class Meta:
model = Recipe
fields = "__all__"
class RecipeIngredientType(DjangoObjectType):
class Meta:
model = RecipeIngredient
... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/manage.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:04.744274 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cookbook.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook/cookbook/ingredients/admin.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:05.301921 | from django.contrib import admin
from cookbook.ingredients.models import Category, Ingredient
@admin.register(Ingredient)
class IngredientAdmin(admin.ModelAdmin):
list_display = ("id", "name", "category")
list_editable = ("name", "category")
admin.site.register(Category)
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook/cookbook/ingredients/apps.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:05.303823 | from django.apps import AppConfig
class IngredientsConfig(AppConfig):
name = "cookbook.ingredients"
label = "ingredients"
verbose_name = "Ingredients"
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook/cookbook/ingredients/models.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:05.740888 | from django.db import models
class Category(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return self.name
class Ingredient(models.Model):
name = models.CharField(max_length=100)
notes = models.TextField(null=True, blank=True)
category = models.ForeignKey(
... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook/cookbook/ingredients/schema.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:05.868343 | from graphene import Node
from graphene_django.filter import DjangoFilterConnectionField
from graphene_django.types import DjangoObjectType
from cookbook.ingredients.models import Category, Ingredient
# Graphene will automatically map the Category model's fields onto the CategoryNode.
# This is configured in the Cat... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook/cookbook/recipes/apps.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:06.190266 | from django.apps import AppConfig
class RecipesConfig(AppConfig):
name = "cookbook.recipes"
label = "recipes"
verbose_name = "Recipes"
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook/cookbook/recipes/admin.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:06.241907 | from django.contrib import admin
from cookbook.recipes.models import Recipe, RecipeIngredient
class RecipeIngredientInline(admin.TabularInline):
model = RecipeIngredient
@admin.register(Recipe)
class RecipeAdmin(admin.ModelAdmin):
inlines = [RecipeIngredientInline]
|
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/schema.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:07.835518 | import graphene
from graphene_django.debug import DjangoDebug
import cookbook.ingredients.schema
import cookbook.recipes.schema
class Query(
cookbook.ingredients.schema.Query,
cookbook.recipes.schema.Query,
graphene.ObjectType,
):
debug = graphene.Field(DjangoDebug, name="_debug")
schema = graphene... |
graphql-python/graphene-django | https://github.com/graphql-python/graphene-django | null | null | null | null | 4,384 | null | null | mit | null | null | null | null | null | null | null | examples/cookbook-plain/cookbook/wsgi.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:08.504260 | """
WSGI config for cookbook project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/logger.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.112201 | import logging
import os
from .settings import LOG_FILE
NOTIONPY_LOG_LEVEL = os.environ.get("NOTIONPY_LOG_LEVEL", "warning").lower()
logger = logging.getLogger("notion")
def enable_debugging():
set_log_level(logging.DEBUG)
def set_log_level(level):
logger.setLevel(level)
handler.setLevel(level)
if... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/maps.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.141163 | from inspect import signature
from .logger import logger
from .markdown import markdown_to_notion, notion_to_markdown
class mapper(property):
def __init__(self, path, python_to_api, api_to_python, *args, **kwargs):
self.python_to_api = python_to_api
self.api_to_python = api_to_python
self... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/records.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.143150 | from copy import deepcopy
from .logger import logger
from .operations import build_operation
from .utils import extract_id, get_by_path
class Record(object):
# if a subclass has a list of ids that should be update when child records are removed, it should specify the key here
child_list_key = None
def ... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/operations.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.144529 | from .utils import now
def build_operation(id, path, args, command="set", table="block"):
"""
Data updates sent to the submitTransaction endpoint consist of a sequence of "operations". This is a helper
function that constructs one of these operations.
"""
if isinstance(path, str):
path = ... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/collection.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.157301 | from cached_property import cached_property
from copy import deepcopy
from datetime import datetime, date
from tzlocal import get_localzone
from uuid import uuid1
from .block import Block, PageBlock, Children, CollectionViewBlock
from .logger import logger
from .maps import property_map, field_map
from .markdown impor... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/monitor.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.158594 | import json
import re
import requests
import threading
import time
import uuid
from collections import defaultdict
from inspect import signature
from requests import HTTPError
from .collection import Collection
from .logger import logger
from .records import Record
class Monitor(object):
thread = None
def... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/markdown.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.161201 | import commonmark
import re
import html
from xml.dom import minidom
from commonmark.dump import prepare
delimiters = {
"!",
'"',
"#",
"$",
"%",
"&",
"'",
"(",
")",
"*",
"+",
",",
"-",
".",
"/",
":",
";",
"<",
"=",
">",
"?",
"@",
... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/block.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.170327 | import io
import mimetypes
import os
import random
import requests
import time
import uuid
import zipfile
from cached_property import cached_property
from copy import deepcopy
from .logger import logger
from .maps import property_map, field_map, mapper
from .markdown import plaintext_to_notion, notion_to_plaintext
fr... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/client.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.179162 | import hashlib
import json
import re
import uuid
from requests import Session, HTTPError
from requests.cookies import cookiejar_from_dict
from urllib.parse import urljoin
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
from getpass import getpass
from .block import Blo... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/settings.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.682051 | import os
from pathlib import Path
BASE_URL = "https://www.notion.so/"
API_BASE_URL = BASE_URL + "api/v3/"
SIGNED_URL_PREFIX = "https://www.notion.so/signed/"
S3_URL_PREFIX = "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/"
S3_URL_PREFIX_ENCODED = "https://s3.us-west-2.amazonaws.com/secure.notion-static.... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/user.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.756107 | from .logger import logger
from .maps import property_map, field_map
from .records import Record
class User(Record):
_table = "notion_user"
given_name = field_map("given_name")
family_name = field_map("family_name")
email = field_map("email")
locale = field_map("locale")
time_zone = field_ma... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/store.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.756671 | import datetime
import json
import threading
import uuid
from collections import defaultdict
from copy import deepcopy
from dictdiffer import diff
from inspect import signature
from threading import Lock
from pathlib import Path
from tzlocal import get_localzone
from .logger import logger
from .settings import CACHE_... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.767591 | import requests
import uuid
from bs4 import BeautifulSoup
from urllib.parse import urlparse, parse_qs, quote_plus, unquote_plus
from datetime import datetime
from slugify import slugify as _dash_slugify
from .settings import BASE_URL, SIGNED_URL_PREFIX, S3_URL_PREFIX, S3_URL_PREFIX_ENCODED
class InvalidNotionIdenti... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.768197 | # -*- coding: utf-8 -*-
import setuptools
with open("README.md", "r", encoding='utf-8') as fh:
long_description = fh.read()
def get_requirements(fname):
"Takes requirements from requirements.txt and returns a list."
with open(fname) as fp:
reqs = list()
for lib in fp.read().split("\n"):
... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/space.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.777589 | from .logger import logger
from .maps import property_map, field_map
from .records import Record
class Space(Record):
_table = "space"
child_list_key = "pages"
name = field_map("name")
domain = field_map("domain")
icon = field_map("icon")
@property
def pages(self):
# The page l... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | run_smoke_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.778266 | import argparse
import os
import sys
from notion.smoke_test import run_live_smoke_test
# Following code is a sample. Input the code onto the terminal, with your own notion page URL and token_v2
# python3 run_smoke_test.py --page https://www.notion.so/fitcuration/Myam-Myam-Love-a0d22196f58f4efb8a38bcf9b3e06459 --token... |
jamalex/notion-py | https://github.com/jamalex/notion-py | null | null | null | null | 4,379 | null | null | mit | null | null | null | null | null | null | null | notion/smoke_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:11.795341 | from datetime import datetime
from .client import *
from .block import *
from .collection import NotionDate
def run_live_smoke_test(token_v2, parent_page_url_or_id):
client = NotionClient(token_v2=token_v2)
parent_page = client.get_block(parent_page_url_or_id)
page = parent_page.children.add_new(
... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | agent-workspace/domain-skills/claude-ai/extract-share-transcript.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.181768 | """Extract a transcript from a claude.ai share URL.
Usage (run inside browser-harness):
CLAUDE_SHARE_URL=https://claude.ai/share/<uuid> \
OUTPUT_DIR=/path/to/transcripts \
bh -c "$(cat agent-workspace/domain-skills/claude-ai/extract-share-transcript.py)"
Requires: the user's running Chrome must be signed ... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | agent-workspace/agent_helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.250327 | """Agent-editable browser helpers.
Add task-specific browser primitives here. Core helpers from browser_harness.helpers
load this file when BH_AGENT_WORKSPACE points at this directory, or when this
repo's default agent-workspace exists.
"""
|
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | src/browser_harness/_ipc.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.251012 | """Daemon IPC plumbing. AF_UNIX socket on POSIX, TCP loopback on Windows."""
import asyncio, json, os, re, secrets, socket, subprocess, sys, tempfile
from pathlib import Path
IS_WINDOWS = sys.platform == "win32"
# BH_TMP_DIR set → caller-isolated dir, bare filenames (avoids AF_UNIX sun_path
# overrun: 104 macOS / 108 ... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | src/browser_harness/run.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.256083 | import os, sys, urllib.request
# Windows default stdout encoding is cp1252, which can't encode the 🟢 marker
# helpers prepend to tab titles (or anything else outside Latin-1). Force UTF-8
# so `print(page_info())` doesn't UnicodeEncodeError on Windows. Issue #124(4).
if hasattr(sys.stdout, "reconfigure"):
try: sy... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | src/browser_harness/daemon.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.259832 | """CDP WS holder + IPC relay (Unix socket on POSIX, TCP loopback on Windows). One daemon per BU_NAME."""
import asyncio, json, os, socket, sys, time, urllib.error, urllib.request
from collections import deque
from pathlib import Path
from . import _ipc as ipc
from cdp_use.client import CDPClient
def _load_env():
... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | tests/conftest.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.261262 | import base64
import io
import pytest
from PIL import Image
def make_png(width, height):
buf = io.BytesIO()
Image.new("RGB", (width, height), "white").save(buf, format="PNG")
return base64.b64encode(buf.getvalue()).decode()
@pytest.fixture
def fake_png():
return make_png
|
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | src/browser_harness/admin.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.262173 | import json
import os
import socket
import tempfile
import time
import urllib.request
from pathlib import Path
from . import _ipc as ipc
def _load_env():
repo_root = Path(__file__).resolve().parents[2]
workspace = Path(os.environ.get("BH_AGENT_WORKSPACE", repo_root / "agent-workspace")).expanduser()
for ... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | src/browser_harness/helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.263981 | """Browser control via CDP.
Core helpers live here. Agent-editable helpers live in
BH_AGENT_WORKSPACE/agent_helpers.py.
"""
import base64, importlib.util, json, math, os, sys, time, urllib.request
from pathlib import Path
from urllib.parse import urlparse
from . import _ipc as ipc
CORE_DIR = Path(__file__).resolve(... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | tests/integration/test_js.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.845324 | from unittest.mock import patch
import math
import pytest
from browser_harness import helpers
def _capture_cdp():
captured = []
def fake_cdp(method, **kwargs):
captured.append((method, kwargs))
return {"result": {"value": None}}
return fake_cdp, captured
def _evaluated_expression(capt... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | tests/unit/test_run.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.855783 | import sys
from io import StringIO
from unittest.mock import patch
from browser_harness import run
def test_c_flag_executes_code():
stdout = StringIO()
with patch.object(sys, "argv", ["browser-harness", "-c", "print('hello from -c')"]), \
patch("browser_harness.run.ensure_daemon"), \
patch(... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | tests/unit/test_helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.881862 | import os
import tempfile
import time
from unittest.mock import patch
import pytest
from PIL import Image
from browser_harness import helpers
def _run(fake_png, width, height, **kwargs):
fake = lambda method, **_: {"data": fake_png(width, height)}
with patch("browser_harness.helpers.cdp", side_effect=fake),... |
browser-use/browser-harness | https://github.com/browser-use/browser-harness | null | null | null | null | 9,970 | null | null | mit | null | null | null | null | null | null | null | tests/unit/test_admin.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:21.930124 | import pytest
from browser_harness import admin
class FakeSocket:
def __init__(self, response=b'{"target_id":"target-1","session_id":"session-1","page":null}\n'):
self.response = response
self.closed = False
self.sent = b""
def sendall(self, data):
self.sent += data
def ... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/acestep_v15_pipeline.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:24.738844 | """
ACE-Step V1.5 Pipeline
Handler wrapper connecting model and UI
"""
import os
import sys
# Load environment variables from .env file at most once per process to avoid
# epoch-boundary stalls (e.g. on Windows when Gradio yields during training)
_env_loaded = False # module-level so we never reload .env in the same... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/acestep_v15_pipeline_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:24.761831 | """Unit tests for CLI startup LM backend resolution in the pipeline."""
from __future__ import annotations
import os
import sys
import types
import unittest
from types import SimpleNamespace
from unittest.mock import MagicMock, patch
from acestep import acestep_v15_pipeline
class PipelineStartupBackendTests(unitte... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/auth.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:24.788218 | """API-key authentication helpers shared across HTTP route registration."""
from __future__ import annotations
from typing import Any, Optional
from fastapi import Header, HTTPException
_api_key: Optional[str] = None
def set_api_key(key: Optional[str]) -> None:
"""Set the process-level API key used by auth ve... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/audio_route_http_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:24.789089 | """HTTP integration tests for the audio file route."""
import unittest
from pathlib import Path
from unittest import mock
from fastapi import FastAPI, Header, HTTPException
from fastapi.testclient import TestClient
from starlette.responses import Response
from acestep.api.http.audio_route import register_audio_route... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/audio_route.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:24.790100 | """HTTP route for serving generated audio files by path."""
from __future__ import annotations
from pathlib import Path
from typing import Any, Callable
from fastapi import Depends, FastAPI, HTTPException, Request
def register_audio_route(
app: FastAPI,
verify_api_key: Callable[..., Any],
) -> None:
""... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/audio_route_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:24.791931 | """Unit tests for audio route registration."""
import asyncio
import unittest
from pathlib import Path
from fastapi import FastAPI, HTTPException
from fastapi.routing import APIRoute
from acestep.api.http.audio_route import register_audio_route
async def _verify_api_key(_authorization: str | None = None) -> None:
... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/auth_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:24.813417 | """Unit tests for API-key authentication helpers."""
from __future__ import annotations
import asyncio
import unittest
from fastapi import HTTPException
from acestep.api.http.auth import set_api_key, verify_api_key, verify_token_from_request
class AuthHelpersTests(unittest.TestCase):
"""Behavior tests for API... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/query_result_route.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.657962 | """HTTP route for querying one or more generation task results."""
from __future__ import annotations
from typing import Any, Callable, Dict, Optional
from fastapi import FastAPI, Header, Request
from acestep.api.http.query_result_service import collect_query_results, parse_task_id_list
def register_query_result_... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/model_service_routes.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.659412 | """HTTP routes for service health, model inventory, and on-demand model init."""
from __future__ import annotations
import asyncio
import json
import os
from typing import Any, Callable, Dict, List, Optional
from fastapi import Depends, FastAPI
from pydantic import BaseModel, Field
from acestep.api.http.model_init_... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/lora_routes_http_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.660462 | """HTTP integration tests for LoRA route registration."""
import unittest
from typing import Any, Dict
from fastapi import FastAPI, Header, HTTPException
from fastapi.testclient import TestClient
from acestep.api.http.lora_routes import register_lora_routes
def _wrap_response(data: Any, code: int = 200, error: str... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/model_init_service.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.661445 | """Blocking model initialization helpers for API model service routes."""
from __future__ import annotations
import os
from typing import Any, Callable, Dict, Optional
from acestep.gpu_config import (
VRAM_AUTO_OFFLOAD_THRESHOLD_GB,
get_gpu_config,
resolve_lm_backend,
)
def _resolve_slot(
app_state... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/model_service_routes_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.663118 | """Unit tests for model service route registration helpers."""
import asyncio
import os
import queue
import unittest
from types import SimpleNamespace
from unittest import mock
from fastapi import FastAPI
from fastapi.routing import APIRoute
from acestep.api.http.model_service_routes import (
InitModelRequest,
... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/lora_routes_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.856339 | """Unit tests for LoRA route registration and endpoint behavior."""
import asyncio
import unittest
from typing import Any, Dict
from fastapi import FastAPI, HTTPException
from fastapi.routing import APIRoute
from acestep.api.http.lora_routes import (
LoadLoRARequest,
SetLoRAScaleRequest,
ToggleLoRAReques... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/model_service_routes_http_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.904246 | """HTTP integration tests for model service routes."""
import asyncio
import queue
import threading
import unittest
from types import SimpleNamespace
from unittest import mock
from fastapi import FastAPI, Header, HTTPException
from fastapi.testclient import TestClient
from acestep.api.http.model_service_routes impor... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/query_result_route_http_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:25.905472 | """HTTP integration tests for query-result route behavior."""
import json
import time
import unittest
from types import SimpleNamespace
from fastapi import FastAPI, HTTPException
from fastapi.testclient import TestClient
from acestep.api.http.query_result_route import register_query_result_route
def _wrap_response... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/lora_routes.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:26.017281 | """LoRA HTTP routes for adapter lifecycle controls."""
from __future__ import annotations
from typing import Any, Callable, Dict, Optional
from fastapi import Depends, FastAPI, HTTPException
from pydantic import BaseModel, Field
from acestep.handler import AceStepHandler
_SUCCESS_PREFIX = "\u2705"
_WARNING_PREFIX ... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/query_result_route_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:26.472911 | """Unit tests for query-result route registration and helper behavior."""
import asyncio
import json
import time
import unittest
from types import SimpleNamespace
from fastapi import FastAPI, HTTPException
from fastapi.routing import APIRoute
from acestep.api.http.query_result_route import register_query_result_rout... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/reinitialize_route.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:26.476021 | """HTTP route for reinitializing service components after unload flows."""
from __future__ import annotations
import os
from typing import Any, Callable, Dict
import torch
from fastapi import Depends, FastAPI, HTTPException
def register_reinitialize_route(
app: FastAPI,
verify_api_key: Callable[..., Any],
... |
ace-step/ACE-Step-1.5 | https://github.com/ace-step/ACE-Step-1.5 | null | null | null | null | 9,949 | null | null | mit | null | null | null | null | null | null | null | acestep/api/http/query_result_service.py | null | null | null | null | null | null | Python | 2026-05-04T02:02:26.477750 | """Service helpers for `/query_result` response shaping."""
from __future__ import annotations
import json
import time
from typing import Any, Callable, Dict, List
def parse_task_id_list(task_id_list_raw: Any) -> Any:
"""Parse raw ``task_id_list`` input using legacy permissive semantics.
Args:
task... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.