Be sure to have installed the extension Commmand Variable
to have access to advanced variables (like command:extension.commandvariable.file.relativeFileDotsNoExtension
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compose-name | |
services: | |
# -------------------------------------------------------------------------- # | |
# PREFECT # | |
# -------------------------------------------------------------------------- # | |
postgres-prefect: | |
image: postgres:14 | |
environment: | |
POSTGRES_USER: prefect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""from . import FileUtils""" | |
from pathlib import Path | |
import os | |
import re | |
__all__ = ["FileUtils"] | |
class FileUtils: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
``` | |
from . import timefunc, timing_manager | |
``` | |
This module provides a comprehensive and thread-safe toolkit for performance monitoring | |
in Python applications. It is designed to be both easy to use for quick debugging | |
and powerful enough for detailed performance analysis. | |
The module is built around two core components: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""from . import ZipUtils""" | |
import zipfile | |
from pathlib import Path | |
from typing import Callable | |
import numpy as np | |
from PIL import Image | |
import shutil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import logging | |
from typing import Optional | |
import psycopg | |
from psycopg.sql import SQL, Identifier | |
from psycopg_pool import AsyncConnectionPool # pip install psycopg[binary] psycopg_pool | |
from tqdm.asyncio import tqdm | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For all files in project root folder with some filters | |
find . \ | |
-name '*' \ | |
-not -path "./.venv/*" \ | |
-not -path "./docker/DBvolumes/*" \ | |
-not -path "./logs/*" \ | |
-not -path "./.git/*" \ | |
-not -path "*__pycache__*" \ | |
-not -path "./uv.lock" \ | |
| xargs wc -l \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xarray as xr | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import cartopy.crs as ccrs | |
import cartopy.feature as cfeature | |
from pathlib import Path | |
import matplotlib.colors as mcolors | |
# --- Configuration --- | |
# Define file paths using pathlib |
NewerOlder