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
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:06:29.343950
# ruff: noqa: F401 """ ## Dialects While there is a SQL standard, most SQL engines support a variation of that standard. This makes it difficult to write portable SQL code. SQLGlot bridges all the different variations, called "dialects", with an extensible SQL transpilation framework. The base `sqlglot.dialects.diale...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/doris.py
null
null
null
null
null
null
Python
2026-05-04T02:06:29.344941
from __future__ import annotations from sqlglot.dialects.mysql import MySQL from sqlglot.generators.doris import DorisGenerator from sqlglot.parsers.doris import DorisParser class Doris(MySQL): DATE_FORMAT = "'yyyy-MM-dd'" DATEINT_FORMAT = "'yyyyMMdd'" TIME_FORMAT = "'yyyy-MM-dd HH:mm:ss'" Parser = ...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/athena.py
null
null
null
null
null
null
Python
2026-05-04T02:06:29.352701
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import Dialect, DialectType from sqlglot.generators.athena import AthenaGenerator from sqlglot.parsers.athena import AthenaParser from sqlglot.tokens import TokenType, Token from sqlglot.dialects.trino import Trino from sqlglo...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/dialect.py
null
null
null
null
null
null
Python
2026-05-04T02:06:29.409936
from __future__ import annotations import importlib import logging import typing as t import sys from collections.abc import Iterable, MutableSequence from enum import Enum, auto from functools import reduce from builtins import type as Type from sqlglot import exp from sqlglot.dialects import DIALECT_MODULE_NAMES fr...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/druid.py
null
null
null
null
null
null
Python
2026-05-04T02:06:30.375414
from sqlglot.dialects.dialect import Dialect from sqlglot.generators.druid import DruidGenerator from sqlglot.parsers.druid import DruidParser class Druid(Dialect): Parser = DruidParser Generator = DruidGenerator
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/dune.py
null
null
null
null
null
null
Python
2026-05-04T02:06:30.375941
from __future__ import annotations from sqlglot.dialects.trino import Trino from sqlglot.generators.dune import DuneGenerator from sqlglot.parsers.dune import DuneParser class Dune(Trino): Parser = DuneParser class Tokenizer(Trino.Tokenizer): HEX_STRINGS = ["0x", ("X'", "'")] Generator = DuneG...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/exasol.py
null
null
null
null
null
null
Python
2026-05-04T02:06:30.419308
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.exasol import ExasolGenerator from sqlglot.parsers.exasol import DATE_UNITS as DATE_UNITS, ExasolParser from sqlglot.tokens import TokenType class Ex...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/postgres.py
null
null
null
null
null
null
Python
2026-05-04T02:06:30.549856
from __future__ import annotations from sqlglot import exp, tokens from sqlglot.dialects.dialect import Dialect from sqlglot.generators.postgres import PostgresGenerator from sqlglot.parsers.postgres import PostgresParser from sqlglot.tokens import TokenType class Postgres(Dialect): INDEX_OFFSET = 1 TYPED_DI...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/presto.py
null
null
null
null
null
null
Python
2026-05-04T02:06:30.954814
from __future__ import annotations import typing as t from sqlglot import tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.dialects.mysql import MySQL from sqlglot.generators.presto import PrestoGenerator from sqlglot.parsers.presto import PrestoParser from sqlglot....
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/prql.py
null
null
null
null
null
null
Python
2026-05-04T02:06:30.985961
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import Dialect from sqlglot.generators.prql import PRQLGenerator from sqlglot.parsers.prql import PRQLParser from sqlglot.tokens import TokenType class PRQL(Dialect): DPIPE_IS_STRING_CONCAT = False Generator = PRQLGe...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/materialize.py
null
null
null
null
null
null
Python
2026-05-04T02:06:30.987154
from __future__ import annotations from sqlglot.dialects.postgres import Postgres from sqlglot.generators.materialize import MaterializeGenerator from sqlglot.parsers.materialize import MaterializeParser class Materialize(Postgres): Parser = MaterializeParser Generator = MaterializeGenerator
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/hive.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.043533
from __future__ import annotations from copy import deepcopy from collections import defaultdict from sqlglot import exp, jsonpath, tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.hive import HiveGenerator from sqlglot.parsers.hive import HiveParser from...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/redshift.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.064897
from __future__ import annotations from sqlglot.typing.redshift import EXPRESSION_METADATA from sqlglot.dialects.dialect import NormalizationStrategy from sqlglot.dialects.postgres import Postgres from sqlglot.generators.redshift import RedshiftGenerator from sqlglot.parsers.redshift import RedshiftParser from sqlglot...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/oracle.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.087449
from __future__ import annotations import typing as t from sqlglot import exp, tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.oracle import OracleGenerator from sqlglot.parsers.oracle import OracleParser from sqlglot.tokens import TokenType class Orac...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/mysql.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.117999
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.mysql import MySQLGenerator from sqlglot.parsers.mysql import MySQLParser from sqlglot.tokens import TokenType from sqlglot.typing.mysql import EXPRESSI...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/fabric.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.132591
from __future__ import annotations from sqlglot.dialects.dialect import NormalizationStrategy from sqlglot.dialects.tsql import TSQL from sqlglot.generators.fabric import FabricGenerator from sqlglot.parsers.fabric import FabricParser from sqlglot.tokens import TokenType class Fabric(TSQL): """ Microsoft Fa...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/duckdb.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.146440
from __future__ import annotations from sqlglot import exp, tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.duckdb import DuckDBGenerator, WS_CONTROL_CHARS_TO_DUCK # noqa: F401 from sqlglot.parsers.duckdb import DuckDBParser from sqlglot.tokens import ...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/risingwave.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.147464
from __future__ import annotations from sqlglot.dialects.postgres import Postgres from sqlglot.generators.risingwave import RisingWaveGenerator from sqlglot.parsers.risingwave import RisingWaveParser from sqlglot.tokens import TokenType class RisingWave(Postgres): REQUIRES_PARENTHESIZED_STRUCT_ACCESS = True ...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/singlestore.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.544886
from sqlglot import TokenType from sqlglot.dialects.mysql import MySQL from sqlglot.generators.singlestore import SingleStoreGenerator from sqlglot.parsers.singlestore import SingleStoreParser, cast_to_time6 class SingleStore(MySQL): SUPPORTS_ORDER_BY_ALL = True MYSQL_INVERSE_TIME_MAPPING = MySQL.INVERSE_TIM...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/snowflake.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.549777
from __future__ import annotations from sqlglot import exp, jsonpath, tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.snowflake import SnowflakeGenerator from sqlglot.parsers.snowflake import ( SnowflakeParser, ) from sqlglot.tokens import TokenType f...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/solr.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.573537
from sqlglot import tokens from sqlglot.dialects.dialect import Dialect, NormalizationStrategy from sqlglot.generators.solr import SolrGenerator from sqlglot.parsers.solr import SolrParser # https://solr.apache.org/guide/solr/latest/query-guide/sql-query.html class Solr(Dialect): NORMALIZATION_STRATEGY = Normal...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/spark.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.655076
from __future__ import annotations import typing as t from sqlglot.dialects.spark2 import Spark2 from sqlglot.generators.spark import SparkGenerator from sqlglot.parsers.spark import SparkParser from sqlglot.tokens import TokenType from sqlglot.typing.spark import EXPRESSION_METADATA class Spark(Spark2): SUPPOR...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/spark2.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.656376
from __future__ import annotations from sqlglot.dialects.hive import Hive from sqlglot.generators.spark2 import Spark2Generator from sqlglot.parsers.spark2 import Spark2Parser from sqlglot.tokens import TokenType from sqlglot.typing.spark2 import EXPRESSION_METADATA class Spark2(Hive): ALTER_TABLE_SUPPORTS_CASCA...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/sqlite.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.661811
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.sqlite import SQLiteGenerator from sqlglot.parsers.sqlite import SQLiteParser from sqlglot.tokens import TokenType class SQLite(Dialect): # https:...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/starrocks.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.672954
from __future__ import annotations from sqlglot.dialects.mysql import MySQL from sqlglot.generators.starrocks import StarRocksGenerator from sqlglot.parsers.starrocks import StarRocksParser from sqlglot.tokens import TokenType class StarRocks(MySQL): STRICT_JSON_PATH_SYNTAX = False INDEX_OFFSET = 1 clas...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/tableau.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.731147
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import Dialect from sqlglot.generators.tableau import TableauGenerator from sqlglot.parsers.tableau import TableauParser class Tableau(Dialect): LOG_BASE_FIRST = False class Tokenizer(tokens.Tokenizer): IDENT...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/teradata.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.746918
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import Dialect from sqlglot.generators.teradata import TeradataGenerator from sqlglot.parsers.teradata import TeradataParser from sqlglot.tokens import TokenType class Teradata(Dialect): TYPED_DIVISION = True TIME_MA...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/trino.py
null
null
null
null
null
null
Python
2026-05-04T02:06:31.747385
from __future__ import annotations from sqlglot.dialects.presto import Presto from sqlglot.generators.trino import TrinoGenerator from sqlglot.parsers.trino import TrinoParser from sqlglot.tokens import TokenType class Trino(Presto): SUPPORTS_USER_DEFINED_TYPES = False LOG_BASE_FIRST = True CONCAT_WS_COA...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/executor/env.py
null
null
null
null
null
null
Python
2026-05-04T02:06:32.496888
import datetime import inspect import re import statistics from functools import wraps from sqlglot import exp from sqlglot.generator import Generator from sqlglot.helper import PYTHON_VERSION, is_int, seq_get class reverse_key: def __init__(self, obj): self.obj = obj def __eq__(self, other): ...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/executor/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:06:32.501141
""" .. include:: ../../posts/python_sql_engine.md ---- """ from __future__ import annotations import logging import time import typing as t from sqlglot import exp from sqlglot.errors import ExecuteError from sqlglot.executor.python import PythonExecutor from sqlglot.executor.table import Table, ensure_tables from ...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/executor/python.py
null
null
null
null
null
null
Python
2026-05-04T02:06:32.501713
import collections import itertools import math from sqlglot import exp, planner, tokens from sqlglot.dialects.dialect import Dialect from sqlglot.errors import ExecuteError from sqlglot.executor.context import Context from sqlglot.executor.env import ENV from sqlglot.executor.table import RowReader, Table from sqlglo...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/dialects/tsql.py
null
null
null
null
null
null
Python
2026-05-04T02:06:32.510201
from __future__ import annotations from sqlglot import tokens from sqlglot.dialects.dialect import ( Dialect, NormalizationStrategy, ) from sqlglot.generators.tsql import TSQLGenerator from sqlglot.parsers.tsql import TSQLParser from sqlglot.tokens import TokenType from sqlglot.typing.tsql import EXPRESSION_ME...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/executor/context.py
null
null
null
null
null
null
Python
2026-05-04T02:06:32.541065
from __future__ import annotations import typing as t from sqlglot.executor.env import ENV if t.TYPE_CHECKING: from sqlglot.executor.table import Table, TableIter class Context: """ Execution context for sql expressions. Context is used to hold relevant data tables which can then be queried on wit...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/diff.py
null
null
null
null
null
null
Python
2026-05-04T02:06:32.557296
""" .. include:: ../posts/sql_diff.md ---- """ from __future__ import annotations import typing as t from collections import defaultdict from dataclasses import dataclass from heapq import heappop, heappush from itertools import chain from sqlglot import Dialect, expressions as exp from sqlglot.helper import seq_ge...
tobymao/sqlglot
https://github.com/tobymao/sqlglot
null
null
null
null
9,194
null
null
mit
null
null
null
null
null
null
null
sqlglot/errors.py
null
null
null
null
null
null
Python
2026-05-04T02:06:33.006210
from __future__ import annotations import typing as t from enum import auto from collections.abc import Sequence from sqlglot.helper import AutoName # ANSI escape codes for error formatting ANSI_UNDERLINE = "\033[4m" ANSI_RESET = "\033[0m" ERROR_MESSAGE_CONTEXT_DEFAULT = 100 class ErrorLevel(AutoName): IGNORE ...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBCounterCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.635682
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # These set of commands provide a way to use counters in debug time. By using these counters, # you can...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBFindCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.636791
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import re import fbchisellldbbase as fb import fbchisellldbobjcruntimehelpers as objc import...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBAccessibilityCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.638787
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import re import fbchisellldbbase as fb import fbchisellldbobjecthelpers as objHelpers # T...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBDelay.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.640207
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from threading import Timer import fbchisellldbbase as fb import lldb def lldbcommands(): return...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBClassDump.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.641187
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import string import fbchisellldbbase as fb import fbchisellldbobjcruntimehelpers as runtimeHelpers ...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBCopyCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.642199
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import print_function import errno import os import time import fbchisellldbbase as f...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBAutoLayoutCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.643154
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb import fbchisellldbviewhelpers as viewHelpers import lldb def lldbcomm...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBComponentCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.644576
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb import fbchisellldbviewhelpers as viewHelpers def lldbcommands(): r...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBDisplayCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.645427
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb import fbchisellldbobjcruntimehelpers as runtimeHelpers import fbchiselll...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBDebugCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:35.646618
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # Can be removed when Python 2 support is removed. from __future__ import print_function import os imp...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBTextInputCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.704634
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb import fbchisellldbviewhelpers as viewHelpers ACCESSIBILITY_ID = 0 REPL...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
fbchisellldb.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.719382
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import imp import os from contextlib import redirect_stderr, redirect_stdout from optparse import Optio...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBXCTestCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.803333
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import re import fbchisellldbbase as fb import lldb NOT_FOUND = 0xFFFFFFFF # UINT32_MAX def lldbc...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBInvocationCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.832353
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import re import fbchisellldbbase as fb import lldb def lldbcommands(): return [FBPrintInvocatio...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
fbchisellldbinputhelpers.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.834008
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import lldb class FBInputHandler: def __init__(self, debugger, callback): self.debugger =...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBVisualizationCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.842176
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import errno import os import time import fbchisellldbbase as fb import fbchisellldbobjecthelpers as o...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBFlickerCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.850018
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import sys import fbchisellldbbase as fb import fbchisellldbobjcruntimehelpers as runtimeHel...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
fbchisellldbbase.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.874933
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import shlex import lldb class FBCommandArgument: # noqa B903 def __init__( ...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBImportCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.904908
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb import lldb def lldbcommands(): return [ImportUIKitModule()] clas...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
commands/FBPrintCommands.py
null
null
null
null
null
null
Python
2026-05-04T02:06:37.934692
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import re import subprocess import fbchisellldbbase as fb import fbchisellldbobjcruntimehelp...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
fbchisellldbobjecthelpers.py
null
null
null
null
null
null
Python
2026-05-04T02:06:38.390217
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb def isKindOfClass(obj, className): isKindOfClassStr = "[(id)" + obj...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
fbchisellldbobjcruntimehelpers.py
null
null
null
null
null
null
Python
2026-05-04T02:06:38.571802
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import re import fbchisellldbbase as fb import lldb def objc_getClass(className): command = '(vo...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
fbchisellldbviewcontrollerhelpers.py
null
null
null
null
null
null
Python
2026-05-04T02:06:38.595939
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb import fbchisellldbobjcruntimehelpers as runtimeHelpers def presentView...
facebook/chisel
https://github.com/facebook/chisel
null
null
null
null
9,183
null
null
mit
null
null
null
null
null
null
null
fbchisellldbviewhelpers.py
null
null
null
null
null
null
Python
2026-05-04T02:06:38.666721
#!/usr/bin/python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fbchisellldbbase as fb import fbchisellldbobjcruntimehelpers as runtimeHelpers def flushCoreAn...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/completer.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.450419
# -*- coding: utf-8 -*- import re from collections import OrderedDict from itertools import chain from urllib.parse import urlparse from prompt_toolkit.completion import Completer, Completion from .completion import (ROOT_COMMANDS, ACTIONS, OPTION_NAMES, HEADER_NAMES, HEADER_VALUES) RULES...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/config.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.457018
"""Functions that deal with the user configuration.""" import os import shutil from . import defaultconfig from . import xdg def get_user_config_path(): """Get the path to the user config file.""" return os.path.join(xdg.get_config_dir(), 'config.py') def initialize(): """Initialize a default config f...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/contextio.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.472500
"""Serialization and deserialization of a Context object.""" import io import os from . import xdg from .context.transform import format_to_http_prompt from .execution import execute # Don't save these HTTPie options to avoid collision with user config file EXCLUDED_OPTIONS = ['--style'] # Filename the current env...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/cli.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.482528
import json from http.cookies import SimpleCookie from urllib.request import pathname2url, urlopen import yaml import os import re import sys import click from httpie.plugins import FormatterPlugin # noqa, avoid cyclic import from httpie.output.formatters.colors import Solarized256Style from prompt_toolkit import p...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/context/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.530986
from http_prompt.tree import Node class Context(object): def __init__(self, url=None, spec=None): self.url = url self.headers = {} self.querystring_params = {} self.body_params = {} self.body_json_params = {} self.options = {} self.should_exit = False ...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/defaultconfig.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.540729
# Highlighting style for prompt commands. Available values: # algol, algol_nu, autumn, borland, bw, colorful, default, emacs, friendly, # fruity, igor, lovelace, manni, monokai, murphy, native, paraiso-dark, # paraiso-light, pastie, perldoc, rrt, solarized, tango, trac, vim, vs, xcode. # Preview themes at http://http-p...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/context/transform.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.574515
"""Functions that transform a Context object to a different representation.""" import json from http_prompt.utils import smart_quote def _noop(s): return s def _extract_httpie_options(context, quote=False, join_key_value=False, excluded_keys=None): if quote: quote_func ...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/completion.py
null
null
null
null
null
null
Python
2026-05-04T02:06:41.642900
"""Meta data for autocomplete.""" from collections import OrderedDict from . import options as opt ROOT_COMMANDS = OrderedDict([ ('cd', 'Change URL/path'), ('clear', 'Clear console screen'), ('curl', 'Preview curl command'), ('env', 'Print environment'), ('exec', 'Clear and load environment from...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/xdg.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.405094
"""XDG Base Directory Specification. See: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html https://github.com/ActiveState/appdirs """ import os import sys from functools import partial def _get_dir(envvar_name, default_dir, resource_name=None): base_dir = os.getenv(envvar_nam...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/execution.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.442497
import io import json import re import os import sys from urllib.parse import urlparse, urljoin import click from subprocess import CalledProcessError, Popen, PIPE from httpie.context import Environment from httpie.core import main as httpie_main from parsimonious.exceptions import ParseError, VisitationError from p...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/output.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.517574
import sys import click class Printer(object): """Wrap click.echo_via_pager() so it accepts binary data.""" def write(self, data): if isinstance(data, bytes): data = data.decode() # echo_via_pager() already appends a '\n' at the end of text, # so we use rstrip() to remov...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.594650
import os import re from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) # Read the version number from a source file. # Why read it, and not import? # see https://groups.google.com/d/topic/pypa-dev/0PkjVpcxTzQ/discussion def find_version(*file_paths): # Open in Latin-1 so that we avoi...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/tree.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.705185
"""Tree data structure for ls command to work with OpenAPI specification.""" class Node(object): def __init__(self, name, data=None, parent=None): if name in ('.', '..'): raise ValueError("name cannot be '.' or '..'") self.name = name self.data = data or {} self.paren...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.712287
import math import re import shlex from prompt_toolkit.output.defaults import create_output RE_ANSI_ESCAPE = re.compile(r'\x1b[^m]*m') def smart_quote(s): return shlex.quote(s) def unquote(s): quotes = ["'", '"'] quote_str = None if s[0] in quotes: quote_str = s[0] if quote_str and s...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/lexer.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.836851
from pygments.lexer import (RegexLexer, bygroups, words, using, include, combined) from pygments.lexers import BashLexer from pygments.token import Text, String, Keyword, Name, Operator from . import options as opt __all__ = ['HttpPromptLexer'] FLAG_OPTIONS = [name for name, _ in opt.F...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
http_prompt/options.py
null
null
null
null
null
null
Python
2026-05-04T02:06:42.915927
"""Meta data for HTTPie options.""" FLAG_OPTIONS = [ ('--body', 'Print only response body'), ('--check-status', 'Check HTTP status code'), ('--continue', 'Resume an interrupted download'), ('--debug', 'Print debug information'), ('--download', 'Download as a file'), ('--follow', 'Allow full red...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/context/test_transform.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.028093
from http_prompt.context import Context from http_prompt.context import transform as t def test_extract_args_for_httpie_main_get(): c = Context('http://localhost/things') c.headers.update({ 'Authorization': 'ApiKey 1234', 'Accept': 'text/html' }) c.querystring_params.update({ '...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_cli.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.044279
import json import os import sys import unittest from unittest.mock import patch, DEFAULT from click.testing import CliRunner from requests.models import Response from .base import TempAppDirTestCase from http_prompt import xdg from http_prompt.context import Context from http_prompt.cli import cli, execute, Executio...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/context/test_context.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.098460
from http_prompt.context import Context def test_creation(): context = Context('http://example.com') assert context.url == 'http://example.com' assert context.options == {} assert context.headers == {} assert context.querystring_params == {} assert context.body_params == {} assert not cont...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_config.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.451139
import hashlib import os from .base import TempAppDirTestCase from http_prompt import config def _hash_file(path): with open(path, 'rb') as f: data = f.read() return hashlib.sha1(data).hexdigest() class TestConfig(TempAppDirTestCase): def test_initialize(self): # Config file doesn't ex...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_contextio.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.452387
# -*- coding: utf-8 -*- from .base import TempAppDirTestCase from http_prompt.context import Context from http_prompt.contextio import save_context, load_context class TestContextIO(TempAppDirTestCase): def test_save_and_load_context_non_ascii(self): c = Context('http://localhost') c.headers.upda...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/base.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.680565
import os import shutil import sys import tempfile import unittest class TempAppDirTestCase(unittest.TestCase): """Set up temporary app data and config directories before every test method, and delete them afterwards. """ def setUp(self): # Create a temp dir that will contain data and config ...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_completer.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.681032
# -*- coding: utf-8 -*- import unittest from prompt_toolkit.document import Document from http_prompt.completer import HttpPromptCompleter from http_prompt.context import Context class TestCompleter(unittest.TestCase): def setUp(self): self.context = Context('http://localhost', spec={ 'path...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_installation.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.807998
"""Test if http-prompt is installed correctly.""" import subprocess import pytest from subprocess import PIPE from .utils import get_http_prompt_path from http_prompt import __version__ def run_http_prompt(args): """Run http-prompt from terminal.""" bin_path = get_http_prompt_path() p = subprocess.Pop...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_execution.py
null
null
null
null
null
null
Python
2026-05-04T02:06:43.808780
# -*- coding: utf-8 -*- import hashlib import io import json import shutil import os import sys import pytest from collections import namedtuple from unittest.mock import patch from http_prompt.context import Context from http_prompt.execution import execute, HTTPIE_PROGRAM_NAME from .base import TempAppDirTestCas...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:06:44.010324
import os import sys def get_http_prompt_path(): """Get the path to http-prompt executable.""" python_dir = os.path.dirname(sys.executable) bin_name = 'http-prompt' if sys.platform == 'win32': bin_name += '.exe' paths = [ os.path.join(python_dir, bin_name), os.path.join(py...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_xdg.py
null
null
null
null
null
null
Python
2026-05-04T02:06:44.164571
import os import stat import sys from .base import TempAppDirTestCase from http_prompt import xdg class TestXDG(TempAppDirTestCase): def test_get_app_data_home(self): path = xdg.get_data_dir() expected_path = os.path.join(os.environ[self.homes['data']], 'http...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_interaction.py
null
null
null
null
null
null
Python
2026-05-04T02:06:44.852152
import os import sys import pexpect import pytest from .base import TempAppDirTestCase from .utils import get_http_prompt_path from http_prompt import config class TestInteraction(TempAppDirTestCase): def setUp(self): super(TestInteraction, self).setUp() # Use temporary directory as user confi...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_tree.py
null
null
null
null
null
null
Python
2026-05-04T02:06:48.615723
import unittest from http_prompt.tree import Node class TestNode(unittest.TestCase): def setUp(self): # Make a tree like this: # root # a h # b d i n # c f e g k o # l m p self.root = Node('root'...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:06:48.670768
from http_prompt import utils def test_colformat_zero_items(): assert list(utils.colformat([], terminal_width=80)) == [] def test_colformat_one_item(): assert list(utils.colformat(['hello'], terminal_width=80)) == ['hello'] def test_colformat_single_line(): items = ['hello', 'world', 'foo', 'bar'] ...
httpie/http-prompt
https://github.com/httpie/http-prompt
null
null
null
null
9,115
null
null
mit
null
null
null
null
null
null
null
tests/test_lexer.py
null
null
null
null
null
null
Python
2026-05-04T02:06:48.723291
import unittest from pygments.token import Keyword, String, Text, Error, Name, Operator from http_prompt.lexer import HttpPromptLexer class LexerTestCase(unittest.TestCase): def setUp(self): self.lexer = HttpPromptLexer() def get_tokens(self, text, filter_spaces=True): tokens = self.lexer....
langchain-ai/local-deep-researcher
https://github.com/langchain-ai/local-deep-researcher
null
null
null
null
9,084
null
null
mit
null
null
null
null
null
null
null
src/ollama_deep_researcher/lmstudio.py
null
null
null
null
null
null
Python
2026-05-04T02:06:51.305595
"""LMStudio integration for the research assistant.""" import json import logging from typing import Any, List, Optional from langchain_core.callbacks.manager import CallbackManagerForLLMRun from langchain_core.messages import ( BaseMessage, ) from langchain_core.outputs import ChatResult from langchain_openai im...
langchain-ai/local-deep-researcher
https://github.com/langchain-ai/local-deep-researcher
null
null
null
null
9,084
null
null
mit
null
null
null
null
null
null
null
src/ollama_deep_researcher/state.py
null
null
null
null
null
null
Python
2026-05-04T02:06:51.306594
import operator from dataclasses import dataclass, field from typing_extensions import Annotated @dataclass(kw_only=True) class SummaryState: research_topic: str = field(default=None) # Report topic search_query: str = field(default=None) # Search query web_research_results: Annotated[list, operator.add...
langchain-ai/local-deep-researcher
https://github.com/langchain-ai/local-deep-researcher
null
null
null
null
9,084
null
null
mit
null
null
null
null
null
null
null
src/ollama_deep_researcher/configuration.py
null
null
null
null
null
null
Python
2026-05-04T02:06:51.307068
import os from enum import Enum from pydantic import BaseModel, Field from typing import Any, Optional, Literal from langchain_core.runnables import RunnableConfig class SearchAPI(Enum): PERPLEXITY = "perplexity" TAVILY = "tavily" DUCKDUCKGO = "duckduckgo" SEARXNG = "searxng" class Configuration(Ba...
langchain-ai/local-deep-researcher
https://github.com/langchain-ai/local-deep-researcher
null
null
null
null
9,084
null
null
mit
null
null
null
null
null
null
null
src/ollama_deep_researcher/prompts.py
null
null
null
null
null
null
Python
2026-05-04T02:06:51.308015
from datetime import datetime # Get current date in a readable format def get_current_date(): return datetime.now().strftime("%B %d, %Y") query_writer_instructions = """Your goal is to generate a targeted web search query. <CONTEXT> Current date: {current_date} Please ensure your queries account for the most c...
langchain-ai/local-deep-researcher
https://github.com/langchain-ai/local-deep-researcher
null
null
null
null
9,084
null
null
mit
null
null
null
null
null
null
null
src/ollama_deep_researcher/graph.py
null
null
null
null
null
null
Python
2026-05-04T02:06:51.308451
import json from pydantic import BaseModel, Field from typing_extensions import Literal from langchain_core.messages import HumanMessage, SystemMessage from langchain_core.runnables import RunnableConfig from langchain_core.tools import tool from langchain_ollama import ChatOllama from langgraph.graph import START, E...
langchain-ai/local-deep-researcher
https://github.com/langchain-ai/local-deep-researcher
null
null
null
null
9,084
null
null
mit
null
null
null
null
null
null
null
src/ollama_deep_researcher/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:06:51.308991
import os import httpx import requests from typing import Dict, Any, List, Union, Optional from markdownify import markdownify from langsmith import traceable from tavily import TavilyClient from duckduckgo_search import DDGS from langchain_community.utilities import SearxSearchWrapper # Constants CHARS_PER_TOKEN = ...
dylanaraps/pywal
https://github.com/dylanaraps/pywal
null
null
null
null
9,069
null
null
mit
null
null
null
null
null
null
null
pywal/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:06:53.653915
""" '|| ... ... .... ... ... ... ... .... || ||' || '|. | || || | '' .|| || || | '|.| ||| ||| .|' || || ||...' '| | | '|..'|' .||. || .. | '''' '' Created by Dylan Araps. """ from .settings import __version__, __cache_versio...
dylanaraps/pywal
https://github.com/dylanaraps/pywal
null
null
null
null
9,069
null
null
mit
null
null
null
null
null
null
null
pywal/backends/colorthief.py
null
null
null
null
null
null
Python
2026-05-04T02:06:53.657427
""" Generate a colorscheme using ColorThief. """ import logging import sys try: from colorthief import ColorThief except ImportError: logging.error("ColorThief wasn't found on your system.") logging.error("Try another backend. (wal --backend)") sys.exit(1) from .. import util def gen_colors(img): ...
dylanaraps/pywal
https://github.com/dylanaraps/pywal
null
null
null
null
9,069
null
null
mit
null
null
null
null
null
null
null
pywal/backends/schemer2.py
null
null
null
null
null
null
Python
2026-05-04T02:06:53.670535
""" Generate a colorscheme using Schemer2. """ import logging import shutil import subprocess import sys from .. import colors from .. import util def gen_colors(img): """Generate a colorscheme using Colorz.""" cmd = ["schemer2", "-format", "img::colors", "-minBright", "75", "-in"] return subprocess.chec...
dylanaraps/pywal
https://github.com/dylanaraps/pywal
null
null
null
null
9,069
null
null
mit
null
null
null
null
null
null
null
pywal/colors.py
null
null
null
null
null
null
Python
2026-05-04T02:06:53.679602
""" Generate a palette using various backends. """ import logging import os import random import re import sys from . import theme from . import util from .settings import CACHE_DIR, MODULE_DIR, __cache_version__ def list_backends(): """List color backends.""" return [b.name.replace(".py", "") for b in ...