id
int64
0
190k
prompt
stringlengths
21
13.4M
docstring
stringlengths
1
12k
142,482
import re from functools import partial from rocketry.conditions.task import TaskFailed, TaskSucceeded, TaskFinished, TaskTerminated, TaskInacted, TaskStarted, TaskRunning, DependSuccess, DependFailure, DependFinish, get_on from rocketry.conditions.scheduler import SchedulerStarted, SchedulerCycles from rocketry.condit...
null
142,483
import re from functools import partial from rocketry.conditions.task import TaskFailed, TaskSucceeded, TaskFinished, TaskTerminated, TaskInacted, TaskStarted, TaskRunning, DependSuccess, DependFailure, DependFinish, get_on from rocketry.conditions.scheduler import SchedulerStarted, SchedulerCycles from rocketry.condit...
null
142,484
import re from functools import partial from rocketry.conditions.task import TaskFailed, TaskSucceeded, TaskFinished, TaskTerminated, TaskInacted, TaskStarted, TaskRunning, DependSuccess, DependFailure, DependFinish, get_on from rocketry.conditions.scheduler import SchedulerStarted, SchedulerCycles from rocketry.condit...
null
142,485
import re from functools import partial from rocketry.conditions.task import TaskFailed, TaskSucceeded, TaskFinished, TaskTerminated, TaskInacted, TaskStarted, TaskRunning, DependSuccess, DependFailure, DependFinish, get_on from rocketry.conditions.scheduler import SchedulerStarted, SchedulerCycles from rocketry.condit...
null
142,486
import re from functools import partial from rocketry.conditions.task import TaskFailed, TaskSucceeded, TaskFinished, TaskTerminated, TaskInacted, TaskStarted, TaskRunning, DependSuccess, DependFailure, DependFinish, get_on from rocketry.conditions.scheduler import SchedulerStarted, SchedulerCycles from rocketry.condit...
null
142,487
import re from functools import partial from rocketry.conditions.task import TaskFailed, TaskSucceeded, TaskFinished, TaskTerminated, TaskInacted, TaskStarted, TaskRunning, DependSuccess, DependFailure, DependFinish, get_on from rocketry.conditions.scheduler import SchedulerStarted, SchedulerCycles from rocketry.condit...
null
142,488
import re from functools import partial from rocketry.conditions.task import TaskFailed, TaskSucceeded, TaskFinished, TaskTerminated, TaskInacted, TaskStarted, TaskRunning, DependSuccess, DependFailure, DependFinish, get_on from rocketry.conditions.scheduler import SchedulerStarted, SchedulerCycles from rocketry.condit...
null
142,489
from typing import Pattern from rocketry.core.time.base import TimePeriod from rocketry.session import Session from ..utils import ParserError class TimePeriod(RedBase): """Base for all classes that represent a time period. Time period is a period in time with a start and an end. These are useful to deter...
Parse one condition
142,490
from rocketry.core.time import Any, All from ..utils.string_parser import InstructionParser from .time_item import parse_time_item def _flatten(*args, types, with_attr): comps = [] for arg in args: if isinstance(arg, types): comps += getattr(arg, with_attr) else: comps.ap...
null
142,491
from rocketry.core.time import Any, All from ..utils.string_parser import InstructionParser from .time_item import parse_time_item def _flatten(*args, types, with_attr): comps = [] for arg in args: if isinstance(arg, types): comps += getattr(arg, with_attr) else: comps.ap...
null
142,492
from rocketry.core.condition.base import BaseCondition from rocketry.conds import true, false from ._condition import parse_condition_string from .utils import ParserPicker class BaseCondition(RedBase): """A condition is a thing/occurence that should happen in order to something happen. Conditions are use...
null
142,493
from rocketry.core.condition.base import BaseCondition from rocketry.conds import true, false from ._condition import parse_condition_string from .utils import ParserPicker class BaseCondition(RedBase): """A condition is a thing/occurence that should happen in order to something happen. Conditions are use...
null
142,494
from rocketry.core.condition.base import BaseCondition from rocketry.conds import true, false from ._condition import parse_condition_string from .utils import ParserPicker PARSER = ParserPicker( { str: _parse_condition_string, bool: _parse_bool } ) class BaseCondition(RedBase): """A condit...
null
142,495
from functools import partial import re from typing import Callable, Dict, List from rocketry.pybox.string.parse import ClosureParser from rocketry.pybox.container.visitor import Visitor def _flatten_tuples(cont): for i, item in enumerate(cont): if isinstance(item, tuple): cont.pop(i) ...
null
142,496
The provided code snippet includes necessary dependencies for implementing the `_get_session` function. Write a Python function `def _get_session()` to solve the following problem: Get session in a way to prevent circular imports Here is the function: def _get_session(): "Get session in a way to prevent circula...
Get session in a way to prevent circular imports
142,497
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,498
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,499
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,500
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,501
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,502
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,503
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,504
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,505
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,506
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,507
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,508
import warnings from rocketry.conditions import ( DependFailure, DependFinish, DependSuccess, TaskFailed, TaskFinished, TaskRunnable, TaskStarted, TaskSucceeded, Retry, SchedulerStarted, SchedulerCycles, ) from rocketry.conditions.func import FuncCond from rocketry.core import ( BaseCondition ) ...
null
142,509
from collections.abc import Mapping from typing import Callable, Type, Union, TYPE_CHECKING from functools import partial import inspect from rocketry._base import RedBase from rocketry.core.utils import is_pickleable from rocketry.core.utils import filter_keyword_args from .arguments import BaseArgument class Paramete...
Get function arguments
142,510
import asyncio from dataclasses import dataclass import inspect from pickle import PicklingError import sys import time import datetime import logging import platform from types import FunctionType, TracebackType import warnings from copy import copy from abc import abstractmethod import multiprocessing import threadin...
null
142,511
from typing import Dict, List, Callable, Tuple import inspect The provided code snippet includes necessary dependencies for implementing the `clear_hooks` function. Write a Python function `def clear_hooks()` to solve the following problem: Remove all hooks. Here is the function: def clear_hooks(): "Remove all h...
Remove all hooks.
142,512
import time import datetime from typing import Tuple from .base import TimePeriod class TimePeriod(RedBase): """Base for all classes that represent a time period. Time period is a period in time with a start and an end. These are useful to determine whether an event took place in a specific time span ...
null
142,513
import datetime from functools import reduce import time from abc import abstractmethod from typing import Callable, ClassVar, Dict, FrozenSet, List, Optional, Pattern, Union import itertools from dataclasses import dataclass, field from rocketry._base import RedBase from rocketry.pybox.time import to_datetime, to_time...
null
142,514
import datetime from functools import reduce import time from abc import abstractmethod from typing import Callable, ClassVar, Dict, FrozenSet, List, Optional, Pattern, Union import itertools from dataclasses import dataclass, field from rocketry._base import RedBase from rocketry.pybox.time import to_datetime, to_time...
null
142,515
import pickle import pickle def is_pickleable(obj): try: pickle.dumps(obj) except Exception: return False else: return True
null
142,516
from multiprocessing import current_process def is_main_subprocess(): return current_process().name == 'MainProcess'
null
142,517
import inspect The provided code snippet includes necessary dependencies for implementing the `filter_keyword_args` function. Write a Python function `def filter_keyword_args(_func, _params:dict=None, **kwargs)` to solve the following problem: Filter only keyword arguments that the function requires. Here is the func...
Filter only keyword arguments that the function requires.
142,518
import sys import inspect import importlib from pathlib import Path from typing import Callable, List, Optional import warnings from pydantic import Field, PrivateAttr, validator from rocketry.core.task import Task from rocketry.core.parameters import Parameters from rocketry.pybox.pkg import find_package_root def get...
null
142,519
import itertools import uuid as _uuid The provided code snippet includes necessary dependencies for implementing the `increment` function. Write a Python function `def increment(task, params=None) -> str` to solve the following problem: Generate Run IDs that are increment numbers Here is the function: def increment(...
Generate Run IDs that are increment numbers
142,520
import itertools import uuid as _uuid def uuid(task, params=None) -> str: return _uuid.uuid4().hex
null
142,521
from rocketry.core import BaseCondition, Task from rocketry.session import Session, Config from rocketry.parse import add_condition_parser from rocketry.conds import true, false from rocketry.tasks import CommandTask, FuncTask, CodeTask from rocketry.tasks.maintain import ShutDown, Restart from rocketry.conditions.meta...
Set up the task classes and conditions Rocketry provides out-of-the-box
142,522
def get_field_value(record, field:str): if isinstance(record, dict): return record[field] return getattr(record, field)
null
142,523
from redbird.logging import RepoHandler from redbird.repos import MemoryRepo from .log_record import MinimalRecord class MinimalRecord(BaseModel): """A log record with minimal number of fields for Rocketry to work""" task_name: str action: str = Field(description="Scheduler action: 'run', 'success', 'fail'...
Create default handler that can be read
142,524
from typing import List, Optional, Union from pydantic import BaseModel from rocketry.conditions import Any, All, DependFinish, DependSuccess from rocketry.conditions.task import DependFailure from rocketry.core import Task from rocketry import Session class Link: def __init__(self, parent: Task, ...
Get list of dependency links
142,525
import warnings from flask import Flask warnings.simplefilter('always', DeprecationWarning) def process_deprecations(app: Flask) -> None: if app.config.get("POPULAR_TABLE_MINIMUM_READER_COUNT", None) is not None: app.config["POPULAR_RESOURCES_MINIMUM_READER_COUNT"] = app.config["POPULAR_TABLE_MINIMUM_READE...
null
142,526
import warnings from flask import Flask warnings.simplefilter('always', DeprecationWarning) def print_deprecation_warning(message: str) -> None: warnings.warn(message, DeprecationWarning)
null
142,527
import json import logging from typing import Any, Dict, Mapping, Optional, Type, Union from urllib.parse import urlsplit, urlunsplit import boto3 import gremlin_python.driver.protocol import requests from amundsen_gremlin.gremlin_model import WellKnownProperties from amundsen_gremlin.neptune_bulk_loader.api import ( ...
null
142,528
import logging from threading import Lock from typing import Any, Callable, Dict from flask import current_app, has_app_context from statsd import StatsClient from metadata_service import config LOGGER = logging.getLogger(__name__) def _get_statsd_client(*, prefix: str) -> StatsClient: """ Object pool method ...
A function decorator that adds statsd timer and statsd counter on success or fail statsd prefix will is from the fuction's module and metric name is from function name itself. Note that config.IS_STATSD_ON needs to be True to emit metrics e.g: decorating function neo4j_proxy,get_table will emit: - metadata_service.prox...
142,529
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
null
142,530
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
Like _safe_get_any, but for gremlin where we get a list for a single property
142,531
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
null
142,532
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
null
142,533
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
null
142,534
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
null
142,535
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
null
142,536
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
null
142,537
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
Creates an edge from vertex 1 to vertex 2 with a given label, if such an edge does not exist. It does not create vertex1 or vertex 2, so if they don't exist, you will get some kind of error (usually an interation error). :param edge_properties: A map of edge properties and values to be used for edge idempotence. If an ...
142,538
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
Expires edges of a given label other than the ones connecting vertex 1 and 2. If keys are not specified, will expire all edges between the two vertex types
142,539
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
Expires link between two vertices. Refer to vertices either by supplying label + key, or by providing the gremlin vertex ids directly
142,540
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
get the edges from vertex1
142,541
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
get the edges from vertex1
142,542
import collections import json import logging from abc import abstractmethod from datetime import date, datetime, timedelta from operator import attrgetter from typing import (Any, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, no_type_check, ...
get the edges to vertex1
142,543
import logging import re import textwrap import time from random import randint from typing import (Any, Dict, Iterable, List, Optional, Tuple, # noqa: F401 Union, no_type_check) import neo4j from amundsen_common.entity.resource_type import ResourceType, to_resource_type from amundsen_common.models...
Executes statement against Neo4j. If execution fails, it rollsback and raises exception.
142,544
import logging import re import textwrap import time from random import randint from typing import (Any, Dict, Iterable, List, Optional, Tuple, # noqa: F401 Union, no_type_check) import neo4j from amundsen_common.entity.resource_type import ResourceType, to_resource_type from amundsen_common.models...
Helper method to get single item from _execute_cypher_query return when only one item is expected. Emulates neo4j's Result.single() behavior.
142,545
import logging from random import randint from time import sleep from typing import Callable, Optional, TypeVar LOGGER = logging.getLogger(__name__) def make_wait_exponential_with_jitter(base: int, jitter: int) -> Callable[[int], int]: def wait(retry: int) -> int: assert retry > 0 return 10**retry +...
null
142,546
import logging import click from flask import current_app from flask.cli import AppGroup from metadata_service import config from metadata_service.client.rds_client import RDSClient class RDSClient: """ Client used by mysql proxy and rds commands """ def __init__(self, sql_alchemy_url: str, client_kwar...
Initialize/upgrade the metadata database according to the latest rds schema version.
142,547
import logging import click from flask import current_app from flask.cli import AppGroup from metadata_service import config from metadata_service.client.rds_client import RDSClient class RDSClient: """ Client used by mysql proxy and rds commands """ def __init__(self, sql_alchemy_url: str, client_kwar...
Reset the metadata database.
142,548
from enum import Enum, auto class ResourceType(Enum): """ DEPRECATED, Please use amundsen_common/entity/resource_type.py instead """ Table = auto() Dashboard = auto() User = auto() Column = auto() Feature = auto() def to_resource_type(*, label: str) -> ResourceType: return ResourceT...
null
142,549
import logging from enum import Enum from typing import ( Any, Dict, List, ) from amundsen_common.models.search import SearchResponse from elasticsearch_dsl.response import Response from elasticsearch_dsl.response.hit import Hit from elasticsearch_dsl.utils import AttrDict, AttrList class Resource(Enum): def get_i...
null
142,550
import logging from enum import Enum from typing import ( Any, Dict, List, ) from amundsen_common.models.search import SearchResponse from elasticsearch_dsl.response import Response from elasticsearch_dsl.response.hit import Hit from elasticsearch_dsl.utils import AttrDict, AttrList class Resource(Enum): TABLE ...
null
142,551
import logging from threading import Lock from typing import ( # noqa: F401 Any, Callable, Dict, ) from flask import current_app from statsd import StatsClient from search_service import config LOGGER = logging.getLogger(__name__) def _get_statsd_client(*, prefix: str) -> StatsClient: """ Object pool metho...
A function decorator that adds statsd timer and statsd counter on success or fail statsd prefix will is from the fuction's module and metric name is from function name itself. Note that config.STATS needs to be True to emit metrics e.g: decorating function neo4j_proxy,get_table will emit: - metadata_service.proxy.neo4j...
142,552
import logging import os import subprocess from setuptools import setup, find_packages PACKAGE_DIR = os.path.join(BASE_DIR, 'amundsen_application', 'static') def is_npm_installed() -> bool: try: subprocess.check_call(['npm --version'], shell=True) return True except subprocess.CalledProcessError...
null
142,553
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
call the metadata service endpoint to get the current popular tables, dashboards etc. this takes a required query parameter "types", that is a comma separated string of requested resource types :return: a json output containing an array of popular table metadata as 'popular_tables' Schema Defined Here: https://github.c...
142,554
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
call the metadata service endpoint and return matching results :return: a json output containing a table metadata object as 'tableData' Schema Defined Here: https://github.com/lyft/amundsenmetadatalibrary/blob/master/metadata_service/api/table.py TODO: Define type for this TODO: Define an interface for envoy_client
142,555
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,556
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
call the metadata service endpoint to get the last indexed timestamp of neo4j :return: a json output containing the last indexed timestamp, in unix epoch time, as 'timestamp' Schema Defined Here: https://github.com/lyft/amundsenmetadatalibrary/blob/master/metadata_service/api/system.py
142,557
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,558
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,559
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,560
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,561
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,562
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,563
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
call the metadata service endpoint to get the list of all tags from metadata proxy :return: a json output containing the list of all tags, as 'tags'
142,564
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
call the metadata service endpoint to get the list of all badges from metadata proxy :return: a json output containing the list of all badges, as 'badges'
142,565
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,566
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,567
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,568
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service to fetch a specified user's bookmarks. If no 'user_id' is specified, it will fetch the logged-in user's bookmarks :param user_id: (optional) the user whose bookmarks are fetched. :return: a JSON object with an array of bookmarks under 'bookmarks' key
142,569
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service to PUT or DELETE a bookmark Params :param type: Resource type for the bookmarked item. e.g. 'table' :param key: Resource key for the bookmarked item. :return:
142,570
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Calls metadata service to GET read/frequently used resources :return: a JSON object with an array of read resources
142,571
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Calls metadata service to GET owned resources :return: a JSON object with an array of owned resources
142,572
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service endpoint to fetch specified dashboard metadata :return:
142,573
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service endpoint to fetch related dashboard metadata :return:
142,574
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service to fetch table lineage for a given table :return:
142,575
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service to fetch table lineage for a given table :return:
142,576
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,577
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,578
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service to fetch feature generation code :return:
142,579
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
Call metadata service to fetch table lineage for a given feature :return:
142,580
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null
142,581
import logging import json from http import HTTPStatus from typing import Any, Dict, Optional from flask import Response, jsonify, make_response, request from flask import current_app as app from flask.blueprints import Blueprint from amundsen_common.entity.resource_type import ResourceType, to_label from amundsen_comm...
null