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
erikrose/parsimonious
https://github.com/erikrose/parsimonious
null
null
null
null
1,912
null
null
mit
null
null
null
null
null
null
null
parsimonious/grammar.py
null
null
null
null
null
null
Python
2026-05-04T01:50:09.238871
"""A convenience which constructs expression trees from an easy-to-read syntax Use this unless you have a compelling reason not to; it performs some optimizations that would be tedious to do when constructing an expression tree by hand. """ from collections import OrderedDict from textwrap import dedent from parsimo...
erikrose/parsimonious
https://github.com/erikrose/parsimonious
null
null
null
null
1,912
null
null
mit
null
null
null
null
null
null
null
parsimonious/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:50:09.249987
"""Parsimonious's public API. Import from here. Things may move around in modules deeper than this one. """ from parsimonious.exceptions import (ParseError, IncompleteParseError, VisitationError, UndefinedLabel, BadGrammar) from parsimonious.gr...
erikrose/parsimonious
https://github.com/erikrose/parsimonious
null
null
null
null
1,912
null
null
mit
null
null
null
null
null
null
null
parsimonious/tests/test_grammar.py
null
null
null
null
null
null
Python
2026-05-04T01:50:09.276424
# coding=utf-8 from sys import version_info from unittest import TestCase import pytest from parsimonious.exceptions import BadGrammar, LeftRecursionError, ParseError, UndefinedLabel, VisitationError from parsimonious.expressions import Literal, Lookahead, Regex, Sequence, TokenMatcher, is_callable from parsimonious...
erikrose/parsimonious
https://github.com/erikrose/parsimonious
null
null
null
null
1,912
null
null
mit
null
null
null
null
null
null
null
parsimonious/expressions.py
null
null
null
null
null
null
Python
2026-05-04T01:50:09.305624
"""Subexpressions that make up a parsed grammar These do the parsing. """ # TODO: Make sure all symbol refs are local--not class lookups or # anything--for speed. And kill all the dots. from collections import defaultdict from inspect import getfullargspec, isfunction, ismethod, ismethoddescriptor try: import re...
erikrose/parsimonious
https://github.com/erikrose/parsimonious
null
null
null
null
1,912
null
null
mit
null
null
null
null
null
null
null
parsimonious/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:50:09.798308
"""General tools which don't depend on other parts of Parsimonious""" import ast class StrAndRepr(object): """Mix-in which gives the class the same __repr__ and __str__.""" def __repr__(self): return self.__str__() def evaluate_string(string): """Piggyback on Python's string support so we can ...
erikrose/parsimonious
https://github.com/erikrose/parsimonious
null
null
null
null
1,912
null
null
mit
null
null
null
null
null
null
null
parsimonious/tests/test_nodes.py
null
null
null
null
null
null
Python
2026-05-04T01:50:09.798849
# -*- coding: utf-8 -*- from unittest import SkipTest, TestCase from parsimonious import Grammar, NodeVisitor, VisitationError, rule from parsimonious.expressions import Literal from parsimonious.nodes import Node class HtmlFormatter(NodeVisitor): """Visitor that turns a parse tree into HTML fragments""" gra...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
docs/extensions/nitpick_ignore_files.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.079900
# copied and adapted from https://github.com/Rapptz/discord.py/pull/6863 import logging import re from sphinx.application import Sphinx from sphinx.util import logging as sphinx_logging class NitpickIgnoreFiles(logging.Filter): def __init__(self, app: Sphinx) -> None: self.app = app super().__i...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/general/plot_driver_styling.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.080424
"""Driver specific plot styling =============================== Create some plots and show the usage of ``fastf1.plotting.get_driver_style``. """ from matplotlib import pyplot as plt import fastf1 from fastf1 import plotting # Enable Matplotlib patches for plotting timedelta values and load # FastF1's dark color s...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/general/plot_annotate_corners.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.083160
"""Draw a track map with numbered corners ========================================= Use the position data of a single lap to draw a track map. Then annotate the map with corner numbers. """ ############################################################################## # Import FastF1 and load the data. Use the telemet...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
docs/_plots/colormap_overview.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.090355
import matplotlib.pyplot as plt from fastf1.plotting._backend import Constants n = len(Constants) # total number of years # dynamically adjust figure size depending on number of required subplots fig = plt.figure(figsize=(10, 3 * n)) # slightly paranoid, sort years explicitly (order is not necessarily # guarantee...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/results_strategy/plot_position_changes.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.091299
""" Position changes during a race ============================== Plot the position of each driver at the end of each lap. """ import matplotlib.pyplot as plt import fastf1.plotting # Load FastF1's dark color scheme fastf1.plotting.setup_mpl(mpl_timedelta_support=False, color_scheme='fastf1') ###################...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/lap_times/plot_laptimes_distribution.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.093283
"""Driver Laptimes Distribution Visualization ============================================= Visualize different drivers' laptime distributions. """ import seaborn as sns from matplotlib import pyplot as plt import fastf1 import fastf1.plotting # Enable Matplotlib patches for plotting timedelta values an...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.094163
# -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/lap_times/plot_driver_laptimes.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.134696
"""Driver Laptimes Scatterplot ============================== Plot a driver's lap times in a race, with color coding for the compounds. """ import seaborn as sns from matplotlib import pyplot as plt import fastf1 import fastf1.plotting # Enable Matplotlib patches for plotting timedelta values and load...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/results_strategy/plot_qualifying_results.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.165916
"""Qualifying results overview ============================== Plot the qualifying result with visualization the fastest times. """ import matplotlib.pyplot as plt import pandas as pd from timple.timedelta import strftimedelta import fastf1 import fastf1.plotting from fastf1.core import Laps # Enable Matplotlib pa...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
conftest.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.176855
import os import pytest ERGAST_BACKEND_OVERRIDE = os.environ.get("FASTF1_TEST_ERGAST_BACKEND_OVERRIDE") if ERGAST_BACKEND_OVERRIDE: import fastf1.ergast fastf1.ergast.interface.BASE_URL = ERGAST_BACKEND_OVERRIDE def pytest_addoption(parser): parser.addoption( "--no-f1-tel-api", action="store_...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/standings/plot_results_tracker.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.694675
"""Plot driver standings in a heatmap ====================================== Plot the points for each driven in each race of a given season in a heatmap, as https://public.tableau.com/app/profile/mateusz.karmalski/viz/F1ResultsTracker2022 """ import pandas as pd import plotly.express as px from plotly.io import show ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/standings/plot_season_summary.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.698495
""" Season Summary Visualization ================================== This example demonstrates how to make an interactive season summarization dashboard showing points scored by each driver at each round. """ import pandas as pd import plotly.graph_objects as go from plotly.io import show from plotly.subplots import ma...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/results_strategy/plot_team_pace_ranking.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.703760
"""Team Pace Comparison ============================================= Rank team's race pace from the fastest to the slowest. """ import seaborn as sns from matplotlib import pyplot as plt import fastf1 import fastf1.plotting # Load FastF1's dark color scheme fastf1.plotting.setup_mpl(mpl_timedelta_supp...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/standings/plot_who_can_still_win_wdc.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.712060
# flake8: noqa """Who can still win the drivers WDC? ====================================== Calculates which drivers still has chance to win the WDC. Simplified since it doesn't compare positions if points are equal. This example implements 3 functions that it then uses to calculate its result. """ import fastf1 fro...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/telemetry/plot_gear_shifts_on_track.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.712939
"""Gear shifts on track ======================= Plot which gear is being used at which point of the track """ ############################################################################## # Import FastF1 and load the data import matplotlib.pyplot as plt import numpy as np from matplotlib import colormaps from matplo...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/telemetry/plot_annotate_speed_trace.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.727230
"""Plot speed traces with corner annotations ============================================ Plot the speed over the course of a lap and add annotations to mark corners. """ import matplotlib.pyplot as plt import fastf1.plotting # Enable Matplotlib patches for plotting timedelta values and load # FastF1's dark color...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/telemetry/plot_speed_trace_comparison.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.749866
""" Grid Average Speed Trace: 2025 vs 2026 ====================================== Compare the average speed trace of the Top 10 drivers on a long straight between two different regulation eras (2025 vs 2026). This visualization highlights the 'clipping' effect of the 2026 Power Units. """ import matplotlib.pyplot as ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/results_strategy/plot_strategy.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.789366
""" Tyre strategies during a race ============================= Plot all drivers' tyre strategies during a race. """ from matplotlib import pyplot as plt import fastf1 import fastf1.plotting ############################################################################### # Load the race session session = fastf1.ge...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/telemetry/plot_speed_traces.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.807851
"""Overlaying speed traces of two laps ====================================== Compare two fastest laps by overlaying their speed traces. """ import matplotlib.pyplot as plt import fastf1.plotting # Enable Matplotlib patches for plotting timedelta values and load # FastF1's dark color scheme fastf1.plotting.setup_...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
examples/telemetry/plot_speed_on_track.py
null
null
null
null
null
null
Python
2026-05-04T01:50:16.842181
"""Speed visualization on track map ====================================== (Example provided by @JSEHV on Github) """ import matplotlib as mpl import numpy as np from matplotlib import pyplot as plt from matplotlib.collections import LineCollection import fastf1 as ff1 ##############################################...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/__main__.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.277987
import argparse from fastf1.internals.f1auth import ( clear_auth_token, get_auth_token, print_auth_status ) def main(): parser = argparse.ArgumentParser( description='FastF1 Command Line Interface', prog='python -m fastf1' ) subparsers = parser.add_subparsers(dest='command') ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/_api.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.318870
import base64 import datetime import json import zlib import numpy as np import pandas as pd from fastf1.internals.pandas_extensions import create_df_fast from fastf1.logger import ( get_logger, soft_exceptions ) from fastf1.req import Cache from fastf1.utils import ( recursive_dict_get, to_datetime, ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.322434
try: from . import _version except ImportError: _version = None __version__ = getattr(_version, 'version', '0.0+UNKNOWN') __version_tuple__ = getattr(_version, 'version_tuple', (0, 0, '+UNKNOWN')) if __version_tuple__: # create a short version containing only the public version __version_short__ = "."....
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/ergast/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.323559
# imports for exposed names from fastf1.ergast.interface import Ergast # noqa: F401 from fastf1.ergast.legacy import fetch_results # noqa: F401 from fastf1.ergast.legacy import ( # noqa: F401 fetch_day, fetch_season )
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/api.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.338332
""" .. warning:: :mod:`fastf1.api` will be considered private in future releases and potentially be removed or changed. Please do not use functionality from :mod:`fastf1.api`. If you currently require functionality from there, please open an issue on Github with details about what you require and why. ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/ergast/interface.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.339762
import copy import json import warnings from typing import ( Literal, Union ) import fastf1.ergast.structure as API from fastf1 import ( __version_short__, exceptions ) from fastf1.internals.pandas_base import ( BaseDataFrame, BaseSeries ) from fastf1.req import Cache # TODO: remove in v3.10 ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/ergast/legacy.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.363962
import json import warnings from fastf1.ergast.interface import BASE_URL as base_url from fastf1.ergast.interface import HEADERS as _headers from fastf1.req import Cache def fetch_results(year, gp, session): """session can be 'Qualifying' or 'Race' mainly to port on upper level libraries """ if sessi...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/ergast/structure.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.409539
import datetime import re from typing import Any from fastf1.logger import get_logger logger = get_logger('ergast') # ############################################## # ### functions for date and time conversion ### _time_string_matcher = re.compile( r'(\d{1,2}:)?(\d{1,2}:)?(\d{1,2})(\.\d{1,6})?(Z|[+-]\d{2}:\d{...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/events.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.431074
import collections import datetime import json from typing import Literal import dateutil.parser import pandas as pd import fastf1._api import fastf1.ergast from fastf1 import __version_short__ from fastf1.core import Session from fastf1.internals.fuzzy import fuzzy_matcher from fastf1.internals.pandas_base import ( ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/ergast/sphinx.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.469207
import json from typing import get_type_hints import pandas as pd from docutils import nodes from docutils.parsers.rst import ( Directive, directives ) import fastf1.ergast.structure from fastf1 import __version__ from fastf1.ergast.interface import ErgastResultFrame class ApiMappingDirective(Directive): ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/internals/f1auth.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.914048
import contextlib import json import threading import urllib.parse from datetime import datetime from http.server import ( BaseHTTPRequestHandler, HTTPServer ) from pathlib import Path from typing import cast import jwt import platformdirs import requests from jwt.algorithms import RSAAlgorithm from jwt.except...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/internals/pandas_extensions.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.928575
import numpy as np from pandas import ( DataFrame, Index, RangeIndex ) from fastf1.internals import internals_logger as logger try: # import internal pandas functions and objects from pandas.core.internals.construction import ( BlockPlacement, _get_axes, create_block_manag...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.997340
import warnings # Exceptions Structure and Handling in FastF1 # # FastF1 code can be categorized into two parts with regard to exception # handling: # - Interface code that is tightly coupled with the user-facing API. These # parts of the code usually have a short runtime and perform actions that # are very limit...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/livetiming/__main__.py
null
null
null
null
null
null
Python
2026-05-04T01:50:17.999969
import argparse import sys from fastf1.livetiming.client import ( SignalRClient, messages_from_raw ) def save(args): mode = 'a' if args.append else 'w' client = SignalRClient(args.file, filemode=mode, debug=args.debug, timeout=args.timeout) client.start() def convert(...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/internals/pandas_base.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.008049
"""Base classes for objects that inherit from Pandas Series or DataFrame.""" import typing from collections.abc import Callable from typing import ( Any, final ) import pandas as pd # dangerous import of pandas internals # these imports are covered by # test_internals.py::test_pandas_base_internal_imports # ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/internals/fuzzy.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.060815
import warnings import numpy as np from fastf1.exceptions import FuzzyMatchError with warnings.catch_warnings(): warnings.filterwarnings( 'ignore', message="Using slow pure-python SequenceMatcher" ) # suppress that warning, it's confusing at best here, we don't need fast # sequence matching ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/legacy.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.110464
""" This module contains the legacy implementation for calculating distance to driver ahead. :func:`inject_driver_ahead` adds 'DriverAhead' and 'DistanceToDriverAhead' to the position data for all laps of all drivers. This functionality has been replaced with :func:`fastf1.core.Telemetry.add_driver_ahead`. The new imp...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/livetiming/client.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.223163
import json import logging import time from collections.abc import Iterable from typing import Optional import requests from signalrcore.hub_connection_builder import HubConnectionBuilder from signalrcore.messages.completion_message import CompletionMessage import fastf1 from fastf1.internals.f1auth import get_auth_t...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/logger.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.490897
import functools import logging import os import warnings from fastf1.exceptions import FastF1CriticalError class LoggingManager: """Interface for configuring logging in FastF1. All parts of FastF1 generally log at the log level 'INFO'. The reason for this is that many data loading processes take multip...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/livetiming/data.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.498987
""" Data object for livetiming data """ import json import warnings from datetime import timedelta from fastf1.logger import get_logger from fastf1.utils import ( recursive_dict_get, to_datetime ) _logger = get_logger(__name__) _track_status_mapping = { 'AllClear': '1', 'Yellow': '2', 'SCDeplo...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/mvapi/data.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.601278
from dataclasses import dataclass import numpy as np import pandas as pd import fastf1.core import fastf1.exceptions from fastf1.mvapi.api import get_circuit from fastf1.mvapi.internals import _logger @dataclass class CircuitInfo: """Holds information about the circuit that is useful for visualizing and ann...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/plotting/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.620458
from fastf1.plotting._interface import ( # noqa: F401 _get_driver_team_mapping, add_sorted_driver_legend, get_compound_color, get_compound_mapping, get_driver_abbreviation, get_driver_abbreviations_by_team, get_driver_color, get_driver_color_mapping, get_driver_name, get_driver_...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/plotting/_backend.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.664164
import json import warnings from importlib.resources import files import fastf1._api from fastf1.plotting._base import ( Driver, SeasonConstants, Team, TeamColorConstants, _logger, _normalize_string ) Constants: dict[str, SeasonConstants] = {} json_path = files("fastf1.plotting").joinpath("c...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/plotting/_base.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.688774
import re import unicodedata from enum import Enum from typing import Annotated from pydantic import ( AfterValidator, BaseModel, model_validator ) from fastf1.logger import get_logger _logger = get_logger(__package__) class CompoundTypes(Enum): HyperSoft = "HYPERSOFT" UltraSoft = "ULTRASOFT" ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/mvapi/api.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.697528
import requests.exceptions from fastf1 import __version_short__ from fastf1.mvapi.internals import _logger from fastf1.req import Cache PROTO = "https" HOST = "api.multiviewer.app" HEADERS = {'User-Agent': f'FastF1/{__version_short__}'} def _make_url(path: str): return f"{PROTO}://{HOST}{path}" def get_circ...
theOehrly/Fast-F1
https://github.com/theOehrly/Fast-F1
null
null
null
null
4,991
null
null
mit
null
null
null
null
null
null
null
fastf1/plotting/_interface.py
null
null
null
null
null
null
Python
2026-05-04T01:50:18.821795
import warnings from collections.abc import Sequence from typing import ( Any, Literal ) import matplotlib.axes import matplotlib.legend from fastf1.core import Session from fastf1.internals.fuzzy import fuzzy_matcher from fastf1.plotting._backend import ( Constants, _load_drivers_from_f1_livetiming )...
cjhutto/vaderSentiment
https://github.com/cjhutto/vaderSentiment
null
null
null
null
4,982
null
null
mit
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T01:50:20.980122
import codecs import os from setuptools import setup, find_packages HERE = os.path.abspath(os.path.dirname(__file__)) def read(*parts): """ Build an absolute path from *parts* and and return the contents of the resulting file. Assume UTF-8 encoding. """ with codecs.open(os.path.join(HERE, *parts),...
cjhutto/vaderSentiment
https://github.com/cjhutto/vaderSentiment
null
null
null
null
4,982
null
null
mit
null
null
null
null
null
null
null
vaderSentiment/vaderSentiment.py
null
null
null
null
null
null
Python
2026-05-04T01:50:20.980868
# coding: utf-8 # Author: C.J. Hutto # Thanks to George Berry for reducing the time complexity from something like O(N^4) to O(N). # Thanks to Ewan Klein and Pierpaolo Pantone for bringing VADER into NLTK. Those modifications were awesome. # For license information, see LICENSE.TXT """ If you use the VADER sentiment a...
cjhutto/vaderSentiment
https://github.com/cjhutto/vaderSentiment
null
null
null
null
4,982
null
null
mit
null
null
null
null
null
null
null
additional_resources/build_emoji_lexicon.py
null
null
null
null
null
null
Python
2026-05-04T01:50:20.988817
# coding: utf-8 # Author: C.J. Hutto import re def get_list_from_file(file_name): """read the lines from a file into a list""" with open(file_name, mode='r', encoding='utf-8') as f1: lst = f1.readlines() return lst def append_to_file(file_name, line_data): """append a line of text to a file...
therealXiaomanChu/ex-skill
https://github.com/therealXiaomanChu/ex-skill
null
null
null
null
4,978
null
null
mit
null
null
null
null
null
null
null
tools/wechat_parser.py
null
null
null
null
null
null
Python
2026-05-04T01:50:22.969305
#!/usr/bin/env python3 """微信聊天记录解析器 支持的输入格式: - txt / csv(带时间戳的聊天记录文本) - html / htm(带样式的聊天记录页面) - json(结构化聊天数据) - sqlite / db(数据库文件) - 纯文本(手动复制粘贴) Usage: python3 wechat_parser.py --file <path> --target <name> --output <output_path> [--format auto] """ import argparse import json import re import os import sys from...
therealXiaomanChu/ex-skill
https://github.com/therealXiaomanChu/ex-skill
null
null
null
null
4,978
null
null
mit
null
null
null
null
null
null
null
tools/social_parser.py
null
null
null
null
null
null
Python
2026-05-04T01:50:22.970108
#!/usr/bin/env python3 """社交媒体内容解析器 解析朋友圈、微博、小红书、Instagram 等社交媒体截图或导出文件。 截图通过 Claude 的 Read 工具直接读取(支持图片),本工具处理文本导出。 Usage: python3 social_parser.py --dir <screenshot_dir> --output <output_path> """ import argparse import os import sys from pathlib import Path def scan_directory(dir_path: str) -> dict: """扫...
therealXiaomanChu/ex-skill
https://github.com/therealXiaomanChu/ex-skill
null
null
null
null
4,978
null
null
mit
null
null
null
null
null
null
null
tools/qq_parser.py
null
null
null
null
null
null
Python
2026-05-04T01:50:22.973207
#!/usr/bin/env python3 """QQ 聊天记录解析器 支持格式: - QQ 消息管理器导出的 txt 格式 - QQ 消息管理器导出的 mht 格式 Usage: python3 qq_parser.py --file <path> --target <name> --output <output_path> """ import argparse import re import os import sys from pathlib import Path def parse_qq_txt(file_path: str, target_name: str) -> dict: """解析...
therealXiaomanChu/ex-skill
https://github.com/therealXiaomanChu/ex-skill
null
null
null
null
4,978
null
null
mit
null
null
null
null
null
null
null
tools/skill_writer.py
null
null
null
null
null
null
Python
2026-05-04T01:50:22.985474
#!/usr/bin/env python3 """Skill 文件管理器 管理前任 Skill 的文件操作:列出、创建目录、生成组合 SKILL.md。 Usage: python3 skill_writer.py --action <list|init|combine> --base-dir <path> [--slug <slug>] """ import argparse import os import sys import json from pathlib import Path from datetime import datetime def list_skills(base_dir: str):...
therealXiaomanChu/ex-skill
https://github.com/therealXiaomanChu/ex-skill
null
null
null
null
4,978
null
null
mit
null
null
null
null
null
null
null
tools/photo_analyzer.py
null
null
null
null
null
null
Python
2026-05-04T01:50:22.989556
#!/usr/bin/env python3 """照片元信息分析器 提取照片 EXIF 信息(拍摄时间、地点),构建关系时间线和常去地点。 Usage: python3 photo_analyzer.py --dir <photo_dir> --output <output_path> """ import argparse import os import sys import json from pathlib import Path from datetime import datetime try: from PIL import Image from PIL.ExifTags import...
therealXiaomanChu/ex-skill
https://github.com/therealXiaomanChu/ex-skill
null
null
null
null
4,978
null
null
mit
null
null
null
null
null
null
null
tools/version_manager.py
null
null
null
null
null
null
Python
2026-05-04T01:50:23.022038
#!/usr/bin/env python3 """版本存档与回滚管理器 Usage: python3 version_manager.py --action <backup|rollback|list> --slug <slug> --base-dir <path> [--version <v>] """ import argparse import os import sys import shutil import json from datetime import datetime def backup(base_dir: str, slug: str): """备份当前版本""" skill...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_arguments_doc.py
null
null
null
null
null
null
Python
2026-05-04T01:50:26.620433
#!/usr/bin/env python import sys from inspect import cleandoc from os import path from typing import get_type_hints from pyinfra.api import Config from pyinfra.api.arguments import AllArguments, __argument_docs__ from pyinfra.api.host import Host from pyinfra.api.operation import OperationMeta sys.path.append(".") f...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_api_docs.py
null
null
null
null
null
null
Python
2026-05-04T01:50:26.623333
#!/usr/bin/env python from os import path, remove from pyinfra import local def generate_api_docs(): this_dir = path.dirname(path.realpath(__file__)) docs_dir = path.abspath(path.join(this_dir, "..", "docs")) pyinfra_dir = path.abspath(path.join(this_dir, "..", "src", "pyinfra")) api_doc_command = ...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_changelog.py
null
null
null
null
null
null
Python
2026-05-04T01:50:26.624435
#!/usr/bin/env python """Generate a changelog from commits since the last git tag. Usage: python scripts/generate_changelog.py [FROM_REF] If FROM_REF is not provided, the most recent tag is used. Outputs changelog entries grouped by category, with GitHub usernames for external contributors. """ import subprocess...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/cleanup_words.py
null
null
null
null
null
null
Python
2026-05-04T01:50:26.626441
#!/usr/bin/env python from os import path def cleanup_words(): with open(path.join("tests", "words.txt"), "r", encoding="utf-8") as f: data = f.read() lines = data.splitlines() lines = [line for line in lines if not line.startswith("#")] lines = sorted(set(lines)) lines.insert(0, "# it...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T01:50:26.654773
from datetime import date from os import environ, mkdir, path from shutil import rmtree import guzzle_sphinx_theme from pyinfra import __version__, local from pyinfra.api import metadata copyright = "Nick Barrett {0} — pyinfra v{1}".format( date.today().year, __version__, ) extensions = [ "sphinx.ext.au...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
docs/utils.py
null
null
null
null
null
null
Python
2026-05-04T01:50:26.789593
import re from inspect import getmembers, ismodule from pathlib import Path from types import ModuleType from typing import Generator, Any def title_line(char, string): return "".join(char for _ in range(0, len(string))) def format_doc_line(line): # Bold the <arg>: part of each line, escaping * prefixes for...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/__init__.py
null
null
null
null
null
null
Python
2026-05-04T01:50:27.952592
""" Welcome to pyinfra. """ import logging # Global flag set True by `pyinfra_cli.__main__` is_cli = False # Global pyinfra logger logger = logging.getLogger("pyinfra") # Trigger context module creation from .context import config, host, init_base_classes, inventory, state # noqa # Setup package level version fro...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_redirect_pages.py
null
null
null
null
null
null
Python
2026-05-04T01:50:27.953270
#!/usr/bin/env python from glob import glob from os import environ, path DOCS_LANGUAGE = "en" DOCS_VERSION = environ["DOCS_VERSION"] TEMPLATE = """ <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="robots" content="noindex"> <title>Redirecting to: {0}</title> <link rel="canonical" hre...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/lint_arguments_sync.py
null
null
null
null
null
null
Python
2026-05-04T01:50:27.955361
#!/usr/bin/env python """ Lint script to verify that arguments in arguments.py and arguments_typed.py are in sync. Due to Python's typing limitations (ParamSpec args cannot be concatenated), we maintain two separate definitions of global arguments: - arguments.py: TypedDicts (ConnectorArguments, MetaArguments, Executi...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/make_github_release.py
null
null
null
null
null
null
Python
2026-05-04T01:50:27.956359
import os from pathlib import Path import requests from scripts.generate_next_version import get_version_from_changelog GITHUB_API_TOKEN = os.environ["GITHUB_API_TOKEN"] def make_github_release(): version = get_version_from_changelog() tag = f"v{version}" changelog_path = Path(__file__).parent.parent ...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_operations_docs.py
null
null
null
null
null
null
Python
2026-05-04T01:50:27.957593
#!/usr/bin/env python import sys from importlib import import_module from inspect import getmembers, isclass, signature from os import makedirs, path from pathlib import Path from types import FunctionType from pyinfra.api.facts import FactBase sys.path.append(".") from docs.utils import ( format_doc_line, g...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_next_version.py
null
null
null
null
null
null
Python
2026-05-04T01:50:27.958619
import re from pathlib import Path def get_version_from_changelog(): # Regex matching pattern followed by 3 numerical values separated by '.' pattern = re.compile(r"^# v(?P<version>[0-9]+\.[0-9]+(\.[0-9]+)?(\.?[a-z0-9]+)?)$") changelog_path = Path(__file__).parent.parent / "CHANGELOG.md" with open(c...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/arguments_typed.py
null
null
null
null
null
null
Python
2026-05-04T01:50:28.622416
from __future__ import annotations from typing import TYPE_CHECKING, Callable, Generator, Generic, Iterable, List, Mapping, Union from typing_extensions import ParamSpec, Protocol if TYPE_CHECKING: from pyinfra.api.operation import OperationMeta P = ParamSpec("P") # Unfortunately we have to re-type out all of...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/connect.py
null
null
null
null
null
null
Python
2026-05-04T01:50:28.634216
from typing import TYPE_CHECKING import gevent from pyinfra.progress import progress_spinner if TYPE_CHECKING: from pyinfra.api.state import State def connect_all(state: "State"): """ Connect to all the configured servers in parallel. Reads/writes state.inventory. Args: state (``pyinfra.ap...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/arguments.py
null
null
null
null
null
null
Python
2026-05-04T01:50:28.635488
from __future__ import annotations import os from typing import ( TYPE_CHECKING, Any, Callable, Generic, Iterable, List, Mapping, Optional, Type, TypeVar, Union, cast, get_type_hints, ) from typing_extensions import TypedDict from pyinfra.api.exceptions import Argu...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/connectors.py
null
null
null
null
null
null
Python
2026-05-04T01:50:28.655239
try: from importlib_metadata import entry_points except ImportError: from importlib.metadata import entry_points # type: ignore[assignment] def _load_connector(entrypoint): return entrypoint.load() def get_all_connectors(): return { entrypoint.name: _load_connector(entrypoint) for e...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/command.py
null
null
null
null
null
null
Python
2026-05-04T01:50:28.691175
from __future__ import annotations import shlex from inspect import getfullargspec from string import Formatter from typing import IO, TYPE_CHECKING, Callable, Union import gevent from typing_extensions import Unpack, override from pyinfra.context import LocalContextObject, ctx_config, ctx_host from .arguments impo...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/config.py
null
null
null
null
null
null
Python
2026-05-04T01:50:28.738281
try: import importlib_metadata except ImportError: import importlib.metadata as importlib_metadata # type: ignore[no-redef] from os import path from typing import Iterable, Optional, Sequence, Set from packaging.markers import Marker from packaging.requirements import Requirement from packaging.specifiers im...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/deploy.py
null
null
null
null
null
null
Python
2026-05-04T01:50:28.862333
""" Deploys come in two forms: on-disk, eg deploy.py, and @deploy wrapped functions. The latter enable re-usable (across CLI and API based execution) pyinfra extension creation (eg pyinfra-openstack). """ from functools import wraps from typing import TYPE_CHECKING, Any, Callable, Optional, cast from typing_extension...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/facts.py
null
null
null
null
null
null
Python
2026-05-04T01:50:29.242813
""" The pyinfra facts API. Facts enable pyinfra to collect remote server state which is used to "diff" with the desired state, producing the final commands required for a deploy. Note that the facts API does *not* use the global currently in context host so it's possible to call facts on hosts out of context (ie give ...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/host.py
null
null
null
null
null
null
Python
2026-05-04T01:50:29.281258
from __future__ import annotations from contextlib import contextmanager from copy import copy from typing import ( TYPE_CHECKING, Any, Callable, Generator, Optional, Type, TypeVar, Union, cast, overload, ) from uuid import uuid4 from typing_extensions import Unpack, override ...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T01:50:29.316593
class PyinfraError(Exception): """ Generic pyinfra exception. """ class ConnectError(PyinfraError): """ Exception raised when connecting fails. """ class FactError(PyinfraError): """ Exception raised during fact gathering staging if a fact is unable to generate output/change stat...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/inventory.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.220685
from __future__ import annotations from collections import defaultdict from typing import TYPE_CHECKING, Any, Iterator from .connectors import get_all_connectors, get_execution_connectors from .exceptions import NoConnectorError, NoGroupError, NoHostError from .host import Host if TYPE_CHECKING: from pyinfra.api...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/operations.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.222438
from __future__ import annotations import time import traceback from itertools import product from socket import error as socket_error, timeout as timeout_error from typing import TYPE_CHECKING, cast import gevent from paramiko import SSHException from pyinfra import logger from pyinfra.api.output import format_text...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/metadata.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.223509
""" Support parsing pyinfra-metadata.toml Currently just parses plugins and their metadata. """ import tomllib from typing import Literal, get_args from pydantic import BaseModel, TypeAdapter, field_validator AllowedTagType = Literal[ "boot", "containers", "database", "service-management", "pack...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/operation.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.338873
""" Operations are the core of pyinfra. The ``@operation`` wrapper intercepts calls to the function and instead diff against the remote server, outputting commands to the deploy state. This is then run later by pyinfra's ``__main__`` or the :doc:`./pyinfra.api.operations` module. """ from __future__ import annotations...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/api/util.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.599433
from __future__ import annotations import hashlib from functools import wraps from hashlib import md5, sha1, sha256 from inspect import getframeinfo, stack from io import BytesIO, StringIO from os import getcwd, path, stat from socket import error as socket_error, timeout as timeout_error from typing import IO, TYPE_C...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_facts_docs.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.696951
#!/usr/bin/env python import sys from importlib import import_module from inspect import getfullargspec, getmembers, isclass from os import makedirs, path from pathlib import Path from types import FunctionType, MethodType from pyinfra.api.facts import FactBase, ShortFactBase sys.path.append(".") from docs.utils imp...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
scripts/generate_connectors_docs.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.825235
#!/usr/bin/env python import sys from inspect import cleandoc, getdoc, getfullargspec from os import makedirs, path from typing import get_type_hints from pyinfra.api.connectors import get_all_connectors sys.path.append(".") from docs.utils import title_line # noqa: E402 def build_connectors_docs(): this_dir ...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/base.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.844025
from __future__ import annotations import abc from io import IOBase from typing import ( TYPE_CHECKING, Any, Iterable, Iterator, Optional, Type, TypeVar, Union, cast, get_type_hints, ) from typing_extensions import TypedDict, Unpack from pyinfra.api.exceptions import Connector...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/chroot.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.873637
import os import shlex from tempfile import mkstemp from typing import TYPE_CHECKING, Optional from typing_extensions import Unpack, override from pyinfra import local, logger from pyinfra.api.output import echo from pyinfra.api import QuoteString, StringCommand from pyinfra.api.exceptions import ConnectError, Invent...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/docker.py
null
null
null
null
null
null
Python
2026-05-04T01:50:30.937742
from __future__ import annotations import json import os import shlex from tempfile import mkstemp from typing import TYPE_CHECKING from typing_extensions import TypedDict, Unpack, override from pyinfra import local, logger from pyinfra.api.output import echo, format_text from pyinfra.api import QuoteString, StringC...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/dockerssh.py
null
null
null
null
null
null
Python
2026-05-04T01:50:31.213851
import os from tempfile import mkstemp from typing import TYPE_CHECKING from typing_extensions import Unpack, override from pyinfra import logger from pyinfra.api.output import echo, format_text from pyinfra.api import QuoteString, StringCommand from pyinfra.api.exceptions import ConnectError, InventoryError, Pyinfra...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/local.py
null
null
null
null
null
null
Python
2026-05-04T01:50:31.332522
import os from shutil import which from tempfile import mkstemp from typing import TYPE_CHECKING, Tuple from typing_extensions import Unpack, override from pyinfra import logger from pyinfra.api.output import echo from pyinfra.api.command import QuoteString, StringCommand from pyinfra.api.exceptions import InventoryE...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/ssh_util.py
null
null
null
null
null
null
Python
2026-05-04T01:50:31.496756
from getpass import getpass from os import path from typing import TYPE_CHECKING, Type, Union from paramiko import ( ECDSAKey, Ed25519Key, PasswordRequiredException, PKey, RSAKey, SSHException, ) import pyinfra from pyinfra.api.exceptions import ConnectError, PyinfraError if TYPE_CHECKING: ...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/ssh.py
null
null
null
null
null
null
Python
2026-05-04T01:50:31.498962
from __future__ import annotations import os from random import uniform from shutil import which from socket import error as socket_error, gaierror from time import sleep from typing import IO, TYPE_CHECKING, Any, Iterable, Optional, Protocol, Tuple from paramiko import AuthenticationException, BadHostKeyException, S...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/scp/client.py
null
null
null
null
null
null
Python
2026-05-04T01:50:31.594700
from __future__ import annotations import ntpath import os from pathlib import PurePath from shlex import quote from socket import timeout as SocketTimeoutError from typing import IO, AnyStr from paramiko import Channel from paramiko.transport import Transport SCP_COMMAND = b"scp" # Unicode conversion functions; a...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/sshuserclient/client.py
null
null
null
null
null
null
Python
2026-05-04T01:50:31.855916
""" This file as originally part of the "sshuserclient" pypi package. The GitHub source has now vanished (https://github.com/tobald/sshuserclient). """ import os from os import path from gevent.lock import BoundedSemaphore from paramiko import ( HostKeys, MissingHostKeyPolicy, ProxyCommand, SSHClient ...
pyinfra-dev/pyinfra
https://github.com/pyinfra-dev/pyinfra
null
null
null
null
4,972
null
null
mit
null
null
null
null
null
null
null
src/pyinfra/connectors/sshuserclient/config.py
null
null
null
null
null
null
Python
2026-05-04T01:50:31.990518
""" This file as originally part of the "sshuserclient" pypi package. The GitHub source has now vanished (https://github.com/tobald/sshuserclient). """ import glob import re from os import environ, path import paramiko.config from gevent.subprocess import CalledProcessError, check_call from paramiko import SSHConfig ...