text
stringlengths
185
73.3k
repo
stringlengths
7
100
path
stringlengths
4
146
language
stringclasses
7 values
hash
stringlengths
16
16
score
float64
7
8.5
stars
int64
0
237k
#!/usr/bin/env python3 # Copyright (C) 2020 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
msft-mirror-aosp/git-repo
release/sign-tag.py
.py
117ecea43b541481
7
0
# Copyright (C) 2021 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
release/update_manpages.py
.py
80416d5adda5ddad
7
0
# Copyright (C) 2020 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
release/util.py
.py
03940418c28de5d5
7
0
# Copyright (C) 2023 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
repo_logging.py
.py
259e6fc4b7fd9b2a
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
repo_trace.py
.py
0d1a34a8170292fe
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
ssh.py
.py
3ec3efad7150d250
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/abandon.py
.py
8e8e347e5a7a74e3
7
0
# Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/branches.py
.py
7a8b253166b49991
7
0
# Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/checkout.py
.py
098f6b26b24f192a
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/diff.py
.py
f5b7eed8d7fd8387
7
0
# Copyright (C) 2014 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/diffmanifests.py
.py
6797ae1f16523bb6
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/forall.py
.py
ebde7e461d74ba5d
7
0
# Copyright (C) 2024 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/gc.py
.py
20f2ea97cb1cabef
7
0
# Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/grep.py
.py
a5a5f505635918a9
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/help.py
.py
af42ebf20c8a8a3d
7
0
# Copyright (C) 2012 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/info.py
.py
b7b653831b3d59c7
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/init.py
.py
7a333404d4bd2d9b
7
0
# Copyright (C) 2011 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/list.py
.py
4a5ce5b2acf0fc45
7
0
# Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/manifest.py
.py
aa93a467c47576e7
7
0
# Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/prune.py
.py
6f76054fcd0ab873
7
0
# Copyright (C) 2010 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/rebase.py
.py
3424db9594d68734
7
0
# Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
msft-mirror-aosp/git-repo
subcmds/selfupdate.py
.py
167a531e7ba7fc72
7
0
"""Position sizing, price targets, time windows, and option strikes. Pure post-classification math — no API calls, no new data sources. All functions operate on dicts produced by the main pipeline and the Claude classification step. """ from __future__ import annotations import datetime import logging logger = logg...
nafomatos/Assistente-virtual
analyzers/position_sizing.py
.py
6c52c697de679a13
7
0
"""Containment for suspected volume artifacts (yfinance contract rolls). yfinance front-month futures symbols silently stitch different contracts' histories at roll, injecting fake volume (diagnosed May 2026: GC=F hit 310x on May-18; see backtests/VOLUME_FIX*.md). The DATA QUALITY badge and the RED-tier suppression co...
nafomatos/Assistente-virtual
analyzers/volume_quality.py
.py
85bbf8b42a5d6251
7
0
"""Synthetic sentiment proxy for historical backtests. Real social data (Reddit, StockTwits, YouTube) is not available for historical periods. This module derives a proxy from VIX + price velocity + RSI so the Divergence Rules in the system prompt can still fire during backtests. """ from __future__ import annotation...
nafomatos/Assistente-virtual
backtesting/historical/sentiment_proxy.py
.py
6c07f5efeb786aac
7.5
0
"""Save Claude's recommendations to logs/recommendations.json for backtesting. Usage ----- After Claude returns a JSON recommendation, paste it here via the CLI or call this module directly: from backtesting.tracker import save_recommendation save_recommendation( ticker="NVDA", date="2026-04-...
nafomatos/Assistente-virtual
backtesting/tracker.py
.py
09922add4377da28
7.5
0
"""Automated Claude classification for the daily pipeline. Calls the primary Claude model with the daily .txt report, parses the JSON_OUTPUT section, and writes logs/signals_{date}.json so that _attach_sizing_blocks() can compute position sizes BEFORE the email is sent. The pipeline previously had no automated classi...
nafomatos/Assistente-virtual
claude_advisor/classifier.py
.py
fa4ca71dcccb10c1
7
0
"""Buffett Indicator: Wilshire 5000 total market cap vs US GDP. Wilshire 5000 (^W5000) approximates total US market cap in billions; the index level is treated as a direct proxy (1 index point ≈ $1 billion market cap, per the original Wilshire definition). GDP comes from the FRED API (series "GDP", billions of dollar...
nafomatos/Assistente-virtual
collectors/buffett_indicator.py
.py
78d173a6df2adc9d
7
0
"""CNN-style Fear & Greed Index via alternative.me. Fetched once per run (not per ticker) and passed as shared macro context. API: https://api.alternative.me/fng/?limit=2 { "data": [ {"value": "55", "value_classification": "Greed", "timestamp": "..."}, {"value": "48", "value_classifica...
nafomatos/Assistente-virtual
collectors/fear_greed.py
.py
ea337e642f795209
7
0
"""Discover trending US equity tickers from ApeWisdom and Yahoo Finance. Both sources are public and require no API key. ApeWisdom ranks tickers by social-media mention velocity across Reddit and StockTwits. Yahoo Finance returns its own trending list. """ from __future__ import annotations import logging import re...
nafomatos/Assistente-virtual
collectors/trending_tickers.py
.py
67eef3e785082045
7
0
"""VIX term structure: compare ^VIX (1-month) vs ^VIX3M (3-month). A ratio > 1.0 means short-term fear exceeds long-term expectations (backwardation), which signals elevated near-term stress. Fetched once per run. """ from __future__ import annotations import logging import yfinance as yf logger = logging.getLogg...
nafomatos/Assistente-virtual
collectors/vix_structure.py
.py
0def72e2d11459b2
7
0
"""YouTube Data API v3 sentiment collector. Searches for videos published in the last 48 hours that mention a ticker or company name in their title. Called only for RED/AMBER pre-filter tickers to conserve daily quota (YouTube Data API v3: 10,000 units/day free tier; each search.list costs 100 units). Degrades gracef...
nafomatos/Assistente-virtual
collectors/youtube_sentiment.py
.py
f17bed8634eb1a55
7
0
"""Build a single .txt report you can paste into Claude.ai. The file has three parts: 1. Header with today's date, shared macro context (Fear & Greed, VIX Structure, Buffett Indicator), and the cached system prompt. 2. One section per asset that passes the alert tier filter — Red alerts first, then Amber...
nafomatos/Assistente-virtual
output/document_builder.py
.py
42c41b19de0ffa20
7
0
"""Tests for tracker/recommendation_parser.py. Covers the code-enforced actionable-confidence floors (shorts ≥ 6, longs ≥ 7) and robust per-recommendation confidence parsing (a malformed value must not abort the whole batch). """ from __future__ import annotations import datetime as dt import tracker.recommendation...
nafomatos/Assistente-virtual
tests/test_recommendation_parser.py
.py
22c621098e2775a7
7.5
0
""" Standardized Cresco client examples (Python). Every example here has a byte-for-byte counterpart in the Java client (clientlib: example/standard/StandardExamples.java) with the same function name, the same step-by-step structure, and the same narrative comments. Only the language syntax differs. Edit HOST/PORT/SER...
CrescoEdge/pycrescolib
examples/standard_examples.py
.py
291dc53da5c24f37
7
0
"""Application recipe: deploy a stunnel tunnel via a CADL pipeline. This is an *application-specific* deployment workflow, kept out of the core `client.stunnel` submodule on purpose. The core submodule assumes the stunnel plugin is already loaded on both agents and just configures the tunnel. This recipe instead *depl...
CrescoEdge/pycrescolib
examples/stunnel_pipeline_deploy.py
.py
fb463875d2d7c63b
7
0
""" API module for Cresco API operations. """ import logging from typing import Dict, Any, Optional, Tuple from .base_classes import CrescoMessageBase # Setup logging logger = logging.getLogger(__name__) class api(CrescoMessageBase): """API class for Cresco API operations.""" def __init__(self, messaging): ...
CrescoEdge/pycrescolib
pycrescolib/api.py
.py
54999934309bdb53
7
0
""" Base classes for the Cresco library to reduce code duplication. """ import json import logging from typing import Dict, Any, Optional import backoff # Set up logging logger = logging.getLogger(__name__) class CrescoMessageBase: """Base class for all Cresco message interactions.""" def __init__(self,...
CrescoEdge/pycrescolib
pycrescolib/base_classes.py
.py
006f706ef1ad0e40
7
0
""" Client library for Cresco framework interaction with improved resource management. """ import ssl import logging import asyncio import time import threading import concurrent.futures from typing import Optional, Dict, Any, Callable from contextlib import contextmanager from .admin import admin from .agents import ...
CrescoEdge/pycrescolib
pycrescolib/clientlib.py
.py
cb581a9b34135966
7
0
""" Improved WebSocket interface for Cresco library. Uses direct WebSocket communication with proper thread and event loop handling. """ import ssl import warnings from cryptography import x509 from cryptography.x509.oid import NameOID import logging import json import asyncio import time import threading import conc...
CrescoEdge/pycrescolib
pycrescolib/wc_interface.py
.py
372c38f7437dfd3b
7
0
""" Shared conformance harness for the Python client. The clients are thin wrappers that build a JSON envelope ({message_info, message_payload}) and hand it to the transport. This harness injects a capturing fake transport, invokes a public method, and returns the *normalized* outgoing message so it can be compared --...
CrescoEdge/pycrescolib
tests/conformance_util.py
.py
b68f49fd8dc04a7d
7.5
0
""" Conformance / parity tests for the Python client. Each CASE is invoked against a capturing mock transport; the normalized outgoing message must equal the shared golden corpus. The Java suite asserts the *same* corpus, so a green run on both sides means the two clients emit identical wire messages for identical cal...
CrescoEdge/pycrescolib
tests/test_conformance.py
.py
a251ab874b896c0f
7.5
0
""" VORPY - Voronoi analysis of molecular structures Lightweight package init: importing `vorpy` should NOT import heavy, optional dependencies (GUI, plotting, etc.) or reach into internal modules with side effects. """ from __future__ import annotations from importlib import import_module # Version (prefer local ...
jackericson98/vorpy
vorpy/__init__.py
.py
5d8e650897ff88d0
7.24
2
"""Interface selection and network-resolution window for the VorPy GUI. This module intentionally keeps interface-specific GUI and network checks out of vorpy_gui.py, Group, and System. """ from itertools import combinations import tkinter as tk from tkinter import ttk, messagebox SPECIAL_FIRST = "(default)" SPECIA...
jackericson98/vorpy
vorpy/src/GUI/Interface/interface_window.py
.py
4d6b39d335362e2c
7.24
2
import sys from pathlib import Path # Add the project root directory to the Python path project_root = Path(__file__).resolve().parents[5] sys.path.append(str(project_root)) from vorpy.src.GUI.group.export.custom_export_window import CustomExportWindow import tkinter as tk from tkinter import ttk from tkinter import ...
jackericson98/vorpy
vorpy/src/GUI/group/export/export_frame.py
.py
7f400237a9953740
7.24
2
import tkinter as tk from tkinter import ttk class HelpWindow(tk.Toplevel): """ A window containing help information for the GUI. """ def __init__(self, parent): super().__init__(parent) # Configure window self.title("VorPy Help") self.geometry("800x600") # In...
jackericson98/vorpy
vorpy/src/GUI/help/help_window.py
.py
8544d4af863fb8a4
7.24
2
import tkinter as tk from tkinter import ttk import time class ProgressWindow(tk.Toplevel): def __init__(self, parent): super().__init__(parent) self.title("Building Network") # Make window float on top self.transient(parent) self.grab_set() # Cent...
jackericson98/vorpy
vorpy/src/GUI/progress_window.py
.py
c0c9cd989de17de8
7.24
2
#!/usr/bin/env python3 """ Deduplicate conservation area geographies. Processes duplicate geometry checks and generates old-entity redirects for conservation areas with: - Complete matches (100% geometry overlap) - Single matches with high name similarity (>85%) """ import csv import urllib.request from datetime impo...
digital-land/config
.github/scripts/deduplicate-ca-geogs.py
.py
c06bdedb349781b5
7.15
1
#!/usr/bin/env python3 """ Retire MHCLG conservation-area data. This script retires conservation-area and conservation-area-document datasets for Local Planning Authorities (LPAs) that are in the Open Digital Planning (ODP) programme by: - Marking endpoints as retired (adding end-dates) - Recording retired resources i...
digital-land/config
.github/scripts/retire-mhclg-ca-data.py
.py
9b28cc3d8177ff64
7.15
1
import os import csv import sys # Add parent directories to path to import from root sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..')) from create_collection import COLUMN_MAPPINGS SORT_MAPPINGS = { "collection": { "endpoint.csv": ["entry-date", "endpoint"], "source.csv": ...
digital-land/config
.github/scripts/standardise_csvs.py
.py
f050fed9cc51d1a7
7.15
1
"""Alias commands for Autumn CLI. Aliases allow short names for projects, contexts, tags, and subprojects. Subproject aliases are scoped to their parent project. Config structure in ~/.autumn/config.yaml: aliases: projects: cli: "Autumn CLI" contexts: home: Personal tags: ...
Fingolfin7/Autumn
cli/autumn_cli/commands/alias_cmd.py
.py
0a38cecde5c90a14
7.3
3
"""Config commands for Autumn CLI. These commands edit ~/.autumn/config.yaml. We keep them simple and safe: - show: print current config (minus secrets by default) - get/set: access values by dotted path - greeting: tune greeting-specific knobs """ from __future__ import annotations import json import click import s...
Fingolfin7/Autumn
cli/autumn_cli/commands/config_cmd.py
.py
8dcd84165ba6f18a
7.3
3
"""Timed reminders via desktop notifications. This command is intentionally straightforward: - `autumn remind in 25m --message "..."` It runs in-process (sleep) so it's cross-platform. """ from __future__ import annotations import click from typing import Optional from ..utils.console import console from ..utils.d...
Fingolfin7/Autumn
cli/autumn_cli/commands/remind_cmd.py
.py
44690b0033a530a6
7.3
3
"""Background reminder/auto-stop worker. This is run as a separate process so reminder scheduling can be non-blocking. We keep it dependency-free and portable: - Spawned via the current Python interpreter - Communicates only via stdout/stderr (optional) It polls timer status and sends reminders, including an auto-st...
Fingolfin7/Autumn
cli/autumn_cli/commands/reminder_daemon.py
.py
c2070f652f0b3d8b
7.3
3
"""Manage background reminder workers started by `autumn start`. Commands: - `autumn reminders list` - `autumn reminders stop [--pid PID] [--session-id ID] [--all]` This is best-effort: processes may have already exited. """ from __future__ import annotations import click from ..utils.console import console from ....
Fingolfin7/Autumn
cli/autumn_cli/commands/reminders_cmd.py
.py
e481dd736d2728bd
7.3
3
"""Helpers for confirming server-managed timer auto-stops.""" from __future__ import annotations from typing import Any, Callable, Optional def _session_is_active(status: Any, session_id: Optional[int]) -> Optional[bool]: """Read an active flag from either supported timer-status response shape. ``None`` me...
Fingolfin7/Autumn
cli/autumn_cli/utils/auto_stop.py
.py
89b4e218ef3cf52b
7.3
3
"""Utilities for rendering the Autumn CLI banner. We need to measure *display width* in terminal cells, not Python's `len()`, since: - emoji can be double-width - Rich markup like `[bold]` has zero display width This module intentionally stays tiny: only the helpers the CLI uses. """ from __future__ import annotatio...
Fingolfin7/Autumn
cli/autumn_cli/utils/banner.py
.py
5eb5dc005a3ddccd
7.3
3
"""Comparison chart types: radar, histogram, bubble.""" from typing import List, Dict, Optional import matplotlib.pyplot as plt import numpy as np from .core import generate_color def render_histogram_chart( sessions: List[Dict], title: Optional[str] = None, save_path: Optional[str] = None ): """Render a hi...
Fingolfin7/Autumn
cli/autumn_cli/utils/charts/comparison.py
.py
91a09debdd65402e
7.3
3
"""Hierarchy chart types: treemap, sunburst.""" from typing import Dict, Optional import matplotlib.pyplot as plt from .core import generate_color def render_treemap_chart( hierarchy_data: Dict, title: Optional[str] = None, save_path: Optional[str] = None ): """Render a treemap showing Context -> Project ->...
Fingolfin7/Autumn
cli/autumn_cli/utils/charts/hierarchy.py
.py
7c9534d0a4b27294
7.3
3
"""Datetime parsing helpers for commands. We normalize user-friendly inputs (ISO-8601, relative times, keywords) into the server-accepted format: `%Y-%m-%d %H:%M:%S`. This is shared by commands like `track` and any future backfill/edit actions. """ from __future__ import annotations import re from dataclasses impor...
Fingolfin7/Autumn
cli/autumn_cli/utils/datetime_parse.py
.py
6eb252bf91bff6b7
7.3
3
"""Text formatting utilities for CLI output.""" from datetime import datetime, timedelta from typing import List, Dict, Any, Optional from rich.console import Group from rich.markdown import Markdown from rich.table import Table from rich.text import Text from .console import console def parse_utc_to_local(iso_str...
Fingolfin7/Autumn
cli/autumn_cli/utils/formatters.py
.py
c691f73dacddd273
7.3
3
"""Greeting helpers for the CLI root command. Keep this dependency-free. We vary greeting by: - time of day (morning/afternoon/evening/night) - month/season-ish + a couple light holiday callouts - moon phase - recent activity (contextual) This is intentionally small and safe: no web calls, no heavy libraries. """ fr...
Fingolfin7/Autumn
cli/autumn_cli/utils/greetings.py
.py
99dca0777ff2d814
7.3
3
"""Old-CLI-inspired rendering for sessions / logs. We deliberately avoid big ASCII tables here and instead render each session as a compact colored block. This tends to read better in terminals and matches the "vibes" of the older implementation. Two main render modes: - Logs: grouped by date (date header + sessions ...
Fingolfin7/Autumn
cli/autumn_cli/utils/log_render.py
.py
7b049d422e2f05aa
7.3
3
"""Simple cache for contexts/tags discovery. This avoids calling the v2 contexts and tags endpoints on every command invocation. Cache strategy: - In-memory cache for the current process - Optional persisted cache in the CLI config file (YAML) to speed up repeated calls - TTL-based invalidation If anything goes wron...
Fingolfin7/Autumn
cli/autumn_cli/utils/meta_cache.py
.py
855db8b9a48789d8
7.3
3
"""Cross-platform desktop notifications. Goal: best-effort notifications without adding heavy dependencies. Strategy: - Preferred (all OSes): `plyer` (single Python API) - Fallbacks: - macOS: `terminal-notifier`; if missing, we explicitly try `brew install terminal-notifier` - Linux: `notify-send` if available ...
Fingolfin7/Autumn
cli/autumn_cli/utils/notify.py
.py
c214d9aad743931a
7.3
3
"""Debug helpers for desktop notifications. The CLI often spawns detached background workers with stdout/stderr redirected to /dev/null. If notifications fail, it's otherwise hard to diagnose. This module provides a tiny, dependency-free logger: - enabled when config key `notify.log_file` is set - appends one line pe...
Fingolfin7/Autumn
cli/autumn_cli/utils/notify_debug.py
.py
8812d8cc12dc4f02
7.3
3
"""Interactive pickers for optional CLI prompting. These are *opt-in* (used only when commands pass pick=True). Supports fuzzy search and recency-based ordering. """ from __future__ import annotations from typing import Iterable, List, Optional, Sequence, Tuple import click from .console import console def _fuzz...
Fingolfin7/Autumn
cli/autumn_cli/utils/pickers.py
.py
0593d20ec878a09d
7.3
3
"""Simple cache for projects discovery. This avoids calling the v2 projects collection on every command invocation. Cache strategy: - In-memory cache for the current process - Optional persisted cache in the CLI config file (YAML) to speed up repeated calls - TTL-based invalidation If anything goes wrong (no config,...
Fingolfin7/Autumn
cli/autumn_cli/utils/projects_cache.py
.py
f91b914938712d24
7.3
3
"""Asynchronous Python client providing Open Data information of Dusseldorf.""" # pylint: disable=too-many-arguments from __future__ import annotations import asyncio import socket from dataclasses import dataclass from importlib import metadata from typing import Any, Self from aiohttp import ClientError, ClientSes...
klaasnicolaas/python-dusseldorf
src/dusseldorf/dusseldorf.py
.py
c6331e17a4bbef7d
7.35
4
""" core/registry.py Define, por modulo: - "import": la EXTRACCION del modulo (query + params que vienen del config). Corre siempre que el modulo este en EXECUTE=T en la hoja config. - "imports_extra": import(es) ADICIONAL(es) del modulo (opcional). Mismo formato que "import". Sirve para...
leosoria/vstudio
reference/LHA GL/lha gl registry.py
.py
c9c583cb17ff36e6
7
0
""" AR_002 - Credit limit vs outstanding balance analysis. This module replicates the VBA AR2 logic in Python. VBA equivalent: - Create_AR2_Output - Populate_AR02_From_ZTFI098 - Enrich_AR02_With_Credit_Limits Output: - Adds/replaces sheet AR02 in: output/LBR_Results_AR_YYYYMMDD.xlsx AR_002 is inde...
leosoria/vstudio
reference/ar_002.py
.py
8efcd958e573c723
7
0
""" AR_004 - Customers over 120 days past due with Salesforce credit limits. This control creates/replaces only the AR04 sheet in the shared AR output file. Logic replicated from VBA AR4: - Load ZTFI098, Customer, and Salesforce current input data. - Exclude intercompany customers. - Build the SAP customer ->...
leosoria/vstudio
reference/ar_004.py
.py
8dd52960947824f7
7
0
""" AR_005 - Customers without active Salesforce credit limit. This control creates/replaces only the AR05 sheet in the shared AR output file. Logic replicated from VBA AR5: - Load ZTFI098, Customer, and Salesforce current input data. - Exclude intercompany customers. - Build the SAP customer -> ERP customer ...
leosoria/vstudio
reference/ar_005.py
.py
ef24fdd307acd878
7
0
""" FAM_002 - Fixed Assets With Zero Book Value. Analysis: - Module: Fixed Asset Management - Analysis Code: FAM_02 - Analysis Title: Fixed Assets With Zero Book Value Description: Identifies assets with zero book value. Procedure: List assets where cost including revaluation equals accumulated depreciat...
leosoria/vstudio
reference/fam_002.py
.py
5f25a4ebded42842
7
0
""" GL_003 - General Journal Narrations With Suspicious Words. Optimized version: - Filters suspicious narration lines before building the full LHA-like output. - Searches line and header narrations using normalized text. - Applies FX only to GL03 result rows, not to all BSIS/BSAS rows. """ import re import...
leosoria/vstudio
reference/gl_003.py
.py
b1803e5987fa3a76
7
0
#!/usr/bin/env python3 """Validate Ansible role dependency graph. Walks all roles/*/meta/main.yml files, builds the dependency graph, and fails with a clear message if: - A dependency references a role that does not exist (MISSING) - The dependency graph contains a cycle (CYCLE) """ import sys from pathlib import...
floatingman/my-configuration
scripts/validate_deps.py
.py
341edd52226ef350
7.15
1
#!/usr/bin/env python3 """Tests for CLI subcommand integration.""" import json import os import tempfile from pathlib import Path import pytest import yaml from conftest import _PROFILES_DIR # noqa: E402 from profile_dispatcher import main # noqa: E402 class TestCLIResolve: """Tests for the 'resolve' CLI sub...
floatingman/my-configuration
tests/test_cli.py
.py
d60d79ce0c78c13d
7.65
1
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a cloud host # """host hetz2""" import os import sys # Put the "project path first to support relative imports" ro...
jaclu/my_tmux_conf
sample_hosts/hetz2.py
.py
501dd8ee1e3c883c
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # kajsa - devel server # """host kajsa""" import os import sys # Put the "project path first to support relative imports" root_dir = os.path.abspath(os.path.join(os.pat...
jaclu/my_tmux_conf
sample_hosts/kajsa.py
.py
c09050a6739b27b5
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for an acceptance system # """Style acceptance node""" import os import sys # Put the "project path first to support r...
jaclu/my_tmux_conf
sb/sb_acceptance.py
.py
44dbbd22421e3ab0
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a cloud host # """Style cloud node""" import os import sys # Put the "project path first to support relative impor...
jaclu/my_tmux_conf
sb/sb_cloud.py
.py
a9a82fed1f8c0534
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a system running iSH # """Style ish""" import os import sys # Put the "project path first to support relative impo...
jaclu/my_tmux_conf
sb/sb_ish.py
.py
16475bfa27ba882b
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a local system # """Style local""" import os import sys # Put the "project path first to support relative imports"...
jaclu/my_tmux_conf
sb/sb_local.py
.py
4e0ec7686679d8af
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar a somewhat muted look, this template # follow the style used in https://waylonwalker.com/tmux-status-bar/ # """Style muted""" import o...
jaclu/my_tmux_conf
sb/sb_muted.py
.py
69d9826d66c1c194
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar a somewhat muted look, this template # follow the style used in https://waylonwalker.com/tmux-status-bar/ # """Style muted""" import o...
jaclu/my_tmux_conf
sb/sb_muted_ish.py
.py
fef95369e71c1317
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a production system # """Style production node""" import os import sys # Put the "project path first to support re...
jaclu/my_tmux_conf
sb/sb_production.py
.py
1b495572979f1f49
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a test system # """Style t2 env""" import os import sys # Put the "project path first to support relative imports"...
jaclu/my_tmux_conf
sb/sb_t2.py
.py
b9ca4ee583e2fd54
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a test system # """Style test node""" import os import sys # Put the "project path first to support relative impor...
jaclu/my_tmux_conf
sb/sb_test.py
.py
3788da9404c96071
7.74
2
#!/usr/bin/env python3 # # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # # Template giving the status bar the colors I use for a (local) virtual box # """Style virtualbox node""" import os import sys # Put the "project path first to support ...
jaclu/my_tmux_conf
sb/sb_virtualbox.py
.py
4856fb10ab1e7bc1
7.24
2
#!/usr/bin/env python3 # # Copyright (c) 2022: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # """Setup a tmate env""" from sb.sb_test import SB class Tmate(SB): """plugins to investigate for tmate: jaclu/tmux-packet-loss - almost works? jaclu/tmux...
jaclu/my_tmux_conf
tmate.py
.py
0cc7e8b16f2e29fa
7.24
2
# # Copyright (c) 2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # """ Defines a run-shell to call a specific script """ import os import sys from typing import Any from ..utils import run_shell from .config import RunCmdConfig from .spec import ScriptSpec clas...
jaclu/my_tmux_conf
tmux_conf/embeded_scripts/builder.py
.py
07e1f1671fa3e4ab
7.24
2
# # Copyright (c) 2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # """ registry """ from typing import Any from .spec import ScriptSpec class ScriptRegistry: # pylint: disable=too-few-public-methods """ Docstring for ScriptRegistry """ def __in...
jaclu/my_tmux_conf
tmux_conf/embeded_scripts/registry.py
.py
480aee65588690fa
7.24
2
# # Copyright (c) 2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/my_tmux_conf # """ Handles Embedded scripts """ import os from typing import Any from ..utils import tilde_home_dir from ..vers_check import VersionCheck from .config import RunCmdConfig from .emitter import Scri...
jaclu/my_tmux_conf
tmux_conf/embeded_scripts/scripts.py
.py
77e275a3e40b0229
7.24
2
# # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/tmux-conf # # See constants.py for version info # # See the README.md in the repository for more info # """Plugin display and reporting functionality""" import os import sys from collections.abc import Call...
jaclu/my_tmux_conf
tmux_conf/plugins/display.py
.py
cbc6f68744829249
7.24
2
# # Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/tmux-conf # # See constants.py for version info # # See the README.md in the repository for more info # """Plugin registry for managing tmux plugin collection""" import os import sys from collections.abc im...
jaclu/my_tmux_conf
tmux_conf/plugins/registry.py
.py
4f984b263f6c8bd9
7.24
2
# -*- mode: python; mode: fold -*- # # Copyright (c) 2022-2024: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/tmux-conf # # See constants.py for version info # # See the README.md in the repository for more info # # All paths stored internally are done so with ~ expanded # """Com...
jaclu/my_tmux_conf
tmux_conf/utils.py
.py
85fb8baa4f4e8a52
7.24
2
# -*- mode: python; mode: fold -*- # # Copyright (c) 2022-2024: Jacob.Lundqvist@gmail.com # License: MIT # # Part of https://github.com/jaclu/tmux-conf # # See constants.py for version info # # Class that handles version checking # # See the README.md in the repository for more info # """compares tmux versions""...
jaclu/my_tmux_conf
tmux_conf/vers_check.py
.py
036991a5052aad4c
7.24
2
#!/usr/bin/env python3 """ Perform all the preprocessing for a run_id before submitting sbatch for each job """ import argparse import typing from typing import List from pathlib import Path import sys import json import pandas as pd from pandas.core.groupby.generic import DataFrameGroupBy # type hint ANALYSIS_HOME =...
Helium6CRES/rocks_analysis_pipeline
run_katydid_preprocessing.py
.py
2d72766714ca0536
7.15
1
#!/usr/bin/env python3 """ Manages looping over file_ids in a run_id from within apptainer to submit an sbatch for each file """ import argparse import sys from pathlib import Path # import glob from rocks_utility import sbatch_job, get_pst_time from run_katydid_preprocessing import KatydidPreprocessing def main() ...
Helium6CRES/rocks_analysis_pipeline
run_katydid_rid.py
.py
bfbd543b70423c3e
7.15
1
#!/usr/bin/env python3 import os import sys import time import argparse import pandas as pd import pandas.io.sql as psql import pytz import numpy as np import datetime from glob import glob import subprocess as sp import shutil from shutil import copyfile import psycopg2 from psycopg2 import Error import typing from ...
Helium6CRES/rocks_analysis_pipeline
run_ssa_post_processing.py
.py
e5e516ac6614115c
7.15
1