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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pybuilder/pybuilder | https://github.com/pybuilder/pybuilder | null | null | null | null | 1,983 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/integrationtest/python/should_raise_exception_when_detect_task_cycle_tests.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:36.922254 | # -*- coding: utf-8 -*-
#
# This file is part of PyBuilder
#
# Copyright 2011-2020 PyBuilder Team
#
# 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/l... |
pybuilder/pybuilder | https://github.com/pybuilder/pybuilder | null | null | null | null | 1,983 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/integrationtest/python/should_raise_exception_optional_exclude_required_task_tests.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:36.967207 | # -*- coding: utf-8 -*-
#
# This file is part of PyBuilder
#
# Copyright 2011-2020 PyBuilder Team
#
# 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/l... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/coordinator.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.474382 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/server.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.478298 | #!/usr/bin/env python
# Copyright 2025 Google LLC All Rights Reserved.
#
# 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... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/reporting/core.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.492135 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/admin/info.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.502073 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/admin/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.503585 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/reporting/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.504469 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/reporting/funnel.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.505328 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.505885 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/reporting/metadata.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:39.508634 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/utils_test.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:41.259558 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | noxfile.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:41.260179 | # Copyright 2025 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:41.261126 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
googleanalytics/google-analytics-mcp | https://github.com/googleanalytics/google-analytics-mcp | null | null | null | null | 1,982 | null | null | apache-2.0 | null | null | null | null | null | null | null | analytics_mcp/tools/reporting/realtime.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:41.261741 | # Copyright 2025 Google LLC All Rights Reserved.
#
# 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 or a... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.694239 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/cli/__main__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.706798 | # Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/clouddrivers/azure_driver.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.708582 | import os
import sys
from powerfulseal import makeLogger
from . import AbstractDriver
from ..node import Node, NodeState
from azure.common.client_factory import get_client_from_auth_file
from azure.identity import DefaultAzureCredential
from azure.mgmt.resource import ResourceManagementClient
from azure.mgmt.network i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/clouddrivers/aws_driver.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.711376 | from powerfulseal import makeLogger
import boto3
from . import AbstractDriver
from ..node import Node, NodeState
def create_connection_from_config():
""" Creates a new aws api connection """
conn = boto3.resource('ec2')
return conn
def get_all_ips(instance):
""" Returns the public and private ip addr... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/clouddrivers/gcp_driver.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.722047 | import json
from powerfulseal import makeLogger
import subprocess
import sys
import googleapiclient.discovery
from oauth2client.client import GoogleCredentials
from oauth2client.service_account import ServiceAccountCredentials
from . import AbstractDriver
from ..node import Node
from ..node import NodeState
def cre... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/clouddrivers/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.726246 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/clouddrivers/driver.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.727869 | # Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | examples/extract-examples.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.729332 | import os
EXAMPLES_DIR = "./examples/"
EXAMPLE_NAME_TEMPLATE = "example-policy{}.yml"
VALID_BEGINNGINGS = ["scenarios", "config"]
cwd = os.path.dirname(os.path.realpath(__file__)) + "/../docs/"
files = []
for (dirpath, dirnames, filenames) in os.walk(cwd):
for filename in filenames:
if filename.endswith(".md"... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/cli/pscmd.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:44.745303 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/k8s/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.846334 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/k8s/k8s_inventory.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.847090 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/execute/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.848922 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/clouddrivers/no_cloud_driver.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.849932 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/k8s/k8s_client.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.851034 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/k8s/metrics_server_client.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.851542 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/execute/ssh_executor.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.852419 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/execute/abstract_executor.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.854270 | # Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/execute/kubernetes_executor.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.855497 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/clouddrivers/open_stack_driver.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:45.856598 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/k8s/pod.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.030181 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/metriccollectors/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.031947 |
# Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/metriccollectors/stdout_collector.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.033868 |
# Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/node/inventory.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.044182 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/metriccollectors/prometheus_collector.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.046740 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_abstract.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.889586 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_alertmanager.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.892616 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_clone.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.907155 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:47.936788 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_nodes_pods.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:48.452115 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_pods.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:48.452731 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_probe_http.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:48.487563 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_nodes.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:48.501639 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/action_kubectl.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:48.711397 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/label_runner.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.003945 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/policy_runner.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.034976 | # Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/policy/scenario.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.071525 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/version.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.084806 | import pkg_resources
try:
__version__ = pkg_resources.get_distribution('powerfulseal').version
except Exception:
__version__ = 'unknown'
|
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/web/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.238809 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/web/server.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.619347 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/cli/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.624575 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.626322 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/cli/test_args.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:49.796719 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/cli/test_kubeconfig.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:50.155674 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/metriccollectors/datadog_collector.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:51.595952 | from powerfulseal.metriccollectors.collector import AbstractCollector
from datadog import statsd
STATUS_SUCCESS = 'success'
STATUS_FAILURE = 'failure'
POD_KILLS_METRIC_NAME = 'powerfulseal.pod_kills_total'
POD_KILLS = ['status:', 'namespace:', 'name:']
NODE_STOPS_METRIC_NAME = 'powerfulseal.nodes_stopped_total'
NODE_... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/metriccollectors/collector.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:51.598572 | # Copyright 2018 Bloomberg Finance L.P.
#
# 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 or agreed to i... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/node/node_inventory.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:51.599473 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/node/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:51.702673 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
powerfulseal/powerfulseal | https://github.com/powerfulseal/powerfulseal | null | null | null | null | 1,978 | null | null | apache-2.0 | null | null | null | null | null | null | null | powerfulseal/node/node.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:51.864490 |
# Copyright 2017 Bloomberg Finance L.P.
#
# 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 or agreed to ... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/clients/file_storage/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.336487 | import importlib
import inspect
import os
from typing import Type
from core.clients.file_storage.classes.interface import FileStorageClient
from core.clients.file_storage.classes.local_storage import LocalStorageClient
ignored_files = ["interface.py", "local_storage.py"]
def load_client_classes():
classes: list... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | contrib/analytics/ivre_api/ivre_api.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.352109 | """Analytics relying on IVRE's data.
IVRE is an open-source network recon framework. See
<https://ivre.rocks/> to learn more about it.
Currently, this analytics provides:
- Estimated geographic location and Autonomous System (AS) of IP
addresses (based on MaxMind data, see
<https://dev.maxmind.com/geoip/geoip2... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | contrib/feeds/threattracking/threattracking.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.354820 | # encoding: utf-8
import logging
from datetime import timedelta
import hammock
import requests
import simplejson as json
from core.entities import Actor, Campaign, Malware
from core.feed import Feed
from mongoengine.errors import DoesNotExist
from core.config.config import yeti_config
# # add configuration to yeti.... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/clients/file_storage/classes/s3.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.355839 | import logging
import os
from core.clients.file_storage.classes.interface import FileStorageClient
try:
import boto3
except ImportError:
boto3 = None
logging.warning(
"boto3 is not imported, if you wish to use s3 file storage please install with `uv sync --group s3`"
)
class S3Client(FileSto... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | contrib/feeds/otx/otx.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.357606 | from datetime import timedelta
import dateutil.parser
from core.feed import Feed
from core.observables import Email, Hash, Hostname, Ip, Url
from mongoengine import DictField
from OTXv2 import OTXv2
from core.config.config import yeti_config
OBSERVABLE_TYPES = {
"IPv4": Ip,
"domain": Hostname,
"hostname"... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | contrib/feeds/proofpoint/proofpoint.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.358854 | # encoding: utf-8
import collections
import logging
import pprint
from datetime import datetime, timedelta
import hammock
import requests
from core.entities import TTP, Actor, Campaign
from core.entities.malware import Malware
from core.feed import Feed
from core.observables import Email, File, Hash, Hostname, Ip, Ob... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/clients/file_storage/classes/local_storage.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.392612 | import logging
import os
import pathlib
from core.clients.file_storage.classes.interface import FileStorageClient
class LocalStorageClient(FileStorageClient):
PREFIX = ""
def __init__(self, path: str):
self.path = pathlib.Path(path)
self.path.mkdir(parents=True, exist_ok=True)
loggi... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/clients/file_storage/classes/interface.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.423745 | from abc import ABC, abstractmethod
class FileStorageClient(ABC):
PREFIX: str
@abstractmethod
def __init__(self, path: str):
raise NotImplementedError
@abstractmethod
def file_path(self, file_name: str) -> str:
raise NotImplementedError
@abstractmethod
def get_file(self,... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/common/misp_to_yeti.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.882964 | from core.schemas import observable
MISP_TYPES_TO_IMPORT = {
"domain": observable.ObservableType.hostname,
"hostname": observable.ObservableType.hostname,
"ip-dst": observable.ObservableType.ipv4,
"ip-src": observable.ObservableType.ipv4,
"url": observable.ObservableType.url,
"md5": observable.... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/constants.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.911155 | from os import path
YETI_ROOT = path.normpath(path.dirname(path.dirname(path.abspath(__file__))))
STORAGE_ROOT = path.join(YETI_ROOT, "storage")
PLUGINS_ROOT = path.join(YETI_ROOT, "plugins")
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/common/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.912683 | # DEPRECATED
import logging
from dateutil import parser
from dateutil.tz import UTC, gettz
from tldextract import TLDExtract
from core.config.config import yeti_config
tzinfos = {"CEST": gettz("Europe/Amsterdam"), "CST": gettz("Europe/Amsterdam")}
tld_extract_dict = {"extra_suffixes": list(), "suffix_list_urls": N... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/errors.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.959757 | class YetiError(RuntimeError):
def __init__(self, message: str, meta: dict | None = None):
self.meta = meta or {}
super().__init__(message)
class ObjectCreationError(YetiError):
pass
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/config/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.968306 | import os
from configparser import ConfigParser
from core.constants import YETI_ROOT
class Dictionary(dict):
"""A dictionary that allows to access its elements as attributes."""
def __getattr__(self, key):
return self.get(key, None)
__setattr__ = dict.__setitem__
__delattr__ = dict.__delite... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/events/consumers.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.987893 | import argparse
import hashlib
import json
import logging
import multiprocessing
import os
from kombu import Connection, Exchange, Queue
from kombu.mixins import ConsumerMixin
from core.config.config import yeti_config
from core.events.message import (
EventMessage,
LinkEvent,
LogMessage,
ObjectEvent,... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/events/message.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:54.989638 | from __future__ import annotations
import abc
import datetime
from enum import Enum
from typing import TYPE_CHECKING, Annotated, Pattern, Union
from pydantic import BaseModel, Discriminator, Field
from pydantic import Tag as PydanticTag
from core.helpers import now
if TYPE_CHECKING:
from core.schemas import (
... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/database_arango.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.006892 | """Class implementing a YetiConnector interface for ArangoDB."""
import datetime
import json
import logging
import sys
import time
from typing import TYPE_CHECKING, Any, Iterable, List, Optional, Type, TypeVar
if TYPE_CHECKING:
from core.schemas import dfiq, entity, indicator, observable, rbac, roles, tag, user
... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/events/producer.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.434051 | import logging
import statistics
import redis
from kombu import Connection, Exchange, Producer, Queue
from core.config.config import yeti_config
from core.events.message import EventMessage, EventTypes, LogMessage
MEMORY_LIMIT_MB = yeti_config.get("events", "memory_limit", 64)
KEEP_RATIO = yeti_config.get("events", ... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.450574 | import datetime
import hashlib
import re
def refang(url):
def http(match):
return "http{}".format(match.group("real"))
substitutes = ("me[o0]w", "h..p")
schema_re = re.compile("^(?P<fake>{})(?P<real>s?://)".format("|".join(substitutes)))
domain_re = re.compile(r"(\[\.\]|\[\.|\.\]|,)")
url... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/interfaces.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.502323 | """YetiConnector interface.
This interface defines the methods a YetiConnector needs to implement to
successfully carry out all interactions with the database.
"""
from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, Any, List, Type, TypeVar
if TYPE_CHECKING:
from core.schemas import entity, gra... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/logger.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.503622 | import datetime
import json
import logging
import os
import queue
from logging import Formatter
from logging.handlers import QueueHandler, QueueListener
from core.config.config import yeti_config
from core.schemas.audit import AuditLog
# Inspired by
# * https://www.sheshbabu.com/posts/fastapi-structured-json-logging/... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/migrations/arangodb.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.533578 | import collections
import logging
import time
import tqdm
from core.database_arango import ASYNC_JOB_WAIT_TIME, ArangoDatabase
from core.migrations import migration
class ArangoMigrationManager(migration.MigrationManager):
DB_TYPE = "arangodb"
def connect_to_db(self):
self.db = ArangoDatabase()
... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/dfiq.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.559366 | import datetime
import glob
import logging
import re
import uuid
from dataclasses import dataclass
from enum import Enum
from typing import Annotated, Any, ClassVar, Literal, Type, Union
import yaml
from packaging.version import Version
from pydantic import BaseModel, Field, computed_field
from core import database_a... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/migrations/migration.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.575303 | from typing import Callable
class MigrationManager:
MIGRATIONS: list[Callable] = []
def __init__(self):
self.connect_to_db()
def connect_to_db(self):
raise NotImplementedError
def update_db_version(self, version: int):
raise NotImplementedError
def migrate_to_latest(sel... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/audit.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.586767 | import datetime
from typing import TYPE_CHECKING, ClassVar, Literal
from pydantic import ConfigDict, computed_field
from core import database_arango
from core.schemas.model import YetiBaseModel, YetiModel
if TYPE_CHECKING:
from core.schemas.dfiq import DFIQTypes
from core.schemas.entity import EntityTypes
... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:55.607654 | import importlib
import inspect
import logging
import re
from pathlib import Path
import aenum
from core.events import message
from core.schemas import (
dfiq,
entity,
graph,
indicator,
observable,
rbac,
tag,
task,
template,
user,
)
logger = logging.getLogger(__name__)
logging... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/attack_pattern.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.060460 | from typing import ClassVar, Literal
from core.schemas import entity
class AttackPattern(entity.Entity):
_type_filter: ClassVar[str] = "attack-pattern"
type: Literal["attack-pattern"] = "attack-pattern"
aliases: list[str] = []
kill_chain_phases: list[str] = []
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/course_of_action.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.102399 | from typing import ClassVar, Literal
from core.schemas import entity
class CourseOfAction(entity.Entity):
_type_filter: ClassVar[str] = "course-of-action"
type: Literal["course-of-action"] = "course-of-action"
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/identity.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.154473 | from typing import ClassVar, Literal
from core.schemas import entity
class Identity(entity.Entity):
_type_filter: ClassVar[str] = "identity"
type: Literal["identity"] = "identity"
identity_class: str = ""
sectors: list[str] = []
contact_information: str = ""
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/campaign.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.184070 | import datetime
from typing import ClassVar, Literal
from pydantic import Field
from core.helpers import now
from core.schemas import entity
class Campaign(entity.Entity):
_type_filter: ClassVar[str] = "campaign"
type: Literal["campaign"] = "campaign"
aliases: list[str] = []
first_seen: datetime.da... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/company.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.225994 | from typing import ClassVar, Literal
from core.schemas import entity
class Company(entity.Entity):
type: Literal["company"] = "company"
_type_filter: ClassVar[str] = "company"
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/phone.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.455326 | from typing import ClassVar, Literal
from core.schemas import entity
class Phone(entity.Entity):
type: Literal["phone"] = "phone"
_type_filter: ClassVar[str] = "phone"
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/threat_actor.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.670838 | import datetime
from typing import ClassVar, Literal
from pydantic import Field
from core.helpers import now
from core.schemas import entity
class ThreatActor(entity.Entity):
_type_filter: ClassVar[str] = "threat-actor"
type: Literal["threat-actor"] = "threat-actor"
threat_actor_types: list[str] = []
... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/tool.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.723558 | from typing import ClassVar, Literal
from core.schemas import entity
class Tool(entity.Entity):
_type_filter: ClassVar[str] = "tool"
type: Literal["tool"] = "tool"
aliases: list[str] = []
kill_chain_phases: list[str] = []
tool_version: str = ""
|
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entities/vulnerability.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.770683 | import re
from enum import Enum
from typing import ClassVar, Literal
from pydantic import Field
from core.schemas import entity
vulnerability_matcher = re.compile(
r"(?P<pre>\W?)(?P<search>CVE-\d{4}-\d{4,7})(?P<post>\W?)"
)
class SeverityType(str, Enum):
none = "none"
low = "low"
medium = "medium"
... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/entity.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:57.778713 | import datetime
from enum import Enum
from typing import ClassVar, List, Literal
from pydantic import ConfigDict, Field, computed_field
from core import database_arango
from core.helpers import now
from core.schemas.model import YetiAclModel, YetiContextModel, YetiTagModel
# Forward declarations
# They are then pop... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/graph.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:58.038954 | import datetime
from typing import ClassVar, Literal
from pydantic import BaseModel, ConfigDict, computed_field
from core import database_arango
from core.schemas import roles
# Database model
class GraphFilter(BaseModel):
model_config = ConfigDict(str_strip_whitespace=True)
key: str
value: str
ope... |
yeti-platform/yeti | https://github.com/yeti-platform/yeti | null | null | null | null | 1,977 | null | null | apache-2.0 | null | null | null | null | null | null | null | core/schemas/indicator.py | null | null | null | null | null | null | Python | 2026-05-04T02:43:58.198701 | import datetime
import logging
from enum import Enum
from typing import Any, ClassVar, Generator, List, Literal
from pydantic import ConfigDict, Field, computed_field
from core import database_arango
from core.helpers import now
from core.schemas.model import YetiAclModel, YetiContextModel, YetiTagModel
def future(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.