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
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/configure_ci.py
null
null
null
null
null
null
Python
2026-05-04T01:33:53.898814
#!/usr/bin/env python3 # Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """Configures metadata for a CI workflow run. ---------- | Inputs | ---------- Environment variables (for all triggers): * GITHUB_EVENT_NAME : GitHub event name, e.g. pull_request. * GITHUB_OUTPUT : path t...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/configure_multi_arch_ci_summary.py
null
null
null
null
null
null
Python
2026-05-04T01:33:53.934464
"""Formats the GITHUB_STEP_SUMMARY markdown for configure_multi_arch_ci.py. Produces human-readable markdown explaining what CI will do and why. """ from configure_multi_arch_ci import ( CIInputs, CIOutputs, ) from pathlib import Path import sys THIS_SCRIPT_DIR = Path(__file__).resolve().parent THEROCK_DIR =...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/configure_multi_arch_ci.py
null
null
null
null
null
null
Python
2026-05-04T01:33:53.991845
#!/usr/bin/env python3 # Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """Configures CI matrix and job decisions for multi-arch workflows. This script is a pipeline of data transformations: 1. Parse Inputs — read GitHub event context → CIInputs, GitContext 2. Check Skip CI — gate...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/configure_target_run.py
null
null
null
null
null
null
Python
2026-05-04T01:33:53.999164
# Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """This file looks up the test-runs-on runner label for a given GPU family. Environment variable inputs: * 'TARGET': A GPU family like 'gfx95X-dcgpu' or 'gfx1151', corresponding to a release index. * 'PLATFORM': "linux" or...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/determine_version.py
null
null
null
null
null
null
Python
2026-05-04T01:33:54.104625
#!/usr/bin/env python # Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """Determines the SDK version and version suffix to pass as additional arguments to scripts like `external-builds/pytorch/build_prod_wheels.py`. Example usage: python determine_version.py --rocm-version 7.0.0 --write-en...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/detect_external_repo_config.py
null
null
null
null
null
null
Python
2026-05-04T01:33:54.108072
#!/usr/bin/env python3 # Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """ Detects external repository configuration for TheRock CI workflows. This script determines build configuration settings based on the external repository being built (rocm-libraries, rocm-systems, etc.). It outputs GitHu...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/expand_amdgpu_families.py
null
null
null
null
null
null
Python
2026-05-04T01:33:54.488097
#!/usr/bin/env python # Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """Expand a list of AMD GPU families to their constituent gfx targets. Reads `cmake/therock_amdgpu_targets.cmake` (the authoritative source of truth) via `_therock_utils.cmake_amdgpu_targets` and prints the union of gfx targ...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/fetch_job_status.py
null
null
null
null
null
null
Python
2026-05-04T01:33:54.489083
# Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """ This script determines the job status for different job runs as part of GitHub workflow based on RUN_ID and ATTEMPT Required environment variables: - RUN_ID - ATTEMPT """ import json import os from urllib.request import urlopen, Request ...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/fetch_package_targets.py
null
null
null
null
null
null
Python
2026-05-04T01:33:55.054569
# Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """This file helps generate a package target matrix for workflows. Environment variable inputs: * 'AMDGPU_FAMILIES': A comma separated list of AMD GPU families, e.g. `gfx94X,gfx103x`, or empty for the default list * 'T...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/generate_pytorch_manifest.py
null
null
null
null
null
null
Python
2026-05-04T01:33:55.055093
#!/usr/bin/env python3 # Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """ Generate a manifest for PyTorch external builds. Writes a JSON manifest containing: - pytorch/pytorch_audio/pytorch_vision(/triton)(/apex): git commit + origin repo (+ branch best-effort) - therock: repo + commit + ...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/generate_jax_manifest.py
null
null
null
null
null
null
Python
2026-05-04T01:33:55.055804
#!/usr/bin/env python3 """ Generate a manifest for JAX external builds. Writes a JSON manifest containing: - jax: git commit + origin repo (+ branch best-effort) - therock: repo + commit + branch from GitHub Actions env (best-effort) Filename format: therock-manifest_jax_py<python_version>_<jax_git_ref>.json ""...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/github_actions_api.py
null
null
null
null
null
null
Python
2026-05-04T01:33:55.078677
# Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """GitHub Actions API: workflow commands and REST API client. This module provides: - GitHubAPI class for authenticated GitHub REST API requests - Workflow command helpers (gha_set_output, gha_set_env, etc.) - Query functions for workflow runs, c...
ROCm/TheRock
https://github.com/ROCm/TheRock
null
null
null
null
986
null
null
mit
null
null
null
null
null
null
null
build_tools/github_actions/fetch_test_configurations.py
null
null
null
null
null
null
Python
2026-05-04T01:33:56.307347
# Copyright Advanced Micro Devices, Inc. # SPDX-License-Identifier: MIT """ This script determines what test configurations to run. Outputs (written to $GITHUB_OUTPUT): - sanity_component: JSON object for the sanity component, always present as a prerequisite that must pass before other components are run. - ...
aneesha/RAKE
https://github.com/aneesha/RAKE
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
rake.py
null
null
null
null
null
null
Python
2026-05-04T01:33:58.298200
# Implementation of RAKE - Rapid Automtic Keyword Exraction algorithm # as described in: # Rose, S., D. Engel, N. Cramer, and W. Cowley (2010). # Automatic keyword extraction from indi-vidual documents. # In M. W. Berry and J. Kogan (Eds.), Text Mining: Applications and Theory.unknown: John Wiley and Sons, Ltd. impo...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/filters/database.py
null
null
null
null
null
null
Python
2026-05-04T01:34:00.305243
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker Base = declarative_base() engine = create_engine( "sqlite://", connect_args={"check_same_thread": False}, echo=True ) session_factory = sessionmaker(autocommit=False, autoflush=False...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/flask_sqlalchemy/app.py
null
null
null
null
null
null
Python
2026-05-04T01:34:00.307136
#!/usr/bin/env python from database import db_session, init_db from flask import Flask from schema import schema from flask_graphql import GraphQLView app = Flask(__name__) app.debug = True example_query = """ { allEmployees(sort: [NAME_ASC, ID_ASC]) { edges { node { id name depa...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/flask_sqlalchemy/models.py
null
null
null
null
null
null
Python
2026-05-04T01:34:00.320954
from database import Base from sqlalchemy import Column, DateTime, ForeignKey, Integer, String, func from sqlalchemy.orm import backref, relationship class Department(Base): __tablename__ = "department" id = Column(Integer, primary_key=True) name = Column(String) class Role(Base): __tablename__ = "r...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/filters/models.py
null
null
null
null
null
null
Python
2026-05-04T01:34:00.321989
import sqlalchemy from database import Base from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship class Pet(Base): __tablename__ = "pets" id = Column(Integer(), primary_key=True) name = Column(String(30)) age = Column(Integer()) person_id = Column(Integ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/filters/schema.py
null
null
null
null
null
null
Python
2026-05-04T01:34:00.371575
from models import Person as PersonModel from models import Pet as PetModel from models import Toy as ToyModel import graphene from graphene import relay from graphene_sqlalchemy import SQLAlchemyObjectType from graphene_sqlalchemy.fields import SQLAlchemyConnectionField class Pet(SQLAlchemyObjectType): class Me...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/filters/app.py
null
null
null
null
null
null
Python
2026-05-04T01:34:00.396397
from database import init_db from fastapi import FastAPI from schema import schema from starlette_graphene3 import GraphQLApp, make_playground_handler def create_app() -> FastAPI: init_db() app = FastAPI() app.mount("/graphql", GraphQLApp(schema, on_get=make_playground_handler())) return app app =...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/flask_sqlalchemy/database.py
null
null
null
null
null
null
Python
2026-05-04T01:34:00.397612
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker engine = create_engine("sqlite:///database.sqlite3", convert_unicode=True) db_session = scoped_session( sessionmaker(autocommit=False, autoflush=False, bind=engine) )...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/nameko_sqlalchemy/schema.py
null
null
null
null
null
null
Python
2026-05-04T01:34:01.297662
from models import Department as DepartmentModel from models import Employee as EmployeeModel from models import Role as RoleModel import graphene from graphene import relay from graphene_sqlalchemy import SQLAlchemyConnectionField, SQLAlchemyObjectType class Department(SQLAlchemyObjectType): class Meta: ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/nameko_sqlalchemy/service.py
null
null
null
null
null
null
Python
2026-05-04T01:34:01.299331
#!/usr/bin/env python from app import App from nameko.web.handlers import http class DepartmentService: name = "department" @http("POST", "/graphql") def query(self, request): return App().query(request)
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/batching.py
null
null
null
null
null
null
Python
2026-05-04T01:34:01.319033
"""The dataloader uses "select in loading" strategy to load related entities.""" from asyncio import get_event_loop from typing import Any, Dict import sqlalchemy from sqlalchemy.orm import Session, strategies from sqlalchemy.orm.query import QueryContext from sqlalchemy.util import immutabledict from .utils import (...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/converter.py
null
null
null
null
null
null
Python
2026-05-04T01:34:01.382942
import datetime import sys import typing import uuid from decimal import Decimal from typing import Any, Dict, Optional, TypeVar, Union, cast from sqlalchemy import types as sqa_types from sqlalchemy.dialects import postgresql from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm import ( ColumnPro...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.053252
from .fields import SQLAlchemyConnectionField from .types import SQLAlchemyInterface, SQLAlchemyObjectType from .utils import get_query, get_session __version__ = "3.0.0rc2" __all__ = [ "__version__", "SQLAlchemyInterface", "SQLAlchemyObjectType", "SQLAlchemyConnectionField", "get_query", "get...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/flask_sqlalchemy/schema.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.053839
from models import Department as DepartmentModel from models import Employee as EmployeeModel from models import Role as RoleModel import graphene from graphene import relay from graphene_sqlalchemy import SQLAlchemyConnectionField, SQLAlchemyObjectType class Department(SQLAlchemyObjectType): class Meta: ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/nameko_sqlalchemy/database.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.165840
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker engine = create_engine("sqlite:///database.sqlite3", convert_unicode=True) db_session = scoped_session( sessionmaker(autocommit=False, autoflush=False, bind=engine) )...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/nameko_sqlalchemy/app.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.186733
from database import db_session, init_db from schema import schema from graphql_server import ( HttpQueryError, default_format_error, encode_execution_results, json_encode, load_json_body, run_http_query, ) class App: def __init__(self): init_db() def query(self, request): ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
examples/nameko_sqlalchemy/models.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.634774
from database import Base from sqlalchemy import Column, DateTime, ForeignKey, Integer, String, func from sqlalchemy.orm import backref, relationship class Department(Base): __tablename__ = "department" id = Column(Integer, primary_key=True) name = Column(String) class Role(Base): __tablename__ = "r...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/models.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.758260
from __future__ import absolute_import import datetime import enum import uuid from decimal import Decimal from typing import List, Optional # fmt: off from sqlalchemy import ( Column, Date, Enum, ForeignKey, Integer, Numeric, String, Table, func, ) from sqlalchemy.ext.associationp...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/conftest.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.821700
import pytest import pytest_asyncio from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from typing_extensions import Literal import graphene from graphene_sqlalchemy.utils import SQL_VERSION_HIGHER_EQUAL_THAN_1_4 from ..converter import convert_sqlalchemy_composite from ..registry import res...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/models_batching.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.856913
from __future__ import absolute_import import enum from sqlalchemy import Column, Date, Enum, ForeignKey, Integer, String, Table, func from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import column_property, relationship from graphene_sqlalchemy.tests.utils import wrap_select_func PetKind...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/enums.py
null
null
null
null
null
null
Python
2026-05-04T01:34:02.893448
from sqlalchemy.orm import ColumnProperty from sqlalchemy.types import Enum as SQLAlchemyEnumType from graphene import Argument, Enum, List from .utils import EnumValue, to_enum_value_name, to_type_name def _convert_sa_to_graphene_enum(sa_enum, fallback_name=None): """Convert the given SQLAlchemy Enum type to a...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_batching.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.213218
import ast import contextlib import logging import pytest from sqlalchemy import select import graphene from graphene import Connection, relay from ..fields import BatchSQLAlchemyConnectionField, default_connection_field_factory from ..types import ORMField, SQLAlchemyObjectType from ..utils import ( SQL_VERSION...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_benchmark.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.273860
import asyncio import pytest from sqlalchemy import select import graphene from graphene import relay from ..types import SQLAlchemyObjectType from ..utils import ( SQL_VERSION_HIGHER_EQUAL_THAN_1_4, get_session, is_sqlalchemy_version_less_than, ) from .models import Article, HairKind, Pet, Reporter from...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_converter.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.343762
import enum import sys from typing import Dict, Tuple, TypeVar, Union import pytest import sqlalchemy import sqlalchemy_utils as sqa_utils from sqlalchemy import Column, func, types from sqlalchemy.dialects import postgresql from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.ext.hybrid import hybr...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_filters.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.457724
import pytest from sqlalchemy.sql.operators import is_ import graphene from graphene import Connection, relay from ..fields import SQLAlchemyConnectionField from ..filters import FloatFilter from ..types import ORMField, SQLAlchemyObjectType from .models import ( Article, Editor, HairKind, Image, ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_fields.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.512043
import pytest from promise import Promise from graphene import NonNull, ObjectType from graphene.relay import Connection, Node from ..fields import SQLAlchemyConnectionField, UnsortedSQLAlchemyConnectionField from ..types import SQLAlchemyObjectType from .models import Editor as EditorModel from .models import Pet as...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_enums.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.562589
from enum import Enum as PyEnum import pytest from sqlalchemy.types import Enum as SQLAlchemyEnumType from graphene import Enum from ..enums import _convert_sa_to_graphene_enum, enum_for_field from ..types import SQLAlchemyObjectType from .models import HairKind, Pet def test_convert_sa_to_graphene_enum_bad_type()...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_query_enums.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.898770
import pytest from sqlalchemy import select import graphene from graphene_sqlalchemy.tests.utils import eventually_await_session from graphene_sqlalchemy.utils import SQL_VERSION_HIGHER_EQUAL_THAN_1_4, get_session from ..types import SQLAlchemyObjectType from .models import HairKind, Pet, Reporter from .test_query im...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_query.py
null
null
null
null
null
null
Python
2026-05-04T01:34:03.926582
from datetime import date import pytest from sqlalchemy import select import graphene from graphene.relay import Node from ..converter import convert_sqlalchemy_composite from ..fields import SQLAlchemyConnectionField from ..types import ORMField, SQLAlchemyInterface, SQLAlchemyObjectType from ..utils import SQL_VER...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_reflected.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.002786
from graphene import ObjectType from ..registry import Registry from ..types import SQLAlchemyObjectType from .models import ReflectedEditor registry = Registry() class Reflected(SQLAlchemyObjectType): class Meta: model = ReflectedEditor registry = registry def test_objecttype_registered(): ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_sort_enums.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.073942
import pytest import sqlalchemy as sa from graphene import Argument, Enum, List, ObjectType, Schema from graphene.relay import Node from ..fields import SQLAlchemyConnectionField from ..types import SQLAlchemyObjectType from ..utils import to_type_name from .models import Base, HairKind, KeyedModel, Pet from .test_qu...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_registry.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.139554
import pytest from sqlalchemy.types import Enum as SQLAlchemyEnum import graphene from graphene import Enum as GrapheneEnum from ..registry import Registry from ..types import SQLAlchemyObjectType from ..utils import EnumValue from .models import Pet, Reporter def test_register_object_type(): reg = Registry() ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_types.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.169291
import re from unittest import mock import pytest import sqlalchemy.exc import sqlalchemy.orm.exc from graphql.pyutils import is_awaitable from sqlalchemy import select from graphene import ( Boolean, DefaultGlobalIDType, Dynamic, Field, Float, GlobalID, Int, List, Node, NonNul...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/test_utils.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.523406
import pytest import sqlalchemy as sa from graphene import Enum, List, ObjectType, Schema, String from ..utils import ( DummyImport, get_session, sort_argument_for_model, sort_enum_for_model, to_enum_value_name, to_type_name, ) from .models import Base, Editor, Pet def test_get_session(): ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/tests/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.665423
import inspect import re from sqlalchemy import select from graphene_sqlalchemy.utils import SQL_VERSION_HIGHER_EQUAL_THAN_1_4 def to_std_dicts(value): """Convert nested ordered dicts to normal dicts for better comparison.""" if isinstance(value, dict): return {k: to_std_dicts(v) for k, v in value.i...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.716642
import re import typing import warnings from collections import OrderedDict from functools import _c3_mro from importlib.metadata import version as get_version from typing import Any, Callable, Dict, Optional from packaging import version from sqlalchemy import select from sqlalchemy.exc import ArgumentError from sqla...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/types.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.725420
import inspect import logging import warnings from collections import OrderedDict from functools import partial from inspect import isawaitable from typing import Any, Optional, Type, Union import sqlalchemy from sqlalchemy.ext.associationproxy import AssociationProxy from sqlalchemy.ext.hybrid import hybrid_property ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T01:34:04.775368
import ast import re import sys from setuptools import find_packages, setup _version_re = re.compile(r"__version__\s+=\s+(.*)") with open("graphene_sqlalchemy/__init__.py", "rb") as f: version = str( ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)) ) requirements = [ # To ...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/registry.py
null
null
null
null
null
null
Python
2026-05-04T01:34:06.935990
import inspect from collections import defaultdict from typing import TYPE_CHECKING, List, Type from sqlalchemy.types import Enum as SQLAlchemyEnumType import graphene from graphene import Enum from graphene.types.base import BaseType if TYPE_CHECKING: # pragma: no_cover from .filters import BaseTypeFilter, Fie...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/filters.py
null
null
null
null
null
null
Python
2026-05-04T01:34:06.942184
import re from typing import Any, Dict, List, Tuple, Type, TypeVar, Union from graphql import Undefined from sqlalchemy import and_, not_, or_ from sqlalchemy.orm import Query, aliased # , selectinload import graphene from graphene.types.inputobjecttype import ( InputObjectTypeContainer, InputObjectTypeOptio...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/resolvers.py
null
null
null
null
null
null
Python
2026-05-04T01:34:07.014310
from graphene.utils.get_unbound_function import get_unbound_function def get_custom_resolver(obj_type, orm_field_name): """ Since `graphene` will call `resolve_<field_name>` on a field only if it does not have a `resolver`, we need to re-implement that logic here so users are able to override the defa...
graphql-python/graphene-sqlalchemy
https://github.com/graphql-python/graphene-sqlalchemy
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
graphene_sqlalchemy/fields.py
null
null
null
null
null
null
Python
2026-05-04T01:34:07.044145
import enum import warnings from functools import partial from promise import Promise, is_thenable from sqlalchemy.orm.query import Query from graphene.relay import Connection, ConnectionField from graphene.relay.connection import connection_adapter, page_info_adapter from graphql_relay import connection_from_array_s...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/fields.py
null
null
null
null
null
null
Python
2026-05-04T01:34:09.403788
from django.db import models from django.db.models.fields.files import ImageFieldFile from django.utils.translation import gettext_lazy as _ from django.conf import settings from django.utils.translation import get_language from .forms import BatonAiImageFormField from .widgets import BatonAiImageInput class BatonAi...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/apps.py
null
null
null
null
null
null
Python
2026-05-04T01:34:09.411634
from __future__ import unicode_literals from django.apps import AppConfig class BatonConfig(AppConfig): name = 'baton'
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/admin.py
null
null
null
null
null
null
Python
2026-05-04T01:34:09.412640
from django.contrib import admin from django.contrib.admin.filters import ( SimpleListFilter, AllValuesFieldListFilter, ChoicesFieldListFilter, RelatedFieldListFilter, RelatedOnlyFieldListFilter ) from .models import BatonTheme class InputFilter(admin.SimpleListFilter): template = 'baton/filte...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/ai.py
null
null
null
null
null
null
Python
2026-05-04T01:34:09.414907
class AIModels: BATON_GPT_3_5_TURBO = "gpt-3.5-turbo" BATON_GPT_4_TURBO = 'gpt-4-turbo' BATON_GPT_4O = 'gpt-4o' BATON_GPT_4O_MINI = 'gpt-4o-mini' BATON_DALL_E_3 = 'dall-e-3' text_models = [ BATON_GPT_3_5_TURBO, BATON_GPT_4_TURBO, BATON_GPT_4O, BATON_GPT_4O_MINI, ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/forms.py
null
null
null
null
null
null
Python
2026-05-04T01:34:09.417289
from django.forms.fields import ImageField from .widgets import BatonAiImageInput from .config import get_config class BatonAiImageFormField(ImageField): widget = BatonAiImageInput def __init__(self, subject_location_field=None, alt_field=None, alt_chars=20, alt_language='en', *args, **kwargs): self....
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/config.py
null
null
null
null
null
null
Python
2026-05-04T01:34:09.418862
# -*- coding: utf-8 -*- from django.conf import settings from django.utils.html import mark_safe from django.utils.translation import gettext as _ default_config = { "SITE_TITLE": "Baton", "SITE_HEADER": '<img class="baton-logo-light" src="%sbaton/img/logo.png" /><img class="baton-logo-dark" src="%sbaton/img/l...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/autodiscover/admin.py
null
null
null
null
null
null
Python
2026-05-04T01:34:09.420384
from django.contrib import admin from ..config import get_config class BatonAdminSite(admin.AdminSite): site_header = get_config('SITE_HEADER') site_title = get_config('SITE_TITLE') index_title = get_config('INDEX_TITLE') index_template = 'admin/index.html' enable_nav_sidebar = False def __i...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/templatetags/baton_tags.py
null
null
null
null
null
null
Python
2026-05-04T01:34:10.229673
import json import time import hmac import base64 import hashlib import requests from decimal import Decimal from django.urls import reverse from django import template from django.utils.html import escapejs from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.utils.modul...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/views.py
null
null
null
null
null
null
Python
2026-05-04T01:34:10.400355
# -*- coding: utf-8 -*- import hashlib import json import hmac import base64 import time import requests from django.http import JsonResponse from django.contrib.admin import site from django.contrib.admin.views.decorators import staff_member_required from django.utils.decorators import method_decorator from django.cor...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/urls.py
null
null
null
null
null
null
Python
2026-05-04T01:34:10.409950
from django.urls import path from .views import ( GetAppListJsonView, GetGravatartUrlJsonView, SummarizeView, VisionView, TranslateView, GenerateImageView, CorrectView, ) urlpatterns = [ path("app-list-json/", GetAppListJsonView.as_view(), name="baton-app-list-json"), path("gravata...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/widgets.py
null
null
null
null
null
null
Python
2026-05-04T01:34:10.413042
from django.forms.widgets import ClearableFileInput class BatonAiImageInput(ClearableFileInput): template_name = "baton/widgets/ai_image.html"
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
baton/models.py
null
null
null
null
null
null
Python
2026-05-04T01:34:11.283326
from django.db import models from django.utils.translation import gettext_lazy as _ class BatonTheme(models.Model): id = models.AutoField(primary_key=True, verbose_name=_("id")) name = models.CharField(_("name"), max_length=255) theme = models.TextField(_("theme")) active = models.BooleanField(_("activ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_cl_includes.py
null
null
null
null
null
null
Python
2026-05-04T01:34:11.586551
import os import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonClIncludes(TestCase): def setUp(self): self.d...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_index.py
null
null
null
null
null
null
Python
2026-05-04T01:34:11.778567
import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver import os os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonIndex(TestCase): def setUp(self): self.drive...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_index_mobile.py
null
null
null
null
null
null
Python
2026-05-04T01:34:11.852734
import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver import os os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonIndexMobile(TestCase): def setUp(self): self...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T01:34:11.892044
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), "README.md")) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) REPO_URL = "http://github.com/otto-torino/django-baton" ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
tasks.py
null
null
null
null
null
null
Python
2026-05-04T01:34:11.959365
import os import webbrowser from invoke import task def open_browser(path): try: from urllib import pathname2url except: from urllib.request import pathname2url webbrowser.open("file://" + pathname2url(os.path.abspath(path))) @task def docs(c): """ Build the documentation and op...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_input_filter.py
null
null
null
null
null
null
Python
2026-05-04T01:34:12.199251
import os import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonInputFilter(TestCase): def setUp(self): self....
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_login.py
null
null
null
null
null
null
Python
2026-05-04T01:34:12.360375
import time from django.test import TestCase from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from testapp.app.app.tests.utils import make_driver ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_menu.py
null
null
null
null
null
null
Python
2026-05-04T01:34:12.437750
import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver import os os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonMenu(TestCase): def setUp(self): self.driver ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_menu_mobile.py
null
null
null
null
null
null
Python
2026-05-04T01:34:12.472406
import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver import os os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonMenuMobile(TestCase): def setUp(self): self....
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_tabs.py
null
null
null
null
null
null
Python
2026-05-04T01:34:12.533569
import os import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonTabs(TestCase): def setUp(self): self.driver ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_e2e_theme.py
null
null
null
null
null
null
Python
2026-05-04T01:34:12.809031
import time from django.test import TestCase from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from .utils import element_has_css_class, make_driver import os os.environ["WDM_LOG_LEVEL"] = "0" class TestBatonTheme(TestCase): def setUp(self): self.drive...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_urls.py
null
null
null
null
null
null
Python
2026-05-04T01:34:12.975940
from django.test import TestCase from django.urls import reverse class TestBatonUrls(TestCase): def test_can_reverse_app_list(self): self.assertEqual(reverse('baton-app-list-json'), '/baton/app-list-json/') def test_can_reverse_gravatar(self): self.assertEqual(reverse('baton-gravatar-json'), ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_views.py
null
null
null
null
null
null
Python
2026-05-04T01:34:13.056151
import json from baton.views import GetAppListJsonView from django.contrib.auth.models import Permission, User from django.test import TestCase from django.urls import reverse class TestBatonViews(TestCase): def setUp(self): self.user = User.objects.create_user( "user", email="user@otto.to.it...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:34:13.066137
from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options from webdriver_manager.chrome import ChromeDriverManager class element_has_css_class(object): """An expectation for checking that an element has a particular css class. lo...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/urls.py
null
null
null
null
null
null
Python
2026-05-04T01:34:13.149142
"""app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/views.py
null
null
null
null
null
null
Python
2026-05-04T01:34:13.393037
from news.models import News from django.http.response import JsonResponse from django.contrib.admin.views.decorators import staff_member_required @staff_member_required def admin_search(request): text = request.GET.get("text", None) res = [] news = News.objects.all() if text: news = news.filt...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/wsgi.py
null
null
null
null
null
null
Python
2026-05-04T01:34:13.615483
""" WSGI config for app 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/manage.py
null
null
null
null
null
null
Python
2026-05-04T01:34:13.638066
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') dir_path = os.path.join( os.path.dirname(os.path.realpath(__file__)), '..', '..') sys.path.append(dir_path) try...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/news/admin.py
null
null
null
null
null
null
Python
2026-05-04T01:34:13.727415
import json from django.contrib import admin from django.utils.safestring import mark_safe from django.contrib.contenttypes.admin import GenericStackedInline from baton.admin import InputFilter, MultipleChoiceListFilter from rangefilter.filters import DateRangeFilter from admin_auto_filters.filters import Autocomplete...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/news/forms.py
null
null
null
null
null
null
Python
2026-05-04T01:34:14.189007
from django import forms from django_select2 import forms as s2forms from . import models class UserWidget(s2forms.ModelSelect2Widget): search_fields = [ "username__icontains", "email__icontains", ] class ActivityForm(forms.ModelForm): class Meta: model = models.Activity ...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/asgi.py
null
null
null
null
null
null
Python
2026-05-04T01:34:16.124261
""" ASGI config for app project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_...
otto-torino/django-baton
https://github.com/otto-torino/django-baton
null
null
null
null
985
null
null
mit
null
null
null
null
null
null
null
testapp/app/app/tests/test_config.py
null
null
null
null
null
null
Python
2026-05-04T01:34:16.207660
from baton.config import default_config, get_config from django.test import TestCase class TestBatonConfig(TestCase): def test_default_config(self): self.assertEqual(default_config["SITE_TITLE"], "Baton") self.assertEqual(default_config["INDEX_TITLE"], "Site administration") self.assertEqu...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
CLI-Exercises/cli_exercises.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.513986
from textual.app import App from textual.binding import Binding from textual.containers import Horizontal, VerticalScroll, Vertical from textual.widgets import Footer, Label, Input, Button from textual.widgets import MarkdownViewer, ContentSwitcher, DirectoryTree from rich.markup import escape as rich_escape import js...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/6by7.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.521870
def six_by_seven(num): # add your solution here assert six_by_seven(66) == 'Food' assert six_by_seven(13) == 'Oops' assert six_by_seven(42) == 'Universe' assert six_by_seven(14) == 'Good' assert six_by_seven(84) == 'Universe' assert six_by_seven(235432) == 'Oops' print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
ConnectSquare/connect_square.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.523185
from textual.app import App from textual.binding import Binding from textual.containers import Grid from textual.widgets import Button, Footer, Label from textual.widgets import RadioButton, RadioSet import random class ConnectSquareApp(App): ENABLE_COMMAND_PALETTE = False CSS_PATH = 'connect_square.css' B...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PyRegexPlayground/pyregex_playground.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.525116
from textual.app import App from textual.binding import Binding from textual.containers import Horizontal, VerticalScroll, Vertical from textual.widgets import Footer, Label, Input, Button, TextArea from textual.widgets import MarkdownViewer, ContentSwitcher from rich.text import Text from rich.pretty import Pretty fro...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
AwkTutorial/awk_tutorial.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.529855
from textual.app import App from textual.binding import Binding from textual.containers import VerticalScroll, Vertical from textual.widgets import Footer, Label, Input from textual.widgets import Markdown import subprocess import os from pathlib import Path SCRIPT_DIR = Path(__file__).parent.resolve() class AwkTuto...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/add_time_strings.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.532119
def add_time(t1, t2): # add your solution here assert add_time('01:02:03', '4:5:6') == '00-05:07:09' assert add_time('63:98:24', '84:2:76') == '06-04:41:40' assert add_time('99:99:99', '99:99:99') == '08-09:21:18' assert add_time('0:52:33', '0:6:27') == '00-00:59:00' print('all tests passed')
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PyRegexExercises/pyregex_exercises.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.539164
from textual.app import App from textual.binding import Binding from textual.containers import Horizontal, Vertical, VerticalScroll from textual.widgets import Footer, Label, Input, MarkdownViewer, Button from textual.widgets import RadioButton, RadioSet, ContentSwitcher from rich.markup import escape as rich_escape i...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
GrepExercises/grep_exercises.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.540526
from textual.app import App from textual.binding import Binding from textual.containers import Horizontal, VerticalScroll, Vertical from textual.widgets import Footer, Label, Input, Button from textual.widgets import MarkdownViewer, ContentSwitcher, DirectoryTree from rich.markup import escape as rich_escape import js...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
AwkExercises/awk_exercises.py
null
null
null
null
null
null
Python
2026-05-04T01:34:18.570398
from textual.app import App from textual.binding import Binding from textual.containers import Horizontal, VerticalScroll, Vertical from textual.widgets import Footer, Label, Input, Button from textual.widgets import MarkdownViewer, ContentSwitcher, DirectoryTree from rich.markup import escape as rich_escape import js...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/alphabetic_ordering.py
null
null
null
null
null
null
Python
2026-05-04T01:34:19.411987
def alphabetic_word(word): # add your solution here def alphabetic_sentence(sentence): # add your solution here # ascending order assert alphabetic_word('AborT') assert alphabetic_word('access') assert alphabetic_word('adopt') assert alphabetic_word('blot') assert alphabetic_word('cells') # descending order a...
learnbyexample/TUI-apps
https://github.com/learnbyexample/TUI-apps
null
null
null
null
984
null
null
mit
null
null
null
null
null
null
null
PythonExercises/exercises/inner_product.py
null
null
null
null
null
null
Python
2026-05-04T01:34:19.529208
def sum_of_product(s1, s2): # add your solution here assert sum_of_product((1, 3, 5), [2, 4, 6]) == 44 assert sum_of_product([], []) == 0 from math import isclose assert isclose(sum_of_product(range(3, 12, 2), [3.14, 0, -12, 6, 0.4223]), -15.9347) print('all tests passed')