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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
openapi-generators/openapi-python-client | https://github.com/openapi-generators/openapi-python-client | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | end_to_end_tests/golden-record/my_test_api_client/api/bodies/refs.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:30.434675 | from http import HTTPStatus
from typing import Any
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
from ...models.a_model import AModel
from ...types import UNSET, Response, Unset
def _get_kwargs(
*,
body: AModel | Unset = UNSET,
) -> dict[str, Any]:
headers: dict[s... |
openapi-generators/openapi-python-client | https://github.com/openapi-generators/openapi-python-client | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | end_to_end_tests/golden-record/my_test_api_client/api/config/content_type_override.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:30.495051 | from http import HTTPStatus
from typing import Any, cast
import httpx
from ... import errors
from ...client import AuthenticatedClient, Client
from ...types import UNSET, Response, Unset
def _get_kwargs(
*,
body: str | Unset = UNSET,
) -> dict[str, Any]:
headers: dict[str, Any] = {}
_kwargs: dict[s... |
openapi-generators/openapi-python-client | https://github.com/openapi-generators/openapi-python-client | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | end_to_end_tests/golden-record/my_test_api_client/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:35.300405 | """A client library for accessing My Test API"""
from .client import AuthenticatedClient, Client
__all__ = (
"AuthenticatedClient",
"Client",
)
|
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | contrib/dash_app/chat_res.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.452030 | from interact import *
def eva_model():
parser = ArgumentParser()
parser.add_argument('--gpt2', action='store_true', help="use gpt2")
parser.add_argument("--model_checkpoint", type=str, default="./models/", help="Path, url or short name of the model")
parser.add_argument("--max_history", type=int, defa... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | od/utils/data_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.452846 | import pickle
import json
def load_pkl(path):
with open(path, 'rb') as f:
data = pickle.load(f)
return data
def load_txt(path):
with open(path, encoding='UTF-8', errors='ignore') as f:
data = [i.strip() for i in f.readlines() if len(i) > 0]
return data
def save_txt(data, path):
... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | contrib/dash_app/interact.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.455038 | # # Copyright (c) 2019-present, HuggingFace Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import logging
import random
from itertools import chain
from argparse import ArgumentParser
from pprint imp... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | od/inputters/inputter.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.457538 | # -*- coding: utf-8 -*-
import os
import json
import torch
from torch.utils.data import DataLoader
from transformers import cached_path
from od.inputters.dataset_wb import WBDataset, WBdistDataset
LCCC_URL = "https://coai-dataset.oss-cn-beijing.aliyuncs.com/CleanWB.zip"
SPECIAL_TOKENS = ["[CLS]", "[SEP]", "[speaker1... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | train.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.458962 | # Copyright (c) 2019-present, HuggingFace Inc.
# All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree.
import os
import math
import logging
import random
from pprint import pformat
from argparse import ArgumentParser
import nu... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | od/inputters/dataset_wb.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.460758 | # -*- coding: utf-8 -*-
# Some functions come from the Internet, if you violate your rights, please contact us.
import os
from itertools import chain
import torch
from torch.utils.data import Dataset
from torch.nn.utils.rnn import pad_sequence
SPECIAL_TOKENS = ["[CLS]", "[SEP]", "[speaker1]", "[speaker2]"]
MODEL_INPU... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | interact.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.461612 | # # Copyright (c) 2019-present, HuggingFace Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import logging
import random
from itertools import chain
from argparse import ArgumentParser
from pprint imp... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | infer.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.472295 | # # Copyright (c) 2019-present, HuggingFace Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import os
import math
import json
import logging
import random
from argparse import ArgumentParser
from pprint import ... |
thu-coai/CDial-GPT | https://github.com/thu-coai/CDial-GPT | null | null | null | null | 1,943 | null | null | mit | null | null | null | null | null | null | null | contrib/dash_app/app.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:37.474293 | import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
from chat_res import *
app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP],suppress_callback_exceptions = True)
# the style arguments fo... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/decorators.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.829973 | from typing import TYPE_CHECKING, Any, Callable, Optional, Protocol, TypeVar, Union, overload
from rq.decorators import job as _rq_job
from .queues import get_queue, get_result_ttl
if TYPE_CHECKING:
from redis import Redis
from rq import Queue
from typing_extensions import ParamSpec
P = ParamSpec('P... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/cron.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.831479 | import logging
from functools import cached_property
from typing import Any, Callable, Optional, cast
from redis import Redis
from rq.cron import CronScheduler
from .connection_utils import get_connection, get_redis_connection, get_unique_connection_configs
class DjangoCronScheduler(CronScheduler):
"""
A Dj... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.833064 | __version__ = "4.1.0"
from .connection_utils import get_connection
from .decorators import job
from .queues import enqueue, get_queue, get_scheduler
from .workers import get_worker
__all__ = [
"__version__",
"enqueue",
"get_connection",
"get_queue",
"get_scheduler",
"get_worker",
"job",
]
|
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/connection_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.833640 | from typing import Any
import redis
from redis import Redis
from redis.sentinel import Sentinel
def get_redis_connection(config: dict[str, Any], use_strict_redis: bool = False) -> Redis:
"""
Returns a redis connection from a connection config
"""
redis_cls = redis.StrictRedis if use_strict_redis else... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/contrib/prometheus.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.836108 | from rq.job import JobStatus
from ..connection_utils import filter_connection_params, get_connection, get_unique_connection_configs
from ..queues import get_queue
from ..workers import get_worker_class
try:
from prometheus_client import Summary
from prometheus_client.core import CounterMetricFamily, GaugeMetr... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/admin.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.842293 | from functools import wraps
from typing import Any, Optional
from django.contrib import admin
from django.http.request import HttpRequest
from django.http.response import HttpResponse
from . import models, settings, stats_views
class QueueAdmin(admin.ModelAdmin):
"""Admin View for Django-RQ Queue"""
def ha... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/jobs.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.845187 | from typing import Optional, Union, cast
from django.conf import settings
from rq.job import Job
from rq.utils import import_attribute
def get_job_class(job_class: Optional[Union[str, type[Job]]] = None) -> type[Job]:
"""
Return job class from RQ settings, otherwise return Job.
If `job_class` is not None... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/apps.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.847638 | from django.apps import AppConfig
class DjangoRqAdminConfig(AppConfig):
default_auto_field = "django.db.models.AutoField"
name = "django_rq"
|
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/cron_views.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:40.850074 | from django.contrib.admin.views.decorators import staff_member_required
from django.http import Http404
from django.shortcuts import render
from django.views.decorators.cache import never_cache
from .connection_utils import get_connection_by_index
from .cron import DjangoCronScheduler
from .views import each_context
... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqenqueue.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.006165 | from django.core.management.base import BaseCommand
from ... import get_queue
class Command(BaseCommand):
"""
Queue a function with the given arguments.
"""
help = __doc__
args = '<function arg arg ...>'
def add_arguments(self, parser):
parser.add_argument('--queue', '-q', dest='que... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqcron.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.018669 | import logging
import sys
from typing import Any
from django.core.management.base import BaseCommand, CommandParser
from ...cron import DjangoCronScheduler
class Command(BaseCommand):
"""
Starts the RQ cron scheduler with Django-RQ integration.
Example usage:
python manage.py rqcron cron_config.py
... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/migrations/0001_initial.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.020197 | from django.db import migrations, models
class Migration(migrations.Migration):
"""Create Django contenttype for queue"""
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name='Queue',
fields=[
# Does not create any table / fields... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqworker-pool.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.021282 | import os
import sys
from django.core.management.base import BaseCommand
from rq.logutils import setup_loghandlers
from rq.serializers import resolve_serializer
from rq.worker_pool import WorkerPool
from ...jobs import get_job_class
from ...queues import get_queues
from ...utils import reset_db_connections
from ...wo... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqstats.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.025229 | import time
import click
from django.core.management.base import BaseCommand, CommandError
from ...utils import get_statistics
class Command(BaseCommand):
"""
Print RQ statistics
"""
help = __doc__
_separator: str
def add_arguments(self, parser):
# TODO: convert this to @click.comm... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqresume.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.032978 | from django.core.management.base import BaseCommand
from rq.suspension import resume
from ...queues import get_connection
class Command(BaseCommand):
help = "Resume all queues."
def handle(self, *args, **options):
connection = get_connection()
resume(connection)
|
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqworker.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.033591 | import os
import sys
from django.core.management.base import BaseCommand
from redis.exceptions import ConnectionError
from rq.logutils import setup_loghandlers
from ...utils import reset_db_connections
from ...workers import get_worker
class Command(BaseCommand):
"""
Runs RQ workers on specified queues. Not... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqsuspend.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.063204 | import logging
import sys
from django.core.management.base import BaseCommand
from rq.suspension import suspend
from ...queues import get_connection
log = logging.getLogger(__name__)
class Command(BaseCommand):
help = "Suspend all queues."
def add_arguments(self, parser):
parser.add_argument(
... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/management/commands/rqscheduler.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.109488 | import os
from django.core.exceptions import ImproperlyConfigured
from django.core.management.base import BaseCommand
from ... import get_scheduler
try:
from rq_scheduler.utils import setup_loghandlers
except ImportError:
def setup_loghandlers(*args, **kwargs):
raise ImproperlyConfigured('rq_schedul... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/migrations/0002_delete_queue_create_dashboard.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.873571 | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('django_rq', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Queue',
new_name='Dashboard',
),
migrations.AlterModelOptions(
na... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/stats_views.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.874973 | from secrets import compare_digest
from typing import Optional
from django.contrib.admin.views.decorators import staff_member_required
from django.http import Http404, HttpRequest, HttpResponse, JsonResponse
from django.shortcuts import render
from django.views.decorators.cache import never_cache
from . import setti... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/settings.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:42.876313 | from operator import itemgetter
from typing import Any, cast
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
SHOW_ADMIN_LINK = getattr(settings, 'RQ_SHOW_ADMIN_LINK', True)
NAME = getattr(settings, 'RQ_NAME', 'default')
BURST: bool = getattr(settings, 'RQ_BURST', False)
def... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/templatetags/jquery_path.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:43.020354 | from django import template
register = template.Library()
@register.simple_tag
def get_jquery_path() -> str:
return 'admin/js/vendor/jquery/jquery.js'
|
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/models.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:43.099232 | from django.core.signals import got_request_exception, request_finished
from django.db import models
from . import thread_queue
from .queues import get_commit_mode
# Wire up request finished/exception signal only for the request_finished mode
if get_commit_mode() == 'request_finished':
request_finished.connect(th... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/templatetags/django_rq.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:43.155278 | import datetime
from django import template
from django.urls import reverse
from django.utils import dateformat, timezone
from django.utils.html import escape
from django.utils.safestring import mark_safe
register = template.Library()
@register.filter
def to_localtime(time):
"""Converts naive datetime to localt... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/thread_queue.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:43.156623 | import threading
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from .queues import DjangoRQ
_thread_data = threading.local()
def get_queue():
"""
Returns a temporary queue to store jobs before they're committed
later in the request/response cycle. Each job is stored as a tuple
containi... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/queues.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:44.399216 | import warnings
from typing import Any, Callable, Optional, Union, cast
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db import connection, transaction
from redis import Redis
from rq.job import Job
from rq.queue import Queue
from rq.utils import import_attribute
... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | integration_test/_tests.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:44.429162 |
import logging
import os
import signal
import subprocess
import sys
import time
import unittest
from urllib.parse import urlunsplit
import psycopg2
import requests
from django.conf import settings
DJANGO_SETTINGS_MODULE = "integration_test.settings"
os.environ.setdefault("DJANGO_SETTINGS_MODULE", DJANGO_SETTINGS_MOD... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/views.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:44.491024 | from math import ceil
from typing import Any, cast
from django.contrib import admin, messages
from django.contrib.admin.views.decorators import staff_member_required
from django.http import Http404, HttpRequest, HttpResponse
from django.shortcuts import redirect, render
from django.urls import reverse
from django.view... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/workers.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:44.527190 | from typing import Optional, Union
from django.conf import settings
from rq import Worker
from rq.job import Job
from rq.utils import import_attribute
from .jobs import get_job_class
from .queues import DjangoRQ, get_queues
def get_exception_handlers():
"""
Custom exception handlers could be defined in sett... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:44.529525 | from typing import Any, Optional, Union
from django.core.exceptions import ImproperlyConfigured
from django.db import connections
from redis.sentinel import SentinelConnectionPool
from rq.command import send_stop_job_command
from rq.executions import Execution
from rq.job import Job
from rq.queue import Queue
from rq.... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | django_rq/urls.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:44.594377 | from typing import Callable, Optional
from django.urls import URLPattern, path, re_path
from . import cron_views, stats_views, views
from .contrib.prometheus import RQCollector
def get_api_urlpatterns(name_prefix: str = '') -> list[URLPattern]:
"""
Get URL patterns for views that have their own authenticati... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | integration_test/integration_app/models.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:45.031230 | from django.db import models
class MyModel(models.Model):
name = models.TextField(unique=True)
def add_mymodel(name):
m = MyModel(name=name)
m.save()
# causes a DB connection at import-time
# see TestIntegration.test_worker_lost_connection
list(MyModel.objects.all())
|
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | integration_test/integration_app/views.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:45.105045 | from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import django_rq
from .models import MyModel, add_mymodel
@csrf_exempt
def home(request):
if request.method == 'POST':
django_rq.enqueue(add_mymodel, request.POST["name"])
return HttpResponse("Enqueued")
... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | integration_test/integration_test/urls.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:45.212980 | """integration_test URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | integration_test/integration_test/wsgi.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:45.390282 | """
WSGI config for integration_test 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | integration_test/manage.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:45.425952 | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "integration_test.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure ... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | tests/base.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:45.745811 | from typing import Any
from django.test import TestCase
from redis import Redis
class DjangoRQTestCase(TestCase):
"""Base test case for django-rq tests with common assertion helpers."""
def assert_connection_kwargs(self, connection: Redis, config: dict[str, Any]) -> None:
"""
Assert that con... |
rq/django-rq | https://github.com/rq/django-rq | null | null | null | null | 1,942 | null | null | mit | null | null | null | null | null | null | null | integration_test/integration_app/apps.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:50.148676 |
from django.apps import AppConfig
class IntegrationAppConfig(AppConfig):
name = 'integration_app'
|
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/attend.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.257710 | from functools import wraps
from packaging import version
from collections import namedtuple
import torch
from torch import nn, einsum
import torch.nn.functional as F
# constants
AttentionConfig = namedtuple('AttentionConfig', ['enable_flash', 'enable_math', 'enable_mem_efficient'])
# helpers
def exists(val):
... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.292698 | from setuptools import setup, find_packages
exec(open('gigagan_pytorch/version.py').read())
setup(
name = 'gigagan-pytorch',
packages = find_packages(exclude=[]),
version = __version__,
license='MIT',
description = 'GigaGAN - Pytorch',
author = 'Phil Wang',
author_email = 'lucidrains@gmail.com',
long_... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/open_clip.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.295916 | import torch
from torch import nn, einsum
import torch.nn.functional as F
import open_clip
from einops import rearrange
from beartype import beartype
from beartype.typing import List, Optional
def exists(val):
return val is not None
def l2norm(t):
return F.normalize(t, dim = -1)
class OpenClipAdapter(nn.Mo... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.299376 | from gigagan_pytorch.gigagan_pytorch import (
GigaGAN,
Generator,
Discriminator,
VisionAidedDiscriminator,
AdaptiveConv2DMod,
StyleNetwork,
TextEncoder
)
from gigagan_pytorch.unet_upsampler import UnetUpsampler
from gigagan_pytorch.data import (
ImageDataset,
TextImageDataset,
... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/optimizer.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.305797 | from torch.optim import AdamW, Adam
def separate_weight_decayable_params(params):
wd_params, no_wd_params = [], []
for param in params:
param_list = no_wd_params if param.ndim < 2 else wd_params
param_list.append(param)
return wd_params, no_wd_params
def get_optimizer(
params,
lr =... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/data.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.311970 | from functools import partial
from pathlib import Path
import torch
from torch import nn
from torch.utils.data import Dataset, DataLoader
from PIL import Image
from torchvision import transforms as T
from beartype.door import is_bearable
from beartype.typing import Tuple
# helper functions
def exists(val):
ret... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/distributed.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.313523 | import torch
import torch.nn.functional as F
from torch.autograd import Function
import torch.distributed as dist
from einops import rearrange
# helpers
def exists(val):
return val is not None
def pad_dim_to(t, length, dim = 0):
pad_length = length - t.shape[dim]
zero_pairs = (-dim - 1) if dim < 0 else ... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/unet_upsampler.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.318396 | from __future__ import annotations
from math import log2
from functools import partial
from itertools import islice
import torch
from torch import nn
import torch.nn.functional as F
from torch.nn import Module, ModuleList
from einops import rearrange, repeat, pack, unpack
from einops.layers.torch import Rearrange
f... |
lucidrains/gigagan-pytorch | https://github.com/lucidrains/gigagan-pytorch | null | null | null | null | 1,941 | null | null | mit | null | null | null | null | null | null | null | gigagan_pytorch/gigagan_pytorch.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:52.356199 | from __future__ import annotations
from collections import namedtuple
from pathlib import Path
from math import log2, sqrt
from random import random
from functools import partial
from torchvision import utils
import torch
import torch.nn.functional as F
from torch import nn, einsum, Tensor
from torch.autograd import... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/asset_site_monitor.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.817063 | from app.modules import CeleryAction, SchedulerStatus, AssetScopeType, TaskStatus, TaskType
from app import celerytask, utils
from app.config import Config
logger = utils.get_logger()
def submit_asset_site_monitor_job(scope_id, name, scheduler_id):
from app.helpers.task import submit_task
task_data = {
... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.817800 | import warnings
# 关闭警告
warnings.filterwarnings("ignore", category=UserWarning,
message="Python 3.6 is no longer supported by the Python core team")
# 关闭高权限使用celery警告
warnings.filterwarnings("ignore", category=UserWarning,
message="You're running the worker with superuse... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/asset_wih.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.849749 | from app import utils
def get_wih_record_fnv_hash(scope_id):
query = {
"scope_id": scope_id
}
items = utils.conn_db('asset_wih').distinct("fnv_hash", query)
return list(items) |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/asset_domain.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.851532 | from app import utils
def find_domain_by_scope_id(scope_id):
query = {
"scope_id": scope_id
}
items = utils.conn_db('asset_domain').distinct("domain", query)
return list(items)
|
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/asset_wih_monitor.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.852669 | from app.modules import TaskStatus, TaskType
def submit_asset_wih_monitor_job(scope_id, name, scheduler_id):
from app.helpers.task import submit_task
task_data = {
'name': name,
'target': "资产分组 WIH 更新",
'start_time': '-',
'status': TaskStatus.WAITING,
'type': TaskType... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/celerytask.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.853589 | import signal
import time
from bson import ObjectId
from app.config import Config
from celery import Celery, platforms, current_task
from app import utils
from app import tasks as wrap_tasks
from app.modules import CeleryAction, TaskSyncStatus, TaskStatus, CeleryRoutingKey
logger = utils.get_logger()
celery = Celery(... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/asset_site.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.894589 | from app import utils
from .scope import get_scope_by_scope_id
def build_show_filed_map(fields):
q = {}
for field in fields:
q[field] = 1
return q
def find_site_info_by_scope_id(scope_id):
query = {
"scope_id": scope_id
}
fields = ["site", "title", "status"]
show_map = b... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.963105 | from .policy import get_options_by_policy_id
from .task import (
submit_task,
build_task_data,
get_ip_domain_list,
submit_task_task,
submit_risk_cruising,
target2list,
submit_add_asset_site_task
)
from .scope import get_scope_by_scope_id, check_target_in_scope
from .url import get_url_by_tas... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/config.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:54.964571 | import os
import yaml
import sys
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
CELERY_BROKER_URL = "amqp://arl:arlpassword@localhost:5672/arlv2host"
MONGO_DB = 'ARLV2'
MONGO_URL = 'mongodb://127.0.0.1:27017/'
TMP_PATH = os.path.join(basedir, 'tmp')
if not os.path.ex... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/domain.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.403646 | from app import utils
def find_private_domain_by_task_id(task_id):
query = {
"task_id": task_id,
"ip_type": "PRIVATE"
}
domains = []
items = utils.conn_db('ip').find(query)
for item in list(items):
if not item.get("domain"):
continue
domains.extend(item[... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/message_notify.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.412719 | from app.config import Config
from app.utils import get_logger, push
logger = get_logger()
def push_email(title, html_report):
try:
if Config.EMAIL_HOST and Config.EMAIL_USERNAME and Config.EMAIL_PASSWORD:
push.send_email(host=Config.EMAIL_HOST, port=Config.EMAIL_PORT, mail=Config.EMAIL_USERN... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/task.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.474848 | import bson
import re
from app import utils
from app.modules import TaskStatus, TaskTag, TaskType, CeleryAction
logger = utils.get_logger()
def target2list(target):
target = target.strip().lower()
target_lists = re.split(r",|\s", target)
# 清除空白符
target_lists = list(filter(None, target_lists))
tar... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/scope.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.517909 | import bson
from app import utils
from app.utils.ip import ip_in_scope
from app.utils.domain import is_in_scopes
def check_target_in_scope(target, scope_list):
from .task import get_ip_domain_list
ip_list, domain_list = get_ip_domain_list(target)
for ip in ip_list:
if not ip_in_scope(ip, scope_lis... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/task_schedule.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.518562 | import bson
from app import utils
from app.modules import TaskScheduleStatus, TaskTag
from crontab import CronTab
import time
from .policy import get_options_by_policy_id
logger = utils.get_logger()
# 计划任务调度
def task_scheduler():
items = list(utils.conn_db('task_schedule').find())
for item in items:
... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/url.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.519699 | from app import utils
def get_url_by_task_id(task_id):
query = {
"task_id": task_id
}
items = utils.conn_db('url').distinct("url", query)
return list(items)
|
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/policy.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.548230 | import bson
from app import utils
from app.modules import TaskTag
def get_options_by_policy_id(policy_id, task_tag):
query = {
"_id": bson.ObjectId(policy_id)
}
data = utils.conn_db("policy").find_one(query)
if not data:
return
policy = data["policy"]
options = {
"poli... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/helpers/scheduler.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.549438 | from app import utils
def have_same_site_update_monitor(scope_id):
query = {
"scope_id": scope_id,
"scope_type": "site_update_monitor"
}
result = utils.conn_db('scheduler').find_one(query)
if result:
return True
return False
def have_same_wih_update_monitor(scope_id):
... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/modules/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.630090 | from .ipInfo import PortInfo, IPInfo
from .baseInfo import BaseInfo
from .domainInfo import DomainInfo
from .pageInfo import PageInfo
from .wihRecord import WihRecord
from app.config import Config
class ScanPortType:
TEST = Config.TOP_10
TOP100 = Config.TOP_100
TOP1000 = Config.TOP_1000
ALL = "0-65535... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/main.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.713418 | from flask import Flask
from flask_restx import Api
from app import routes
from app.utils import arl_update
arl_app = Flask(__name__)
arl_app.config['BUNDLE_ERRORS'] = True
authorizations = {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "Token"
}
}
api = Api(arl_app, pre... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/modules/domainInfo.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:55.999148 | from .baseInfo import BaseInfo
class DomainInfo(BaseInfo):
def __init__(self, domain, record, type, ips):
self.record_list = record
self.domain = domain
self.type = type
self.ip_list = ips
def __eq__(self, other):
if isinstance(other, DomainInfo):
if self.d... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/modules/baseInfo.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.026736 | import json
class BaseInfo:
def __str__(self):
return self.dump_json()
def __repr__(self):
return self.dump_json()
def dump_json(self, flag = True):
item = self._dump_json()
if flag:
return json.dumps(item)
else:
return item
def _dump_... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/modules/wihRecord.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.200840 |
class WihRecord:
def __init__(self, record_type, content, source, site, fnv_hash):
self.recordType = record_type
self.content = content
self.source = source
self.site = site
self.fnv_hash = fnv_hash
def __str__(self):
return "{} {} {} {}".format(self.recordType... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/assetDomain.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.202608 | import re
from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app import utils
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app.modules import ErrorMsg
from app.helpers import submit_task_task, get_ip_domain_list, ... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/modules/pageInfo.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.204452 | from .baseInfo import BaseInfo
class PageInfo(BaseInfo):
def __init__(self, title, url, content_length, status_code):
self.title = title
self.url = url
self.content_length = content_length
self.status_code = status_code
def __eq__(self, other):
if isinstance(other, Page... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/modules/ipInfo.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.205603 | from .baseInfo import BaseInfo
from app import utils
class IPInfo(BaseInfo):
def __init__(self, ip, port_info, os_info, domain, cdn_name):
self.ip = ip
self.port_info_list = port_info
self.os_info = os_info
self.domain = domain
self._geo_asn = None
self._geo_city = ... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.207326 | import re
from flask_restx import Resource, reqparse, fields
from bson.objectid import ObjectId
from datetime import datetime
from urllib.parse import quote
from flask import make_response
import time
from app.utils import conn_db as conn
base_query_fields = {
'page': fields.Integer(description="当前页数", example=1)... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/assetIP.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.353552 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app.modules import ErrorMsg
from app import utils
ns = Namespace('asset_ip', description="资产组IP信息")
logger = get_logger(... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/assetSite.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.374158 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app.modules import ErrorMsg, TaskTag
from app import utils, services
from app.helpers import (
find_asset_site_not_in_... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/assetScope.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.467481 | import re
from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from app import utils
from . import base_query_fields, ARLResource, get_arl_parser
from app.utils import conn_db as conn
from app.modules import ErrorMsg, AssetScopeType
ns = Na... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/batchExport.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.776513 | import time
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import auth
from app import utils
from . import ARLResource
ns = Namespace('batch_export', description="批量导出")
batch_export_fields = ns.model('BatchExport', {
"task_id": fields.List(fields.String(description="任务 ID"), ... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/domain.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.857025 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from app import utils
from app.modules import ErrorMsg
from . import base_query_fields, ARLResource, get_arl_parser
ns = Namespace('domain', description="域名信息")
logger = get_logger()
ba... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/cert.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.857949 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app import utils
from app.modules import ErrorMsg
ns = Namespace('cert', description="证书信息")
logger = get_logger()
base... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/assetWih.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.872158 | from flask_restx import fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from bson import ObjectId
from app.modules import ErrorMsg
from app import utils
ns = Namespace('asset_wih', description="资产组 WEB Info Hunter 信息")
logger = get_logger()
base_s... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/export.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.890100 | #coding: utf-8
from flask import make_response
from flask_restx import Resource, Namespace
from openpyxl import Workbook
from bson import ObjectId
import re
from collections import Counter
from openpyxl.writer.excel import save_virtual_workbook
from openpyxl.styles import Font, Color
from app.utils import get_logger,... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/console.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.910373 | from flask_restx import fields, Namespace
from app.utils import get_logger, auth
from app import utils
from app.modules import ErrorMsg
from . import base_query_fields, ARLResource, get_arl_parser
ns = Namespace('console', description="控制台信息")
logger = get_logger()
@ns.route('/info')
class ARLConsole(ARLResource):
... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/cip.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:56.940632 | from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
ns = Namespace('cip', description="C段 ip 统计信息")
logger = get_logger()
base_search_fields = {
'cidr_ip': fields.String(required=False, description=... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/fileleak.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.004440 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app import utils
from app.modules import ErrorMsg
ns = Namespace('fileleak', description="文件泄漏信息")
logger = get_logger()... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/fingerprint.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.057693 | import json
import time
import yaml
from werkzeug.datastructures import FileStorage
from urllib.parse import quote
from flask import make_response
from flask_restx import Resource, Api, reqparse, fields, Namespace
from bson import ObjectId
from app.utils import get_logger, auth, parse_human_rule, transform_rule_map
fro... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/github_monitor_result.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.119029 | from flask_restx import fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
ns = Namespace('github_monitor_result', description="Github 监控结果详情")
logger = get_logger()
base_search_fields = {
'path': fields.String(required=False, description="路径名称")... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/github_result.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.386369 | from flask_restx import fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
ns = Namespace('github_result', description="Github 结果详情")
logger = get_logger()
base_search_fields = {
'path': fields.String(required=False, description="路径名称"),
'rep... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/github_scheduler.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.465359 | import time
from bson import ObjectId
from flask_restx import fields, Namespace
from app.utils import get_logger, auth, github_task
from app import utils
from . import base_query_fields, ARLResource, get_arl_parser
from app.modules import SchedulerStatus, ErrorMsg
ns = Namespace('github_scheduler', description="Github... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.