repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/service-catalog/seed_code/mlops_app/infra/lambda/get_model_metadata/lambda.py | modules/service-catalog/seed_code/mlops_app/infra/lambda/get_model_metadata/lambda.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import boto3
sm_client = boto3.client("sagemaker")
sns_client = boto3.client("sns")
SNS_TOPIC_ARN = os.environ["SNS_TOPIC_ARN"]
def send_message(subject, msg):
response = sns_client... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/service-catalog/seed_code/mlops_app/infra/notifications/notifications_stack.py | modules/service-catalog/seed_code/mlops_app/infra/notifications/notifications_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from typing import Any
from aws_cdk import Stack
from aws_cdk import aws_events as events
from aws_cdk import aws_events_targets as targets
from aws_cdk import aws_iam as iam
from aws_cdk import aws_lambda as la... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/service-catalog/seed_code/mlops_app/infra/notifications/__init__.py | modules/service-catalog/seed_code/mlops_app/infra/notifications/__init__.py | # __init__.py
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/stack.py | modules/post-processing/yolop-lane-detection/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import Any, cast
import aws_cdk.aws_ecr as ecr
import aws_cdk.aws_iam as iam
import cdk_nag
from aws_cdk import Aspects, Duration, Stack, Tags
from cdk_nag import NagPackSuppression, N... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/app.py | modules/post-processing/yolop-lane-detection/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from aws_cdk import App, CfnOutput, Environment
from stack import LaneDetection
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYMENT_NAME", "")
m... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/src/sample_sm_processor.py | modules/post-processing/yolop-lane-detection/src/sample_sm_processor.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# The following is example code that walks thru the invocation of the model image
# in this module...it is an EXAMPLE that should be executed outside of this module
from sagemaker import get_execution_role
from ... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/src/detect_lanes.py | modules/post-processing/yolop-lane-detection/src/detect_lanes.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import argparse
import json
import os
import sys
import time
from pathlib import Path
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
print(sys.path)
import cv2
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/tests/__init__.py | modules/post-processing/yolop-lane-detection/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/tests/infra/test_app.py | modules/post-processing/yolop-lane-detection/tests/infra/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-proj"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-dep"
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/tests/infra/test_stack.py | modules/post-processing/yolop-lane-detection/tests/infra/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["CDK_DEFAULT_ACCOUNT"] = "111111111111"
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolop-lane-detection/tests/infra/__init__.py | modules/post-processing/yolop-lane-detection/tests/infra/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolo-object-detection/stack.py | modules/post-processing/yolo-object-detection/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import Any, cast
import aws_cdk.aws_ecr as ecr
import aws_cdk.aws_iam as iam
import cdk_nag
from aws_cdk import Aspects, Duration, Stack, Tags
from cdk_nag import NagPackSuppression, N... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolo-object-detection/app.py | modules/post-processing/yolo-object-detection/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from aws_cdk import App, CfnOutput, Environment
from stack import ObjectDetection
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = os.getenv("SEEDFARMER_DEPLOYMENT_NAME", "")... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolo-object-detection/src/detect_objects.py | modules/post-processing/yolo-object-detection/src/detect_objects.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from argparse import ArgumentParser
from glob import glob as get_files
from json import dump as dump_json
import pandas as pd
from ultralytics import YOLO
def get_pandas(result):
# translate boxes data fro... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolo-object-detection/tests/__init__.py | modules/post-processing/yolo-object-detection/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolo-object-detection/tests/infra/test_app.py | modules/post-processing/yolo-object-detection/tests/infra/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-proj"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-dep"
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolo-object-detection/tests/infra/test_stack.py | modules/post-processing/yolo-object-detection/tests/infra/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
from aws_cdk.assertions import Template
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["CDK_DEFAULT_ACCOUNT"] = "111111111111"
... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/post-processing/yolo-object-detection/tests/infra/__init__.py | modules/post-processing/yolo-object-detection/tests/infra/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/ml-training/training-image/mnist/src/mnist.py | modules/ml-training/training-image/mnist/src/mnist.py | # Copyright 2022 The Kubeflow Authors.
#
# 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 in ... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/ml-training/training-k8s-deployment/configure_asgs.py | modules/ml-training/training-k8s-deployment/configure_asgs.py | import os
from typing import Any, Dict
import boto3 # type: ignore
eks = boto3.client("eks")
as_client = boto3.client("autoscaling")
# This script fixes missing tags for the cluster autoscaler that need to be added to the nodegroup autoscaling group
# docs:
# https://github.com/kubernetes/autoscaler/blob/master/clu... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/ml-training/training-k8s-deployment/stack.py | modules/ml-training/training-k8s-deployment/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
import os
from typing import Any, cast
import cdk_nag
from aws_cdk import Aspects, Duration, Stack, Tags, aws_eks, aws_iam
from aws_cdk import aws_logs as logs
from aws_cdk import aws_stepfunction... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/ml-training/training-k8s-deployment/app.py | modules/ml-training/training-k8s-deployment/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from typing import cast
from aws_cdk import App, CfnOutput, Environment
from stack import TrainingPipeline
# Project specific
project_name = os.getenv("SEEDFARMER_PROJECT_NAME", "")
deployment_name = ... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/ml-training/training-k8s-deployment/tests/test_app.py | modules/ml-training/training-k8s-deployment/tests/test_app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["SEEDFARMER_PROJECT_NAME"] = "test-project"
os.environ["SEEDFARMER_DEPLOYMENT_NAME"] = "test-deploy... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/ml-training/training-k8s-deployment/tests/test_stack.py | modules/ml-training/training-k8s-deployment/tests/test_stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import sys
import aws_cdk as cdk
import pytest
@pytest.fixture(scope="function")
def stack_defaults():
os.environ["CDK_DEFAULT_ACCOUNT"] = "111111111111"
os.environ["CDK_DEFAULT_REGION"] = "u... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/ml-training/training-k8s-deployment/tests/__init__.py | modules/ml-training/training-k8s-deployment/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/vscode-on-eks/stack.py | modules/demo-only/vscode-on-eks/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import Any, cast
import aws_cdk
import aws_cdk.aws_s3_assets as s3_assets
import cdk_nag
from aws_cdk import Aspects, Stack, Tags
from aws_cdk import aws_eks as eks
from aws_cdk import... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/vscode-on-eks/app.py | modules/demo-only/vscode-on-eks/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import aws_cdk
import boto3
from aws_cdk import App
from stack import VSCodeOnEKS
account = os.environ["CDK_DEFAULT_ACCOUNT"]
region = os.environ["CDK_DEFAULT_REGION"]
partition = os.gete... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/vscode-on-eks/tests/test_stack.py | modules/demo-only/vscode-on-eks/tests/test_stack.py | def test_placeholder() -> None:
return None
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/vscode-on-eks/tests/__init__.py | modules/demo-only/vscode-on-eks/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/rosbag-webviz/get_url.py | modules/demo-only/rosbag-webviz/get_url.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#!/usr/bin/env python3
import json
import sys
from argparse import ArgumentParser
import boto3
def main():
parser = ArgumentParser(
description="Request a Presigned URL from the generateUrlLambda... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/rosbag-webviz/lambda/generate_url/main.py | modules/demo-only/rosbag-webviz/lambda/generate_url/main.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import os
from urllib.parse import quote_plus
import boto3
from botocore.config import Config
from botocore.errorfactory import ClientError
webviz_elb_url = os.environ["WEBVIZ_ELB_URL"]
dynamo_region = o... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/rosbag-webviz/lambda/put_cors/main.py | modules/demo-only/rosbag-webviz/lambda/put_cors/main.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import boto3
cors_rule = {
"AllowedHeaders": ["*"],
"AllowedMethods": ["GET", "HEAD"],
"ExposeHeaders": ["ETag", "Content-Type", "Accept-Ranges", "Content-Length"],
"MaxAgeSeconds": 3000,
}
s3 = boto... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/opensearch-proxy/stack.py | modules/demo-only/opensearch-proxy/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
from typing import Any, cast
import aws_cdk
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_iam as iam
import cdk_nag
from aws_cdk import Aspects, Stack, Tags
from aws_cdk.aws_s3_assets import As... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/opensearch-proxy/app.py | modules/demo-only/opensearch-proxy/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import aws_cdk
import boto3
from aws_cdk import App, CfnOutput
from stack import ProxyStack
account = os.environ["CDK_DEFAULT_ACCOUNT"]
region = os.environ["CDK_DEFAULT_REGION"]
partition... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/opensearch-proxy/tests/test_stack.py | modules/demo-only/opensearch-proxy/tests/test_stack.py | def test_placeholder() -> None:
return None
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/opensearch-proxy/tests/__init__.py | modules/demo-only/opensearch-proxy/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/jupyter-hub/stack.py | modules/demo-only/jupyter-hub/stack.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import logging
import os
from typing import Any, cast
import cdk_nag
from aws_cdk import Aspects, Stack, Tags
from aws_cdk import aws_eks as eks
from aws_cdk import aws_iam as iam
from cdk_nag import... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/jupyter-hub/app.py | modules/demo-only/jupyter-hub/app.py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import os
import aws_cdk
import boto3
from aws_cdk import App
from stack import JupyterHubStack
account = os.environ["CDK_DEFAULT_ACCOUNT"]
region = os.environ["CDK_DEFAULT_REGION"]
partition = os.... | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/jupyter-hub/tests/test_stack.py | modules/demo-only/jupyter-hub/tests/test_stack.py | def test_placeholder() -> None:
return None
| python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false |
awslabs/autonomous-driving-data-framework | https://github.com/awslabs/autonomous-driving-data-framework/blob/deadc6a9cc30df557f10c750d7d4a0a751d42f53/modules/demo-only/jupyter-hub/tests/__init__.py | modules/demo-only/jupyter-hub/tests/__init__.py | python | Apache-2.0 | deadc6a9cc30df557f10c750d7d4a0a751d42f53 | 2026-01-05T07:12:28.137953Z | false | |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_SelectUnboundRooms.py | 0-python-code/HowTo_SelectUnboundRooms.py | """
Selects unbound rooms in model
TESTED REVIT API: 2015, 2016, 2017
Author: Jared Friedman | github.com/jbf1212
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
from Autodesk.... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_ReloadAllLinkDocuments.py | 0-python-code/HowTo_ReloadAllLinkDocuments.py | """
Reload All Link Documents
TESTED REVIT API: 2017
Author: min.naung@https://twentytwo.space/contact | https://github.com/mgjean
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_GetPhaseByName.py | 0-python-code/HowTo_GetPhaseByName.py | """
Retrieves a phase by its Name
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
from Autodesk.Revit.DB impor... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_HideUnhideLinksLevelsGrids.py | 0-python-code/HowTo_HideUnhideLinksLevelsGrids.py | """
HIDE / UNHIDE - LEVELS AND GRIDS FROM LINKS DOCUMENTS
TESTED REVIT API: 2017, 2018
Author: min.naung@https://twentytwo.space/contact | https://github.com/mgjean
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/rev... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_OpenScheduleInExcel.py | 0-python-code/Tools_OpenScheduleInExcel.py | """
Creates a temporary .txt file of a selected schedule, and open it in Excel
TESTED REVIT API: 2015, 2016, 2017, 2017.1
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/re... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_GetParameterMap.py | 0-python-code/Tools_GetParameterMap.py | """
Prints a Parameter map of the first element in selection.
Where applicable it prints Instance and type parameter map.
Returns a parameter dict.
TESTED REVIT API: 2015, 2016
Author: Frederic Beaupere | hdm-dt-fb
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/rev... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_GetParameterValueByName.py | 0-python-code/HowTo_GetParameterValueByName.py | """
Get Parameter Value by Name
Get value of one of element's parameters.
TESTED REVIT API: 2016,2017
Author: Francisco Possetto | github.com/franpossetto
Shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_ImportImage.py | 0-python-code/HowTo_ImportImage.py | """
Imports an Image
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
# See: http://www.revitapidocs.com/2015/05... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Misc_ConvertToPython.py | 0-python-code/Misc_ConvertToPython.py | """
Examples of C# code, followed by its Python Equivalent
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
# Bl... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_GetAllWorksets.py | 0-python-code/HowTo_GetAllWorksets.py | """
GET ALL WORKSETS FROM THE CURRENT DOCUMENT
TESTED REVIT API: 2016,2017,2018
Author: min.naung@https://twentytwo.space/contact | https://github.com/mgjean
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapido... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_GetSelectedElements.py | 0-python-code/HowTo_GetSelectedElements.py | """
Get's selected elements
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
uidoc = __revit__.ActiveUIDocument
... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_RegisterEventHandler.py | 0-python-code/HowTo_RegisterEventHandler.py | """
Register Event Handler
TESTED REVIT API: -
Author: Ehsan Iran Nejad | https://github.com/eirannejad/
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
# https://github.com/e... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/RPW_SetPhaseForAll.py | 0-python-code/RPW_SetPhaseForAll.py | """
Forcefully set the phase for all Selected Objects.
User will be prompted with a simple form to select the desired phase
Requires rpw library: github.com/gtalarico/revitpythonwrapper
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information v... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_GetAllElementsOfCategory.py | 0-python-code/HowTo_GetAllElementsOfCategory.py | """
All elements of Category
Get all elements of the specified category from Model.
TESTED REVIT API: 2016,2017
Author: Francisco Possetto | github.com/franpossetto
Shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blo... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_SetPointCloudColorMode.py | 0-python-code/Tools_SetPointCloudColorMode.py | """
Sets Color Mode of all Point Cloud Instances in View to Normal.
TESTED REVIT API: 2017
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_InsertDwgLink.py | 0-python-code/HowTo_InsertDwgLink.py | """
Inserts a DWG Link into the Active View.
The same code can be used for other link types
TESTED REVIT API: 2017
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapid... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_GetLineIntersection.py | 0-python-code/HowTo_GetLineIntersection.py | """
Get Line Intersection
Get's intersection of 2 lines
TESTED REVIT API: 2017
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
impo... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/RPW_DWGPolylineRedrawAndDimension.py | 0-python-code/RPW_DWGPolylineRedrawAndDimension.py | """
Linked DWG PolyLine Redraw and Dimension Example
Redraws polylines in a given layer (LAYER_NAME) in a linked DWG instance
and adds Dimensions to these segments
TESTED REVIT API: 2017
Author: Frederic Beaupere | github.com/hdm-dt-fb
This file is shared on www.revitapidocs.com
For more information visit http://gi... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_MakeFloorFromRooms.py | 0-python-code/Tools_MakeFloorFromRooms.py | """
Makes Floor objects from the boundary of selected Rooms
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
imp... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_CreateDraftingView.py | 0-python-code/HowTo_CreateDraftingView.py | """
Creates a Drafting View
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
from Autodesk.Revit.DB import Trans... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_CreateWorkset.py | 0-python-code/HowTo_CreateWorkset.py | """
Create a Workset
Creates a Workset - Revit 2017+
TESTED REVIT API: 2017
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
import ... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Misc_RevitTransactionDecorator.py | 0-python-code/Misc_RevitTransactionDecorator.py | """
Revit Transaction Decorator function.
This allows you to create functions that make changes to the revit document
without having to repeat the code to start/commit transactions.
Just add the revit_transaction decorator and a transaction will be started before
your function is called, and then commit after the call
... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_MoveObjectToCenterOfRoom.py | 0-python-code/Tools_MoveObjectToCenterOfRoom.py | """
Centers an object in the Room in it's in based on the center of the
Room Bounding Box.
TESTED REVIT API: 2015, 2016, 2017, 2017.1
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_MoveRoomTagToRoomCenter.py | 0-python-code/Tools_MoveRoomTagToRoomCenter.py | """
Moves all tags to the "Room Location Point" of their corresponding rooms
TESTED REVIT API: 2015, 2016, 2017, 2017.1
Author: Gui Talarico | github.com/gtalarico
min.naung | https://twentytwo.space/contact | https://github.com/mgjean
This file is shared on www.revitapidocs.com
For more information visit h... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Misc_IFailuresPreprocessor.py | 0-python-code/Misc_IFailuresPreprocessor.py | """
IFailuresPreprocessor Example
Places an unenclosed room in a project and removes the warning
from transaction via the IFailuresPreprocessor
TESTED REVIT API: 2015
Author: Frederic Beaupere | github.com/hdm-dt-fb
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/re... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_FamilyLoader.py | 0-python-code/Tools_FamilyLoader.py | """
Family Loader
- loads familiy into project with a path and file name.
- implements IFamilyLoadOptions to silence OverwriteParamaterValue dialogue box.
Requires rpw library: github.com/gtalarico/revitpythonwrapper
Author: Grant Foster | github.com/grantdfoster
"""
import os
import clr
import Autodesk.Revit.DB
fro... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_CycleTypes.py | 0-python-code/Tools_CycleTypes.py | """
Cycles through available types in family manager. Must be in Family Document
TESTED REVIT API: 2015, 2016, 2017, 2017.1
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_RemoveWallPaint.py | 0-python-code/HowTo_RemoveWallPaint.py | """
Remove Wall Paint
TESTED REVIT API: 2017
Author: min.naung @https://twentytwo.space/contact | https://github.com/mgjean
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
fro... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_SetParameterByName.py | 0-python-code/HowTo_SetParameterByName.py | """
Set Parameter by Name
Set one of element's parameters.
TESTED REVIT API: 2016,2017
Author: Francisco Possetto | github.com/franpossetto
Shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_SolidifyBoundingBox.py | 0-python-code/HowTo_SolidifyBoundingBox.py | """
Solidify Selected Element BoundingBox Example
Creates a Generic Model Direct Shape
TESTED REVIT API: 2017
Author: Frederic Beaupere | github.com/hdm-dt-fb
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapido... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_CreateTextFunc.py | 0-python-code/HowTo_CreateTextFunc.py | """
Create a text annotation element.
Does not include start/commit transaction.
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/maste... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_RemoveUnderlay.py | 0-python-code/Tools_RemoveUnderlay.py | """
Removes Underlay From Selected Views.
TESTED REVIT API: 2015, 2016
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
# Parts of t... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/Tools_SetViewTemplateParameterToNotControlled.py | 0-python-code/Tools_SetViewTemplateParameterToNotControlled.py | """
Set view template parameter to not controlled by view template
Sets a single view template parameter 'keep_non_sheet_view'
to be not controlled by view template, keeping other view
template parameters settings.
TESTED REVIT API: 2017
Author: Frederic Beaupere | github.com/hdm-dt-fb
This file is shared on www.r... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_CreateTaskDialog.py | 0-python-code/HowTo_CreateTaskDialog.py | """
Creates a TaskDialog
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/LICENSE.md
"""
# Results here: https://imgur.com/4DiP... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_GetFilledRegionByName.py | 0-python-code/HowTo_GetFilledRegionByName.py | """
Retrieves a Filled Region by its Type Name
If none is found, the last one is returned
TESTED REVIT API: -
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/b... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_SelectMirroredDoors.py | 0-python-code/HowTo_SelectMirroredDoors.py | """
Selects All Door Instances that have been Mirrored.
TESTED REVIT API: 2015, 2016, 2017, 2017.1
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master/... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
gtalarico/revitapidocs.code | https://github.com/gtalarico/revitapidocs.code/blob/a8103ff10fcc0d55c7e484b0dc8d1fce954433d7/0-python-code/HowTo_ChangeWorksetSetting.py | 0-python-code/HowTo_ChangeWorksetSetting.py | """
Change Workset Settings
Set workset to be hidden by default in all views
TESTED REVIT API: 2017
Author: Gui Talarico | github.com/gtalarico
This file is shared on www.revitapidocs.com
For more information visit http://github.com/gtalarico/revitapidocs
License: http://github.com/gtalarico/revitapidocs/blob/master... | python | MIT | a8103ff10fcc0d55c7e484b0dc8d1fce954433d7 | 2026-01-05T07:12:41.185581Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/image.py | custom_components/petkit/image.py | """Image platform for Petkit Smart Devices integration."""
from __future__ import annotations
from dataclasses import dataclass
import datetime
from pathlib import Path
from types import MappingProxyType
from typing import TYPE_CHECKING, Any
import aiofiles
from pypetkitapi import (
FEEDER_WITH_CAMERA,
LITTE... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/diagnostics.py | custom_components/petkit/diagnostics.py | """Petkit integration diagnostics."""
from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.core import HomeAssistant
from homeassistant.helpers.device_registry import Devic... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/switch.py | custom_components/petkit/switch.py | """Switch platform for Petkit Smart Devices integration."""
from __future__ import annotations
import asyncio
from collections.abc import Callable
from dataclasses import dataclass
from datetime import timedelta
from typing import TYPE_CHECKING, Any
from pypetkitapi import (
DEVICES_LITTER_BOX,
FEEDER_MINI,
... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | true |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/number.py | custom_components/petkit/number.py | """Switch platform for Petkit Smart Devices integration."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any
from pypetkitapi import (
D3,
D4H,
D4S,
D4SH,
FEEDER,
T5,
T6,
T7,
DeviceComma... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/media_source.py | custom_components/petkit/media_source.py | """Media Source Implementation."""
from __future__ import annotations
import asyncio
from datetime import datetime
from pathlib import Path
import re
from custom_components.petkit.const import (
CONF_MEDIA_PATH,
COORDINATOR,
DEFAULT_MEDIA_PATH,
DOMAIN,
LOGGER,
MEDIA_ROOT,
MEDIA_SECTION,
)... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/binary_sensor.py | custom_components/petkit/binary_sensor.py | """Binary sensor platform for Petkit Smart Devices integration."""
from __future__ import annotations
from dataclasses import dataclass
from datetime import datetime
from typing import TYPE_CHECKING
from pypetkitapi import (
D4S,
D4SH,
T4,
T5,
T6,
T7,
Feeder,
Litter,
Pet,
Puri... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/const.py | custom_components/petkit/const.py | """Constants for Petkit Smart Devices integration."""
from logging import Logger, getLogger
LOGGER: Logger = getLogger(__package__)
DOMAIN = "petkit"
COORDINATOR = "coordinator"
COORDINATOR_MEDIA = "coordinator_media"
COORDINATOR_BLUETOOTH = "coordinator_bluetooth"
# Configuration
CONF_SCAN_INTERVAL_MEDIA = "scan_in... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/coordinator.py | custom_components/petkit/coordinator.py | """DataUpdateCoordinator for Petkit Smart Devices."""
from __future__ import annotations
import asyncio
from copy import deepcopy
from datetime import datetime, timedelta, timezone
from pathlib import Path
import shutil
from typing import Any
import aiofiles
import aiofiles.os
from pypetkitapi import (
DownloadD... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/utils.py | custom_components/petkit/utils.py | """Util functions for the Petkit integration."""
from datetime import datetime
from pypetkitapi import LitterRecord, RecordsItems, WorkState
from .const import EVENT_MAPPING, LOGGER
def map_work_state(work_state: WorkState | None) -> str:
"""Get the state of the litter box.
Use the 'litter_state' translat... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/fan.py | custom_components/petkit/fan.py | """Switch platform for Petkit Smart Devices integration."""
from __future__ import annotations
import asyncio
from collections.abc import Callable
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any
from pypetkitapi import K2, DeviceAction, DeviceCommand, Purifier
from homeassistant.components.f... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/sensor.py | custom_components/petkit/sensor.py | """Sensor platform for Petkit Smart Devices integration."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from datetime import datetime, timezone
from typing import TYPE_CHECKING, Any
from pypetkitapi import (
CTW3,
D4H,
D4S,
D4SH,
DEVIC... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/__init__.py | custom_components/petkit/__init__.py | """Custom integration to integrate Petkit Smart Devices with Home Assistant."""
from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING
from pypetkitapi import PetKitClient
from homeassistant.const import (
CONF_PASSWORD,
CONF_REGION,
CONF_SCAN_INTERVAL,
CO... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/entity.py | custom_components/petkit/entity.py | """Petkit Smart Devices Entity class."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from typing import Any, Generic, TypeVar
from pypetkitapi import Feeder, Litter, Pet, Purifier, WaterFountain
from homeassistant.helpers.device_registry import CONNECTIO... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/button.py | custom_components/petkit/button.py | """Switch platform for Petkit Smart Devices integration."""
from __future__ import annotations
import asyncio
from collections.abc import Callable
from dataclasses import dataclass
from typing import TYPE_CHECKING
from pypetkitapi import (
D3,
D4H,
D4S,
D4SH,
DEVICES_FEEDER,
DEVICES_LITTER_BO... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/text.py | custom_components/petkit/text.py | """Switch platform for Petkit Smart Devices integration."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from datetime import timedelta
from typing import TYPE_CHECKING, Any
from pypetkitapi import (
D3,
D4,
D4H,
D4S,
D4SH,
FEEDER,
... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/select.py | custom_components/petkit/select.py | """Switch platform for Petkit Smart Devices integration."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from typing import TYPE_CHECKING
from pypetkitapi import (
D4H,
D4SH,
T7,
DeviceCommand,
Feeder,
Litter,
Pet,
Purifier,... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/light.py | custom_components/petkit/light.py | """Light platform for Petkit Smart Devices integration."""
from __future__ import annotations
import asyncio
from collections.abc import Callable
from dataclasses import dataclass
from datetime import timedelta
from typing import TYPE_CHECKING, Any
from pypetkitapi import LITTER_WITH_CAMERA, T4, DeviceAction, Device... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/data.py | custom_components/petkit/data.py | """Custom types for Petkit Smart Devices integration."""
from __future__ import annotations
from dataclasses import dataclass
from typing import TYPE_CHECKING
from pypetkitapi import Feeder, Litter, Pet, Purifier, WaterFountain
if TYPE_CHECKING:
from pypetkitapi.client import PetKitClient
from homeassistan... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
Jezza34000/homeassistant_petkit | https://github.com/Jezza34000/homeassistant_petkit/blob/362911ceac878aec5f56d82efa9b0515e2028355/custom_components/petkit/config_flow.py | custom_components/petkit/config_flow.py | """Adds config flow for Petkit Smart Devices."""
from __future__ import annotations
from typing import Any
from pypetkitapi import (
PetkitAuthenticationUnregisteredEmailError,
PetKitClient,
PetkitRegionalServerNotFoundError,
PetkitSessionError,
PetkitSessionExpiredError,
PetkitTimeoutError,
... | python | MIT | 362911ceac878aec5f56d82efa9b0515e2028355 | 2026-01-05T07:12:41.716988Z | false |
pimoroni/displayotron | https://github.com/pimoroni/displayotron/blob/1161818428c393906fdf437c8fa51f51b329af1e/library/setup.py | library/setup.py | #!/usr/bin/env python
"""
Copyright (c) 2014 Pimoroni
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, pub... | python | MIT | 1161818428c393906fdf437c8fa51f51b329af1e | 2026-01-05T07:12:43.667300Z | false |
pimoroni/displayotron | https://github.com/pimoroni/displayotron/blob/1161818428c393906fdf437c8fa51f51b329af1e/library/dot3k/lcd.py | library/dot3k/lcd.py | from sys import exit
try:
import st7036
except ImportError:
exit("This library requires the st7036 module\nInstall with: sudo pip install st7036")
ROWS = 3
COLS = 16
lcd = st7036.st7036(register_select_pin=25)
lcd.clear()
def write(value):
"""Write a string to the current cursor position.
:param ... | python | MIT | 1161818428c393906fdf437c8fa51f51b329af1e | 2026-01-05T07:12:43.667300Z | false |
pimoroni/displayotron | https://github.com/pimoroni/displayotron/blob/1161818428c393906fdf437c8fa51f51b329af1e/library/dot3k/joystick.py | library/dot3k/joystick.py | import time
from sys import exit
try:
import RPi.GPIO as GPIO
except ImportError:
exit("This library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO")
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
LEFT = 17
RIGHT = 22
if GPIO.RPI_REVISION == 1:
UP = 21
else:
UP = 27
DOWN = 9... | python | MIT | 1161818428c393906fdf437c8fa51f51b329af1e | 2026-01-05T07:12:43.667300Z | false |
pimoroni/displayotron | https://github.com/pimoroni/displayotron/blob/1161818428c393906fdf437c8fa51f51b329af1e/library/dot3k/menu.py | library/dot3k/menu.py | import atexit
import os
import threading
import time
from collections import OrderedDict
from sys import version_info
if version_info[0] >= 3:
import configparser as ConfigParser
else:
import ConfigParser
_MODE_NAV = 'navigate'
_MODE_ADJ = 'adjust'
_MODE_TXT = 'entry'
class MenuIcon:
arrow_left = [0, 0... | python | MIT | 1161818428c393906fdf437c8fa51f51b329af1e | 2026-01-05T07:12:43.667300Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.